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 <nat...@gmail.com> 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 <denizo...@gmail.com> wrote:
>> Sorry it should be verbose:class (if it is oracle jre)
>> On Oct 19, 2011 11:25 PM, "Deniz Oğuz" <denizo...@gmail.com> 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" <nat...@gmail.com> wrote:
>>>
>>>> On Wed, Oct 19, 2011 at 9:04 PM, Igor Vaynberg <igor.vaynb...@gmail.com>
>>>> 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
>>>>
>>>>
>>
>
>
>
> --
> Filipe Sousa
>



-- 
Filipe Sousa

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to