Hi, I will test this tomorrow.
Martin Grigorov Wicket Training and Consulting On Wed, Feb 5, 2014 at 11:09 PM, Francois Meillet < [email protected]> wrote: > Use a system property : > System.setProperty("wicket.jsessionid.name", "JSESSIONID_MYAPP"); > > > François Meillet > Formation Wicket - Développement Wicket > > > > > > Le 5 févr. 2014 à 22:05, Aaron J. Garcia <[email protected]> a écrit : > > > Timo Schmidt <wicket <at> xomit.de> writes: > > > >> > >> On Wed 05.02.2014 13:12, Aaron J. Garcia wrote: > >>> Hi Everyone, > >>> > >>> I maintain a Wicket application running on Tomcat 7.0.39, and I > recently > >>> altered $TOMCAT_HOME/conf/context.xml to include a sessionCookieName > >>> parameter. I made a change like this: > >>> > >>> <Context sessionCookieName="JSESSIONID_MYAPP"> > >>> > >>> This properly changes the session cookie that is used by Wicket to > >>> JESSIONID_MYAPP instead of JSESSIONID. However, when I start up my > Wicket > >>> app, I get the following error spit out to the logs in Development > mode, > >>> when running in Intellij. Any idea why? > >>> > >>> When I was using the normal JSESSIONID, it was properly ignoring it > when it > >>> was appended to the classname for the SignInPage. > >> > >> See https://issues.apache.org/jira/browse/WICKET-4873 > >> > >> as of Wicket 6.4.0 you may use a different session id name. Set > >> a system property »wicket.jsessionid.name« to the desired > >> value. > >> > >> -Timo > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscribe <at> wicket.apache.org > >> For additional commands, e-mail: users-help <at> wicket.apache.org > >> > >> > > > > This doesn't work for me. Looking at the source for WicketObjects.java > > (where the error is coming from), it seems like the className passed > into it > > should be passed through Strings.stripJSessionId() before it is > attempted to > > be resolved. > > > > Should I open a JIRA issue for this change? > > > > -- Aaron > > > > WARN - WicketObjects - Could not resolve class > > [org.mine.SignInPage;JSESSIONID_MYAPP=AFAB91436EA86A0DF57057C56DEBEEB4] > > java.lang.ClassNotFoundException: > > org/mine/SignInPage;JSESSIONID_MYAPP=AFAB91436EA86A0DF57057C56DEBEEB4 > > at java.lang.Class.forName0(Native Method) > > at java.lang.Class.forName(Class.java:340) > > at org.apache.wicket.application.AbstractClassResolver > > .resolveClass(AbstractClassResolver.java:108) > > at org.apache.wicket.core.util.lang.WicketObjects > > .resolveClass(WicketObjects.java:72) > > > > ... snip ... > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > >
