Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession

2011-10-19 Thread Matthias Gasser
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 nat...@gmail.com wrote: Hi, I'm doing my first experiments

Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession

2011-10-19 Thread Filipe Sousa
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

Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession

2011-10-19 Thread Igor Vaynberg
On Wed, Oct 19, 2011 at 12:55 PM, Filipe Sousa nat...@gmail.com 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

Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession

2011-10-19 Thread Deniz Oğuz
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.

Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession

2011-10-19 Thread Filipe Sousa
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

Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession

2011-10-19 Thread Deniz Oğuz
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

Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession

2011-10-19 Thread Deniz Oğuz
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,

Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession

2011-10-19 Thread Filipe Sousa
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

Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession

2011-10-19 Thread Filipe Sousa
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) $