Re: [Wicket-user] Classcastexception and getSession

2007-07-01 Thread Frank Bille
On 6/28/07, Flemming Boller <[EMAIL PROTECTED]> wrote: I hope somebody can use this, because...dammit this has taken time... If you got some spare time, perhaps you could write up something for the Gotchas :) http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotc

Re: [Wicket-user] Classcastexception and getSession

2007-06-29 Thread Flemming Boller
Yeah! I don“t know whybut I think I will remember this puzzle a looong time :-) /Flemming On 6/28/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: Heh... nice discovered one! This one goes into the books of nasty things not to do. Martijn -- Wicket joins the Apache Software Foundation

Re: [Wicket-user] Classcastexception and getSession

2007-06-29 Thread Flemming Boller
I would at least try two thing. System.out the classloaders of the getSession() class and the Typecasted class. That way you know for sure. If the two classloaders is sun.misc.AppClassLoaderand the other is ContextClassloader (or something like that) then you know that one class is loaded

Re: [Wicket-user] Classcastexception and getSession

2007-06-28 Thread Watter
Flemming Boller wrote: > > Hi > > Well after some debugging, searching nabble.com etc.. I finally > found out what the problem was. > > After printing out the classloaders of the > MySession.class.getClassloader() > and the GetSesion().getClass().getCla... I found out it was 2 > differentcl

Re: [Wicket-user] Classcastexception and getSession

2007-06-28 Thread Martijn Dashorst
Heh... nice discovered one! This one goes into the books of nasty things not to do. Martijn -- Wicket joins the Apache Software Foundation as Apache Wicket Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6 contains a very important fix. Download Wicket now! http://wicketframe

Re: [Wicket-user] Classcastexception and getSession

2007-06-28 Thread Flemming Boller
Hi Well after some debugging, searching nabble.com etc.. I finally found out what the problem was. After printing out the classloaders of the MySession.class.getClassloader() and the GetSesion().getClass().getCla... I found out it was 2 differentclassloaders. Reading at some Jetty forums abo

Re: [Wicket-user] Classcastexception and getSession

2007-06-25 Thread Peter Thomas
On 6/26/07, Flemming Boller <[EMAIL PROTECTED]> wrote: Hi Actually I had 4 different versions :-) But I removed them all, made a recompile and tried again. Same result. The object from getSession() is a MySession object. I will try and make a quickstart zipfile. and attach it. /Flemming

Re: [Wicket-user] Classcastexception and getSession

2007-06-25 Thread Flemming Boller
Hi Actually I had 4 different versions :-) But I removed them all, made a recompile and tried again. Same result. The object from getSession() is a MySession object. I will try and make a quickstart zipfile. and attach it. /Flemming On 6/26/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: >

Re: [Wicket-user] Classcastexception and getSession

2007-06-25 Thread Eelco Hillenius
> I have been troubled with a problem that is very strange. Finally I solved > it, but I am unsure whether I am doing something wrong. > > I have a custom session implementation MySesission extends WebSession. > > On my first page I have a popuplink opening a normal popup-page. In that > popuppage

[Wicket-user] Classcastexception and getSession

2007-06-25 Thread Flemming Boller
Hi I have been troubled with a problem that is very strange. Finally I solved it, but I am unsure whether I am doing something wrong. I have a custom session implementation MySesission extends WebSession. On my first page I have a popuplink opening a normal popup-page. In that popuppage I class