Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession
Here is the eclipse project with all jars included. Launch configurations included http://dl.dropbox.com/u/5176435/wicket.tar.gz On Wed, Oct 19, 2011 at 9:49 PM, Filipe Sousa wrote: > I stated jetty from command line (no eclipse) > > $ /usr/lib/jvm/java-1.6.0-sun-1.6.0.27.x86_64/bin/java > -Dlogback.configurationFile=etc/logback.xml -verbose:class > -Dfile.encoding=UTF-8 -classpath > /home/fsousa/workspace/wicket/WebContent/WEB-INF/classes:/home/fsousa/.ivy2/cache/org.apache.wicket/wicket-core/jars/wicket-core-1.5.1.jar:/home/fsousa/.ivy2/cache/org.apache.wicket/wicket-util/jars/wicket-util-1.5.1.jar:/home/fsousa/.ivy2/cache/org.apache.wicket/wicket-request/jars/wicket-request-1.5.1.jar:/home/fsousa/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-0.9.30.jar:/home/fsousa/.ivy2/cache/ch.qos.logback/logback-core/jars/logback-core-0.9.30.jar:/home/fsousa/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.6.2.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-webapp/jars/jetty-webapp-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-xml/jars/jetty-xml-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-util/jars/jetty-util-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-servlet/jars/jetty-servlet-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-security/jars/jetty-security-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-server/jars/jetty-server-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/javax.servlet/servlet-api/jars/servlet-api-2.5.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-continuation/jars/jetty-continuation-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-http/jars/jetty-http-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-io/jars/jetty-io-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-plus/jars/jetty-plus-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.apache.geronimo.specs/geronimo-jta_1.1_spec/jars/geronimo-jta_1.1_spec-1.1.1.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-jndi/jars/jetty-jndi-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/javax.mail/mail/jars/mail-1.4.1.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-deploy/jars/jetty-deploy-7.5.3.v20111011.jar > org.eclipse.jetty.xml.XmlConfiguration etc/jetty.xml > verbose > > Then I opened http://localhost:8080/wicket/ in browser and I can see > that the example works. > Next I refresh the browser and no problems > Refresh the browser again and I get the exception > > $ grep CheesrSession verbose > [Loaded wicket.in.action.CheesrSession from > file:/home/fsousa/workspace/wicket/WebContent/WEB-INF/classes/] > [Loaded wicket.in.action.CheesrSession from > file:/home/fsousa/workspace/wicket/WebContent/WEB-INF/classes/] > Caused by: java.lang.ClassCastException: > wicket.in.action.CheesrSession cannot be cast to > wicket.in.action.CheesrSession > > On Wed, Oct 19, 2011 at 9:27 PM, Deniz Oğuz wrote: >> Sorry it should be verbose:class (if it is oracle jre) >> On Oct 19, 2011 11:25 PM, "Deniz Oğuz" wrote: >> >>> Pass -verbose:gc to your server vm to see from where your class is loaded. >>> On Oct 19, 2011 11:22 PM, "Filipe Sousa" wrote: >>> On Wed, Oct 19, 2011 at 9:04 PM, Igor Vaynberg wrote: > > you either somehow have two of these on your classpath or tomcate > creates another one via a different classloader and then you have a > class from one classloader trying to cast to a class loaded from > another one...its probably an environment problem :/ > > -igor Hello Igor, I'm not using tomcat but jetty. I'm using apache ivy for dependencies and the only jars I have in classpath are: geronimo-jta_1.1_spec-1.1.1.jar jetty-continuation-7.5.3.v20111011.jar jetty-deploy-7.5.3.v20111011.jar jetty-http-7.5.3.v20111011.jar jetty-io-7.5.3.v20111011.jar jetty-jndi-7.5.3.v20111011.jar jetty-plus-7.5.3.v20111011.jar jetty-security-7.5.3.v20111011.jar jetty-server-7.5.3.v20111011.jar jetty-servlet-7.5.3.v20111011.jar jetty-util-7.5.3.v20111011.jar jetty-webapp-7.5.3.v20111011.jar jetty-xml-7.5.3.v20111011.jar logback-classic-0.9.30.jar logback-core-0.9.30.jar mail-1.4.1.jar servlet-api-2.5.jar slf4j-api-1.6.2.jar wicket-core-1.5.1.jar wicket-request-1.5.1.jar wicket-util-1.5.1.jar The command line that starts jetty inside eclipse: /usr/lib/jvm/java-1.6.0-sun-1.6.0.27.x86_64/bin/java -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:44305 -XX:+CMSClassUnloadingEnabled -XX:PermSize=64M -XX:MaxPermSize=128M -Dlogback.configurationFile=etc/logback.xml -Dfile.encoding=UTF-8 -classpath /home/fsousa/workspace/wicket/WebContent/WEB-INF/classes:/home/fsousa/.ivy2/cache/org.apache.wicket/wicket-core/jars/wicket-core-1.5.1.jar:/home/fsousa/.ivy2
Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession
I stated jetty from command line (no eclipse) $ /usr/lib/jvm/java-1.6.0-sun-1.6.0.27.x86_64/bin/java -Dlogback.configurationFile=etc/logback.xml -verbose:class -Dfile.encoding=UTF-8 -classpath /home/fsousa/workspace/wicket/WebContent/WEB-INF/classes:/home/fsousa/.ivy2/cache/org.apache.wicket/wicket-core/jars/wicket-core-1.5.1.jar:/home/fsousa/.ivy2/cache/org.apache.wicket/wicket-util/jars/wicket-util-1.5.1.jar:/home/fsousa/.ivy2/cache/org.apache.wicket/wicket-request/jars/wicket-request-1.5.1.jar:/home/fsousa/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-0.9.30.jar:/home/fsousa/.ivy2/cache/ch.qos.logback/logback-core/jars/logback-core-0.9.30.jar:/home/fsousa/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.6.2.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-webapp/jars/jetty-webapp-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-xml/jars/jetty-xml-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-util/jars/jetty-util-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-servlet/jars/jetty-servlet-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-security/jars/jetty-security-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-server/jars/jetty-server-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/javax.servlet/servlet-api/jars/servlet-api-2.5.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-continuation/jars/jetty-continuation-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-http/jars/jetty-http-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-io/jars/jetty-io-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-plus/jars/jetty-plus-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.apache.geronimo.specs/geronimo-jta_1.1_spec/jars/geronimo-jta_1.1_spec-1.1.1.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-jndi/jars/jetty-jndi-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/javax.mail/mail/jars/mail-1.4.1.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-deploy/jars/jetty-deploy-7.5.3.v20111011.jar org.eclipse.jetty.xml.XmlConfiguration etc/jetty.xml > verbose Then I opened http://localhost:8080/wicket/ in browser and I can see that the example works. Next I refresh the browser and no problems Refresh the browser again and I get the exception $ grep CheesrSession verbose [Loaded wicket.in.action.CheesrSession from file:/home/fsousa/workspace/wicket/WebContent/WEB-INF/classes/] [Loaded wicket.in.action.CheesrSession from file:/home/fsousa/workspace/wicket/WebContent/WEB-INF/classes/] Caused by: java.lang.ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession On Wed, Oct 19, 2011 at 9:27 PM, Deniz Oğuz wrote: > Sorry it should be verbose:class (if it is oracle jre) > On Oct 19, 2011 11:25 PM, "Deniz Oğuz" wrote: > >> Pass -verbose:gc to your server vm to see from where your class is loaded. >> On Oct 19, 2011 11:22 PM, "Filipe Sousa" wrote: >> >>> On Wed, Oct 19, 2011 at 9:04 PM, Igor Vaynberg >>> wrote: >>> > >>> > you either somehow have two of these on your classpath or tomcate >>> > creates another one via a different classloader and then you have a >>> > class from one classloader trying to cast to a class loaded from >>> > another one...its probably an environment problem :/ >>> > >>> > -igor >>> >>> Hello Igor, >>> >>> I'm not using tomcat but jetty. >>> >>> I'm using apache ivy for dependencies and the only jars I have in >>> classpath are: >>> geronimo-jta_1.1_spec-1.1.1.jar >>> jetty-continuation-7.5.3.v20111011.jar >>> jetty-deploy-7.5.3.v20111011.jar >>> jetty-http-7.5.3.v20111011.jar >>> jetty-io-7.5.3.v20111011.jar >>> jetty-jndi-7.5.3.v20111011.jar >>> jetty-plus-7.5.3.v20111011.jar >>> jetty-security-7.5.3.v20111011.jar >>> jetty-server-7.5.3.v20111011.jar >>> jetty-servlet-7.5.3.v20111011.jar >>> jetty-util-7.5.3.v20111011.jar >>> jetty-webapp-7.5.3.v20111011.jar >>> jetty-xml-7.5.3.v20111011.jar >>> logback-classic-0.9.30.jar >>> logback-core-0.9.30.jar >>> mail-1.4.1.jar >>> servlet-api-2.5.jar >>> slf4j-api-1.6.2.jar >>> wicket-core-1.5.1.jar >>> wicket-request-1.5.1.jar >>> wicket-util-1.5.1.jar >>> >>> The command line that starts jetty inside eclipse: >>> /usr/lib/jvm/java-1.6.0-sun-1.6.0.27.x86_64/bin/java >>> -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:44305 >>> -XX:+CMSClassUnloadingEnabled -XX:PermSize=64M -XX:MaxPermSize=128M >>> -Dlogback.configurationFile=etc/logback.xml -Dfile.encoding=UTF-8 >>> -classpath >>> /home/fsousa/workspace/wicket/WebContent/WEB-INF/classes:/home/fsousa/.ivy2/cache/org.apache.wicket/wicket-core/jars/wicket-core-1.5.1.jar:/home/fsousa/.ivy2/cache/org.apache.wicket/wicket-util/jars/wicket-util-1.5.1.jar:/home/fsousa/.ivy2/cache/org.apache.wicket/wicket-request/jars/wicket-request-1.5.1.jar:/home/fsousa/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-0.9.30.jar:/home/fsousa/.ivy2/cache/ch.qos.logba
Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession
Sorry it should be verbose:class (if it is oracle jre) On Oct 19, 2011 11:25 PM, "Deniz Oğuz" wrote: > Pass -verbose:gc to your server vm to see from where your class is loaded. > On Oct 19, 2011 11:22 PM, "Filipe Sousa" wrote: > >> On Wed, Oct 19, 2011 at 9:04 PM, Igor Vaynberg >> wrote: >> > >> > you either somehow have two of these on your classpath or tomcate >> > creates another one via a different classloader and then you have a >> > class from one classloader trying to cast to a class loaded from >> > another one...its probably an environment problem :/ >> > >> > -igor >> >> Hello Igor, >> >> I'm not using tomcat but jetty. >> >> I'm using apache ivy for dependencies and the only jars I have in >> classpath are: >> geronimo-jta_1.1_spec-1.1.1.jar >> jetty-continuation-7.5.3.v20111011.jar >> jetty-deploy-7.5.3.v20111011.jar >> jetty-http-7.5.3.v20111011.jar >> jetty-io-7.5.3.v20111011.jar >> jetty-jndi-7.5.3.v20111011.jar >> jetty-plus-7.5.3.v20111011.jar >> jetty-security-7.5.3.v20111011.jar >> jetty-server-7.5.3.v20111011.jar >> jetty-servlet-7.5.3.v20111011.jar >> jetty-util-7.5.3.v20111011.jar >> jetty-webapp-7.5.3.v20111011.jar >> jetty-xml-7.5.3.v20111011.jar >> logback-classic-0.9.30.jar >> logback-core-0.9.30.jar >> mail-1.4.1.jar >> servlet-api-2.5.jar >> slf4j-api-1.6.2.jar >> wicket-core-1.5.1.jar >> wicket-request-1.5.1.jar >> wicket-util-1.5.1.jar >> >> The command line that starts jetty inside eclipse: >> /usr/lib/jvm/java-1.6.0-sun-1.6.0.27.x86_64/bin/java >> -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:44305 >> -XX:+CMSClassUnloadingEnabled -XX:PermSize=64M -XX:MaxPermSize=128M >> -Dlogback.configurationFile=etc/logback.xml -Dfile.encoding=UTF-8 >> -classpath >> /home/fsousa/workspace/wicket/WebContent/WEB-INF/classes:/home/fsousa/.ivy2/cache/org.apache.wicket/wicket-core/jars/wicket-core-1.5.1.jar:/home/fsousa/.ivy2/cache/org.apache.wicket/wicket-util/jars/wicket-util-1.5.1.jar:/home/fsousa/.ivy2/cache/org.apache.wicket/wicket-request/jars/wicket-request-1.5.1.jar:/home/fsousa/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-0.9.30.jar:/home/fsousa/.ivy2/cache/ch.qos.logback/logback-core/jars/logback-core-0.9.30.jar:/home/fsousa/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.6.2.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-webapp/jars/jetty-webapp-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-xml/jars/jetty-xml-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-util/jars/jetty-util-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-servlet/jars/jetty-servlet-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-security/jars/jetty-security-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-server/jars/jetty-server-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/javax.servlet/servlet-api/jars/servlet-api-2.5.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-continuation/jars/jetty-continuation-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-http/jars/jetty-http-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-io/jars/jetty-io-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-plus/jars/jetty-plus-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.apache.geronimo.specs/geronimo-jta_1.1_spec/jars/geronimo-jta_1.1_spec-1.1.1.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-jndi/jars/jetty-jndi-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/javax.mail/mail/jars/mail-1.4.1.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-deploy/jars/jetty-deploy-7.5.3.v20111011.jar >> org.eclipse.jetty.xml.XmlConfiguration etc/jetty.xml >> >> Thanks >> -- >> Filipe Sousa >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >>
Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession
Pass -verbose:gc to your server vm to see from where your class is loaded. On Oct 19, 2011 11:22 PM, "Filipe Sousa" wrote: > On Wed, Oct 19, 2011 at 9:04 PM, Igor Vaynberg > wrote: > > > > you either somehow have two of these on your classpath or tomcate > > creates another one via a different classloader and then you have a > > class from one classloader trying to cast to a class loaded from > > another one...its probably an environment problem :/ > > > > -igor > > Hello Igor, > > I'm not using tomcat but jetty. > > I'm using apache ivy for dependencies and the only jars I have in classpath > are: > geronimo-jta_1.1_spec-1.1.1.jar > jetty-continuation-7.5.3.v20111011.jar > jetty-deploy-7.5.3.v20111011.jar > jetty-http-7.5.3.v20111011.jar > jetty-io-7.5.3.v20111011.jar > jetty-jndi-7.5.3.v20111011.jar > jetty-plus-7.5.3.v20111011.jar > jetty-security-7.5.3.v20111011.jar > jetty-server-7.5.3.v20111011.jar > jetty-servlet-7.5.3.v20111011.jar > jetty-util-7.5.3.v20111011.jar > jetty-webapp-7.5.3.v20111011.jar > jetty-xml-7.5.3.v20111011.jar > logback-classic-0.9.30.jar > logback-core-0.9.30.jar > mail-1.4.1.jar > servlet-api-2.5.jar > slf4j-api-1.6.2.jar > wicket-core-1.5.1.jar > wicket-request-1.5.1.jar > wicket-util-1.5.1.jar > > The command line that starts jetty inside eclipse: > /usr/lib/jvm/java-1.6.0-sun-1.6.0.27.x86_64/bin/java > -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:44305 > -XX:+CMSClassUnloadingEnabled -XX:PermSize=64M -XX:MaxPermSize=128M > -Dlogback.configurationFile=etc/logback.xml -Dfile.encoding=UTF-8 > -classpath > /home/fsousa/workspace/wicket/WebContent/WEB-INF/classes:/home/fsousa/.ivy2/cache/org.apache.wicket/wicket-core/jars/wicket-core-1.5.1.jar:/home/fsousa/.ivy2/cache/org.apache.wicket/wicket-util/jars/wicket-util-1.5.1.jar:/home/fsousa/.ivy2/cache/org.apache.wicket/wicket-request/jars/wicket-request-1.5.1.jar:/home/fsousa/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-0.9.30.jar:/home/fsousa/.ivy2/cache/ch.qos.logback/logback-core/jars/logback-core-0.9.30.jar:/home/fsousa/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.6.2.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-webapp/jars/jetty-webapp-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-xml/jars/jetty-xml-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-util/jars/jetty-util-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-servlet/jars/jetty-servlet-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-security/jars/jetty-security-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-server/jars/jetty-server-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/javax.servlet/servlet-api/jars/servlet-api-2.5.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-continuation/jars/jetty-continuation-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-http/jars/jetty-http-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-io/jars/jetty-io-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-plus/jars/jetty-plus-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.apache.geronimo.specs/geronimo-jta_1.1_spec/jars/geronimo-jta_1.1_spec-1.1.1.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-jndi/jars/jetty-jndi-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/javax.mail/mail/jars/mail-1.4.1.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-deploy/jars/jetty-deploy-7.5.3.v20111011.jar > org.eclipse.jetty.xml.XmlConfiguration etc/jetty.xml > > Thanks > -- > Filipe Sousa > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession
On Wed, Oct 19, 2011 at 9:04 PM, Igor Vaynberg wrote: > > you either somehow have two of these on your classpath or tomcate > creates another one via a different classloader and then you have a > class from one classloader trying to cast to a class loaded from > another one...its probably an environment problem :/ > > -igor Hello Igor, I'm not using tomcat but jetty. I'm using apache ivy for dependencies and the only jars I have in classpath are: geronimo-jta_1.1_spec-1.1.1.jar jetty-continuation-7.5.3.v20111011.jar jetty-deploy-7.5.3.v20111011.jar jetty-http-7.5.3.v20111011.jar jetty-io-7.5.3.v20111011.jar jetty-jndi-7.5.3.v20111011.jar jetty-plus-7.5.3.v20111011.jar jetty-security-7.5.3.v20111011.jar jetty-server-7.5.3.v20111011.jar jetty-servlet-7.5.3.v20111011.jar jetty-util-7.5.3.v20111011.jar jetty-webapp-7.5.3.v20111011.jar jetty-xml-7.5.3.v20111011.jar logback-classic-0.9.30.jar logback-core-0.9.30.jar mail-1.4.1.jar servlet-api-2.5.jar slf4j-api-1.6.2.jar wicket-core-1.5.1.jar wicket-request-1.5.1.jar wicket-util-1.5.1.jar The command line that starts jetty inside eclipse: /usr/lib/jvm/java-1.6.0-sun-1.6.0.27.x86_64/bin/java -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:44305 -XX:+CMSClassUnloadingEnabled -XX:PermSize=64M -XX:MaxPermSize=128M -Dlogback.configurationFile=etc/logback.xml -Dfile.encoding=UTF-8 -classpath /home/fsousa/workspace/wicket/WebContent/WEB-INF/classes:/home/fsousa/.ivy2/cache/org.apache.wicket/wicket-core/jars/wicket-core-1.5.1.jar:/home/fsousa/.ivy2/cache/org.apache.wicket/wicket-util/jars/wicket-util-1.5.1.jar:/home/fsousa/.ivy2/cache/org.apache.wicket/wicket-request/jars/wicket-request-1.5.1.jar:/home/fsousa/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-0.9.30.jar:/home/fsousa/.ivy2/cache/ch.qos.logback/logback-core/jars/logback-core-0.9.30.jar:/home/fsousa/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.6.2.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-webapp/jars/jetty-webapp-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-xml/jars/jetty-xml-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-util/jars/jetty-util-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-servlet/jars/jetty-servlet-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-security/jars/jetty-security-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-server/jars/jetty-server-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/javax.servlet/servlet-api/jars/servlet-api-2.5.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-continuation/jars/jetty-continuation-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-http/jars/jetty-http-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-io/jars/jetty-io-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-plus/jars/jetty-plus-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/org.apache.geronimo.specs/geronimo-jta_1.1_spec/jars/geronimo-jta_1.1_spec-1.1.1.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-jndi/jars/jetty-jndi-7.5.3.v20111011.jar:/home/fsousa/.ivy2/cache/javax.mail/mail/jars/mail-1.4.1.jar:/home/fsousa/.ivy2/cache/org.eclipse.jetty/jetty-deploy/jars/jetty-deploy-7.5.3.v20111011.jar org.eclipse.jetty.xml.XmlConfiguration etc/jetty.xml Thanks -- Filipe Sousa - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession
I have also tried same examples without any issues. Try it on another server instance or completely different server. There should be someting wrong in your jetty, eclipse combination. This kind of classcastexceptions (can not cast A to A) are a result of class loader hierarchy of app servers. Some how same class is loaded by 2 different class loaders. On Oct 19, 2011 10:56 PM, "Filipe Sousa" wrote: > > Hi, > > I know that 1.3 is not the latest version, but I think that's the > version used in the book. Since I am learning wicket I don't want to > deal with compatibility issues. > > I tried the latest version (1.5.1) and the result is worse. If I > refresh the browser 3 times I get the same exception and this time I > didn't have to redeploy. > > What strikes me is that the wicket can not cast > wicket.in.action.CheesrSession to wicket.in.action.CheesrSession > > public class CheesrSession extends WebSession { >private Cart cart = new Cart(); > >public CheesrSession(Request request) { >super(request); >} > >public Cart getCart() { >return cart; >} > } > > ERROR o.a.w.Component> Error while getting default model object for > Component: [ [Component id = cart, page = wicket.in.action.Index, path > = 2:cart.Index$2, isVisible = true, isVersioned = true]] > ERROR o.a.w.DefaultExceptionMapper> Unexpected error occurred > org.apache.wicket.WicketRuntimeException: Error calling method: public > wicket.in.action.Cart wicket.in.action.CheesrPage.getCart() on object: > [Page class = wicket.in.action.Index, id = 2, render count = 2] >at org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.getValue(PropertyResolver.java:1128) > ~[wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:305) > ~[wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:244) > ~[wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.util.lang.PropertyResolver.getValue(PropertyResolver.java:97) > ~[wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.model.AbstractPropertyModel.getObject(AbstractPropertyModel.java:134) > ~[wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.Component.getDefaultModelObject(Component.java:1639) > ~[wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.markup.html.list.ListView.getViewSize(ListView.java:219) > ~[wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:473) > ~[wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:119) > ~[wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.Component.internalBeforeRender(Component.java:980) > ~[wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.Component.beforeRender(Component.java:1014) > ~[wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1785) > ~[wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.Component.onBeforeRender(Component.java:3772) > ~[wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.Page.onBeforeRender(Page.java:823) > ~[wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.Component.internalBeforeRender(Component.java:980) > ~[wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.Component.beforeRender(Component.java:1014) > ~[wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.Component.internalPrepareForRender(Component.java:2182) > ~[wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.Page.internalPrepareForRender(Page.java:280) > ~[wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.Component.render(Component.java:2269) > ~[wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.Page.renderPage(Page.java:1035) > ~[wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105) > ~[wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:182) > ~[wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:147) > ~[wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:712) > ~[wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63) > ~[wicket-request-1.5.1.jar:1.5.1] >at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:208) > [wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:251) > [wicket-core-1.5.1.jar:1.5.1] >at org.apache.wicket.protocol.http.WicketF
Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession
On Wed, Oct 19, 2011 at 12:55 PM, Filipe Sousa wrote: > Hi, > > I know that 1.3 is not the latest version, but I think that's the > version used in the book. Since I am learning wicket I don't want to > deal with compatibility issues. > > I tried the latest version (1.5.1) and the result is worse. If I > refresh the browser 3 times I get the same exception and this time I > didn't have to redeploy. > > What strikes me is that the wicket can not cast > wicket.in.action.CheesrSession to wicket.in.action.CheesrSession you either somehow have two of these on your classpath or tomcate creates another one via a different classloader and then you have a class from one classloader trying to cast to a class loaded from another one...its probably an environment problem :/ -igor > > public class CheesrSession extends WebSession { > private Cart cart = new Cart(); > > public CheesrSession(Request request) { > super(request); > } > > public Cart getCart() { > return cart; > } > } > > ERROR o.a.w.Component> Error while getting default model object for > Component: [ [Component id = cart, page = wicket.in.action.Index, path > = 2:cart.Index$2, isVisible = true, isVersioned = true]] > ERROR o.a.w.DefaultExceptionMapper> Unexpected error occurred > org.apache.wicket.WicketRuntimeException: Error calling method: public > wicket.in.action.Cart wicket.in.action.CheesrPage.getCart() on object: > [Page class = wicket.in.action.Index, id = 2, render count = 2] > at > org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.getValue(PropertyResolver.java:1128) > ~[wicket-core-1.5.1.jar:1.5.1] > at > org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:305) > ~[wicket-core-1.5.1.jar:1.5.1] > at > org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:244) > ~[wicket-core-1.5.1.jar:1.5.1] > at > org.apache.wicket.util.lang.PropertyResolver.getValue(PropertyResolver.java:97) > ~[wicket-core-1.5.1.jar:1.5.1] > at > org.apache.wicket.model.AbstractPropertyModel.getObject(AbstractPropertyModel.java:134) > ~[wicket-core-1.5.1.jar:1.5.1] > at > org.apache.wicket.Component.getDefaultModelObject(Component.java:1639) > ~[wicket-core-1.5.1.jar:1.5.1] > at > org.apache.wicket.markup.html.list.ListView.getViewSize(ListView.java:219) > ~[wicket-core-1.5.1.jar:1.5.1] > at > org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:473) > ~[wicket-core-1.5.1.jar:1.5.1] > at > org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:119) > ~[wicket-core-1.5.1.jar:1.5.1] > at org.apache.wicket.Component.internalBeforeRender(Component.java:980) > ~[wicket-core-1.5.1.jar:1.5.1] > at org.apache.wicket.Component.beforeRender(Component.java:1014) > ~[wicket-core-1.5.1.jar:1.5.1] > at > org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1785) > ~[wicket-core-1.5.1.jar:1.5.1] > at org.apache.wicket.Component.onBeforeRender(Component.java:3772) > ~[wicket-core-1.5.1.jar:1.5.1] > at org.apache.wicket.Page.onBeforeRender(Page.java:823) > ~[wicket-core-1.5.1.jar:1.5.1] > at org.apache.wicket.Component.internalBeforeRender(Component.java:980) > ~[wicket-core-1.5.1.jar:1.5.1] > at org.apache.wicket.Component.beforeRender(Component.java:1014) > ~[wicket-core-1.5.1.jar:1.5.1] > at > org.apache.wicket.Component.internalPrepareForRender(Component.java:2182) > ~[wicket-core-1.5.1.jar:1.5.1] > at org.apache.wicket.Page.internalPrepareForRender(Page.java:280) > ~[wicket-core-1.5.1.jar:1.5.1] > at org.apache.wicket.Component.render(Component.java:2269) > ~[wicket-core-1.5.1.jar:1.5.1] > at org.apache.wicket.Page.renderPage(Page.java:1035) > ~[wicket-core-1.5.1.jar:1.5.1] > at > org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105) > ~[wicket-core-1.5.1.jar:1.5.1] > at > org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:182) > ~[wicket-core-1.5.1.jar:1.5.1] > at > org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:147) > ~[wicket-core-1.5.1.jar:1.5.1] > at > org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:712) > ~[wicket-core-1.5.1.jar:1.5.1] > at > org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63) > ~[wicket-request-1.5.1.jar:1.5.1] > at > org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:208) > [wicket-core-1.5.1.jar:1.5.1] > at > org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:251) > [wicket-core-1.5.1.jar:1.5.1] > at > org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.
Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession
Hi, I know that 1.3 is not the latest version, but I think that's the version used in the book. Since I am learning wicket I don't want to deal with compatibility issues. I tried the latest version (1.5.1) and the result is worse. If I refresh the browser 3 times I get the same exception and this time I didn't have to redeploy. What strikes me is that the wicket can not cast wicket.in.action.CheesrSession to wicket.in.action.CheesrSession public class CheesrSession extends WebSession { private Cart cart = new Cart(); public CheesrSession(Request request) { super(request); } public Cart getCart() { return cart; } } ERROR o.a.w.Component> Error while getting default model object for Component: [ [Component id = cart, page = wicket.in.action.Index, path = 2:cart.Index$2, isVisible = true, isVersioned = true]] ERROR o.a.w.DefaultExceptionMapper> Unexpected error occurred org.apache.wicket.WicketRuntimeException: Error calling method: public wicket.in.action.Cart wicket.in.action.CheesrPage.getCart() on object: [Page class = wicket.in.action.Index, id = 2, render count = 2] at org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.getValue(PropertyResolver.java:1128) ~[wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:305) ~[wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:244) ~[wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.util.lang.PropertyResolver.getValue(PropertyResolver.java:97) ~[wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.model.AbstractPropertyModel.getObject(AbstractPropertyModel.java:134) ~[wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.Component.getDefaultModelObject(Component.java:1639) ~[wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.markup.html.list.ListView.getViewSize(ListView.java:219) ~[wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:473) ~[wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:119) ~[wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.Component.internalBeforeRender(Component.java:980) ~[wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.Component.beforeRender(Component.java:1014) ~[wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1785) ~[wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.Component.onBeforeRender(Component.java:3772) ~[wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.Page.onBeforeRender(Page.java:823) ~[wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.Component.internalBeforeRender(Component.java:980) ~[wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.Component.beforeRender(Component.java:1014) ~[wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.Component.internalPrepareForRender(Component.java:2182) ~[wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.Page.internalPrepareForRender(Page.java:280) ~[wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.Component.render(Component.java:2269) ~[wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.Page.renderPage(Page.java:1035) ~[wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105) ~[wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:182) ~[wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:147) ~[wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:712) ~[wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63) ~[wicket-request-1.5.1.jar:1.5.1] at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:208) [wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:251) [wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162) [wicket-core-1.5.1.jar:1.5.1] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218) [wicket-core-1.5.1.jar:1.5.1] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1329) [jetty-servlet-7.5.3.v20111011.jar:7.5.3.v20111011] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:478) [jetty-servlet-7.5.3.v20111011.jar:7.5.3.v20111011] at org.eclipse.jetty.server
Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession
Hello, Your wicket version is fairly old. Please try the latest 1.5 release... Have a look at the wicket examples they provide a very good starting point. Cheers, Matthias -- iPhone Mail On 19.10.2011, at 18:17, Filipe Sousa wrote: > Hi, > > I'm doing my first experiments with wicket. I'm testing the example in > chapter 3 (Wicket in Action) with eclipse and embedded jetty. The > wicket version I'm using is 1.3.7. The example provided works quite > well except when I make a change and redeploy it to jetty. Then I get > an unexpected RuntimeException. The only way to get the changes > working is with a server restart. > > Wicket is running in DEVELOPMENT mode. > > ERROR o.a.w.RequestCycle> Error calling method: public > wicket.in.action.Cart wicket.in.action.CheesrPage.getCart() on object: > [Page class = wicket.in.action.Index, id = 0, version = 4, ajax = 0] > org.apache.wicket.WicketRuntimeException: Error calling method: public > wicket.in.action.Cart wicket.in.action.CheesrPage.getCart() on object: > [Page class = wicket.in.action.Index, id = 0, version = 4, ajax = 0] >at > org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.getValue(PropertyResolver.java:1066) > ~[wicket-1.3.7.jar:1.3.7] >at > org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:252) > ~[wicket-1.3.7.jar:1.3.7] >at > org.apache.wicket.util.lang.PropertyResolver.getValue(PropertyResolver.java:91) > ~[wicket-1.3.7.jar:1.3.7] >at > org.apache.wicket.model.AbstractPropertyModel.getObject(AbstractPropertyModel.java:113) > ~[wicket-1.3.7.jar:1.3.7] >at org.apache.wicket.Component.getModelObject(Component.java:1565) > ~[wicket-1.3.7.jar:1.3.7] >at > org.apache.wicket.markup.html.list.ListView.getViewSize(ListView.java:217) > ~[wicket-1.3.7.jar:1.3.7] >at > org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:524) > ~[wicket-1.3.7.jar:1.3.7] >at > org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:127) > ~[wicket-1.3.7.jar:1.3.7] >at org.apache.wicket.Component.internalBeforeRender(Component.java:1009) > ~[wicket-1.3.7.jar:1.3.7] >at org.apache.wicket.Component.beforeRender(Component.java:1041) > ~[wicket-1.3.7.jar:1.3.7] >at > org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1590) > ~[wicket-1.3.7.jar:1.3.7] >at org.apache.wicket.Component.onBeforeRender(Component.java:3727) > ~[wicket-1.3.7.jar:1.3.7] >at org.apache.wicket.Page.onBeforeRender(Page.java:1458) > ~[wicket-1.3.7.jar:1.3.7] >at org.apache.wicket.Component.internalBeforeRender(Component.java:1009) > ~[wicket-1.3.7.jar:1.3.7] >at org.apache.wicket.Component.beforeRender(Component.java:1041) > ~[wicket-1.3.7.jar:1.3.7] >at org.apache.wicket.Component.prepareForRender(Component.java:2167) > ~[wicket-1.3.7.jar:1.3.7] >at org.apache.wicket.Page.renderPage(Page.java:892) > ~[wicket-1.3.7.jar:1.3.7] >at > org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:63) > ~[wicket-1.3.7.jar:1.3.7] >at > org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104) > ~[wicket-1.3.7.jar:1.3.7] >at > org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1245) > [wicket-1.3.7.jar:1.3.7] >at org.apache.wicket.RequestCycle.step(RequestCycle.java:1316) > [wicket-1.3.7.jar:1.3.7] >at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1418) > [wicket-1.3.7.jar:1.3.7] >at org.apache.wicket.RequestCycle.request(RequestCycle.java:532) > [wicket-1.3.7.jar:1.3.7] >at > org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:356) > [wicket-1.3.7.jar:1.3.7] >at > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:201) > [wicket-1.3.7.jar:1.3.7] >at > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1329) > [jetty-servlet-7.5.3.v20111011.jar:7.5.3.v20111011] >at > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:478) > [jetty-servlet-7.5.3.v20111011.jar:7.5.3.v20111011] >at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) > [jetty-server-7.5.3.v20111011.jar:7.5.3.v20111011] >at > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520) > [jetty-security-7.5.3.v20111011.jar:7.5.3.v20111011] >at > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) > [jetty-server-7.5.3.v20111011.jar:7.5.3.v20111011] >at > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940) > [jetty-server-7.5.3.v20111011.jar:7.5.3.v20111011] >at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409) > [jetty-servlet-7.5.3.v20111011.jar:7.5.3.v20111011] >at > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) > [jet
ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession
Hi, I'm doing my first experiments with wicket. I'm testing the example in chapter 3 (Wicket in Action) with eclipse and embedded jetty. The wicket version I'm using is 1.3.7. The example provided works quite well except when I make a change and redeploy it to jetty. Then I get an unexpected RuntimeException. The only way to get the changes working is with a server restart. Wicket is running in DEVELOPMENT mode. ERROR o.a.w.RequestCycle> Error calling method: public wicket.in.action.Cart wicket.in.action.CheesrPage.getCart() on object: [Page class = wicket.in.action.Index, id = 0, version = 4, ajax = 0] org.apache.wicket.WicketRuntimeException: Error calling method: public wicket.in.action.Cart wicket.in.action.CheesrPage.getCart() on object: [Page class = wicket.in.action.Index, id = 0, version = 4, ajax = 0] at org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.getValue(PropertyResolver.java:1066) ~[wicket-1.3.7.jar:1.3.7] at org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:252) ~[wicket-1.3.7.jar:1.3.7] at org.apache.wicket.util.lang.PropertyResolver.getValue(PropertyResolver.java:91) ~[wicket-1.3.7.jar:1.3.7] at org.apache.wicket.model.AbstractPropertyModel.getObject(AbstractPropertyModel.java:113) ~[wicket-1.3.7.jar:1.3.7] at org.apache.wicket.Component.getModelObject(Component.java:1565) ~[wicket-1.3.7.jar:1.3.7] at org.apache.wicket.markup.html.list.ListView.getViewSize(ListView.java:217) ~[wicket-1.3.7.jar:1.3.7] at org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:524) ~[wicket-1.3.7.jar:1.3.7] at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:127) ~[wicket-1.3.7.jar:1.3.7] at org.apache.wicket.Component.internalBeforeRender(Component.java:1009) ~[wicket-1.3.7.jar:1.3.7] at org.apache.wicket.Component.beforeRender(Component.java:1041) ~[wicket-1.3.7.jar:1.3.7] at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1590) ~[wicket-1.3.7.jar:1.3.7] at org.apache.wicket.Component.onBeforeRender(Component.java:3727) ~[wicket-1.3.7.jar:1.3.7] at org.apache.wicket.Page.onBeforeRender(Page.java:1458) ~[wicket-1.3.7.jar:1.3.7] at org.apache.wicket.Component.internalBeforeRender(Component.java:1009) ~[wicket-1.3.7.jar:1.3.7] at org.apache.wicket.Component.beforeRender(Component.java:1041) ~[wicket-1.3.7.jar:1.3.7] at org.apache.wicket.Component.prepareForRender(Component.java:2167) ~[wicket-1.3.7.jar:1.3.7] at org.apache.wicket.Page.renderPage(Page.java:892) ~[wicket-1.3.7.jar:1.3.7] at org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:63) ~[wicket-1.3.7.jar:1.3.7] at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104) ~[wicket-1.3.7.jar:1.3.7] at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1245) [wicket-1.3.7.jar:1.3.7] at org.apache.wicket.RequestCycle.step(RequestCycle.java:1316) [wicket-1.3.7.jar:1.3.7] at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1418) [wicket-1.3.7.jar:1.3.7] at org.apache.wicket.RequestCycle.request(RequestCycle.java:532) [wicket-1.3.7.jar:1.3.7] at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:356) [wicket-1.3.7.jar:1.3.7] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:201) [wicket-1.3.7.jar:1.3.7] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1329) [jetty-servlet-7.5.3.v20111011.jar:7.5.3.v20111011] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:478) [jetty-servlet-7.5.3.v20111011.jar:7.5.3.v20111011] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) [jetty-server-7.5.3.v20111011.jar:7.5.3.v20111011] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520) [jetty-security-7.5.3.v20111011.jar:7.5.3.v20111011] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) [jetty-server-7.5.3.v20111011.jar:7.5.3.v20111011] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940) [jetty-server-7.5.3.v20111011.jar:7.5.3.v20111011] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409) [jetty-servlet-7.5.3.v20111011.jar:7.5.3.v20111011] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) [jetty-server-7.5.3.v20111011.jar:7.5.3.v20111011] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:874) [jetty-server-7.5.3.v20111011.jar:7.5.3.v20111011] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [j