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 about other similar problems I found out that
because
my Intellij was setup (by me :-) to compile output to WEB-INF/classes, that
would require the wicket.jar files (and others) to be placed under
WEB-INF/lib.
BUT Intellij did not do that. It just referenced the jar files in my local
maven repo.
So, after setting Intellij to compile to project-root/classes it worx now.
I hope somebody can use this, because...dammit this has taken time...
Well thanks for you quick responses!
/Flemming
On 6/26/07, Peter Thomas <[EMAIL PROTECTED]> wrote:
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
just a thought, are you using the ReloadingWicketFilter, I ran into
similar problems when I made a mistake in configuring it:
https://issues.apache.org/jira/browse/WICKET-685
On 6/26/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> >
> > > 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 classcast the (MySession)getSession(), but here the fun
> > begins.
> > >
> > > If I open the popup like this
> > >
> > > public void onClick() {
> > > "getRequestCycle().setResponsePage(new
> > > ChooseProductPage());" // it works like a charm
> > > }
> > >
> > > but if I do it like this
> > > public void onClick() {
> > > getRequestCycle().setResponsePage(ChooseProductPage.class
> > > );
> > > }
> > >
> > > I get a classcastexception in the line with the
> > (MySession)getSession()
> > >
> > > Is this something I should make a jira of or am I missing something
> > :-)
> > >
> > > As far as I can tell from the stack trace it seems to me that there
> > might
> > > be a classloading problem.
> > > Btw I am running wicket 1.2.6, java 1.5 and OSX
> >
> > Interesting. So what session object does it return? Did you check
> > whether you have duplicates in your class path?
> >
> > Eelco
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user