Hi everyone,I have subclassed the WebSession class as recommended in Wicket
in Action and I override the public static get() method to return
Session.get() cast to MyWebSession as follows:
public static MyWebSession get() { return (MyWebSession) Session.get(); }

This of course works as expected but when I run my tests from maven against
code which uses this I get a ClassCastException
(org.apache.wicket.protocol.http.WebSession cannot be cast to
org.my.MyWebSession)
I'm guessing this must be a classloader issue.
Has anyone come across this?
Best regards,
Nial Darbey

Reply via email to