Re: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-18 Thread Sven Schliesing
problems I'm going to have with that. :) Thanks everyone for your efforts and savvy! -- View this message in context: http://www.nabble.com/org.apache.wicket.protocol.http.WebSession-cannot-be-cast-to-my.CustomSession-tp15480791p15540643.html Sent from the Wicket - User mailing list archive

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-17 Thread Sven Schliesing
a lot of trouble... -- View this message in context: http://www.nabble.com/org.apache.wicket.protocol.http.WebSession-cannot-be-cast-to-my.CustomSession-tp15480791p15539346.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-17 Thread Sven Schliesing
tests. :) -- View this message in context: http://www.nabble.com/org.apache.wicket.protocol.http.WebSession-cannot-be-cast-to-my.CustomSession-tp15480791p15539854.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-17 Thread Sven Schliesing
/org.apache.wicket.protocol.http.WebSession-cannot-be-cast-to-my.CustomSession-tp15480791p15539346.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-17 Thread Timo Rantalaiho
On Sun, 17 Feb 2008, Sven Schliesing wrote: I'm using the SpringWebApplication cause of createSpringBeanProxy() and the automatic init of the configured ApplicationContext (http://cwiki.apache.org/WICKET/spring.html). Manually initializing would be a huge tradeoff for working tests. :) Hmm,

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-15 Thread Sven Schliesing
WicketTester(myApp); } } --- -- View this message in context: http://www.nabble.com/org.apache.wicket.protocol.http.WebSession-cannot-be-cast-to-my.CustomSession-tp15480791p15496951.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-15 Thread Igor Vaynberg
/org.apache.wicket.protocol.http.WebSession-cannot-be-cast-to-my.CustomSession-tp15480791p15496951.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-15 Thread Timo Rantalaiho
On Fri, 15 Feb 2008, Igor Vaynberg wrote: you need to override newsession on the app and return your subclass But he did it here, no? public class MyApplication extends SpringWebApplication { private SpringComponentInjector springComponentInjector;

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-15 Thread Igor Vaynberg
right, missed it. i guess the next step would be to set a breakpoint there and see if its ever called. if not, set a breakpoint in websession constructor and see why that is invoked instead of the overridden factory. -igor On Fri, Feb 15, 2008 at 10:25 AM, Timo Rantalaiho [EMAIL PROTECTED]

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-15 Thread Nino Saturnino Martinez Vazquez Wael
Yeah, put some break points in there, and if you still have trouble provide a quickstart... regards Nino Sven Schliesing wrote: I think I don't get it :( I narrowed down the problem to this test case. It would be great if you could take a look: --- public class

org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-14 Thread Sven Schliesing
Hi, I'm trying to set up testing for my Wicket Application but ran across this error message: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession The page (LoginPage) I'm testing does: (CustomSession) Session.get(); This is the point where the error

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-14 Thread Timo Rantalaiho
On Thu, 14 Feb 2008, Sven Schliesing wrote: java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? Yep, you should provide it an ApplicationContext more suitable for testing. There is the handy MockContext in wicket-spring that you can use. We

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-14 Thread Nino Saturnino Martinez Vazquez Wael
wrote: Hi, I'm trying to set up testing for my Wicket Application but ran across this error message: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession The page (LoginPage) I'm testing does: (CustomSession) Session.get(); This is the point where the error