that seems to be a problem yes
what i did was change the Settigngs one:

contextPath =
((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getContextPath();

so that i directly call the context path of the http servlet request.

i think that should work fine, or does some have WebRequest.getContextPath()
overwritten so that they supply there something else??

johan


On 5/30/07, Ingram Chen <[EMAIL PROTECTED]> wrote:

All,

   I build 1.2.x trunk today to try some fixed bugs (which found in 1.2.6)
. After I deploy I got stack overflow:

java.lang.StackOverflowError
    at java.lang.ThreadLocal.get(ThreadLocal.java:125)
    at wicket.RequestCycle.get(RequestCycle.java:211)
    at wicket.settings.Settings.getContextPath(Settings.java:451)
    at wicket.protocol.http.servlet.ServletWebRequest.getContextPath(
ServletWebRequest.java :69)
    at wicket.settings.Settings.getContextPath(Settings.java:453)
    at wicket.protocol.http.servlet.ServletWebRequest.getContextPath(
ServletWebRequest.java:69)
    at wicket.settings.Settings.getContextPath (Settings.java:453)


I notice ServletWebRequest.getContextPath implmentaton changed:

in 1.2.6:
    public String getContextPath()
    {
        return httpServletRequest.getContextPath();
    }

in 1.2.x trunk
    public String getContextPath()
    {
        String contextPath = Application.get
().getApplicationSettings().getContextPath();
        return contextPath != null ? contextPath :
httpServletRequest.getContextPath ();
    }

so the problem is caused by additional 
Application.get().getApplicationSettings().getContextPath();


I know wicket has a bamboo to build trunk continuously, but I can't find
it to check trunk's health.

--
Ingram Chen
��便��啦: http://dinbendon.net
blog: http://www.javaworld.com.tw/roller/page/ingramchen
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to