WebSession Casting unable

2009-10-05 Thread Peter Arnulf Lustig
Hi, why can't I cast a Websession to a SecurePageSession-Class which extends Websession?! java.lang.ClassCastException: org.apache.wicket.protocol.http.WebSession cannot be cast to org.omikron.test.SecurePageSession In the book I bought (Wicket in Praxis, a german book for wicket 1.4) the

Re: WebSession Casting unable

2009-10-05 Thread Pieter Degraeuwe
Not each Websession is a SecurePageSession. (but each SecurePageSession IS a WebSession) So, it means that you probably are dealing with a normal WebSession. Is your Application creating the correct Session instance (override the newSession()) On Mon, Oct 5, 2009 at 1:19 PM, Peter Arnulf

AW: WebSession Casting unable

2009-10-05 Thread Peter Arnulf Lustig
Mail Von: Pieter Degraeuwe pieter.degrae...@systemworks.be An: users@wicket.apache.org Gesendet: Montag, den 5. Oktober 2009, 13:29:28 Uhr Betreff: Re: WebSession Casting unable Not each Websession is a SecurePageSession. (but each SecurePageSession IS a WebSession) So, it means that you

AW: WebSession Casting unable

2009-10-05 Thread Peter Arnulf Lustig
pieter.degrae...@systemworks.be An: users@wicket.apache.org Gesendet: Montag, den 5. Oktober 2009, 13:29:28 Uhr Betreff: Re: WebSession Casting unable Not each Websession is a SecurePageSession. (but each SecurePageSession IS a WebSession) So, it means that you probably are dealing with a normal WebSession

Re: WebSession Casting unable

2009-10-05 Thread Pedro Santos
Betreff: Re: WebSession Casting unable Not each Websession is a SecurePageSession. (but each SecurePageSession IS a WebSession) So, it means that you probably are dealing with a normal WebSession. Is your Application creating the correct Session instance (override the newSession

AW: WebSession Casting unable

2009-10-05 Thread Peter Arnulf Lustig
yeah you are right. Thank you for your help. - Ursprüngliche Mail Von: Pedro Santos pedros...@gmail.com An: users@wicket.apache.org Gesendet: Montag, den 5. Oktober 2009, 13:50:32 Uhr Betreff: Re: WebSession Casting unable your implementation needs to return an instance