Maybe invalidate the HTTP sessions? So, that users will have to log-in again. 

Can you post a stack trace of the error you get? I remember having "similar"
class cast exceptions because OSGi class loading, but they all banished
after using the buddy class loading of equinox... But maybe your problem is
something different...

Best,

Ernesto


Daniel Dominik Holúbek wrote:
> 
> Ok,i've found out that i need to delete the JSESSIONID cookie after
> refreshing bundles.
> is there any way to do that programatically?
> 
> thx
> 
> On Mon, Aug 10, 2009 at 5:40 PM, Daniel Dominik Holúbek <
> dankodo...@gmail.com> wrote:
> 
>> Hello,i'm developing a webapp combining osgi (equinox) and wicket.
>> it works fine, except of this case:
>> let's say we've got two bundles - "core" and "chat".
>> the "chat" bundle depends on "core" bundle.
>> now, i've made some modifications to the "chat" bundle, exported it and
>> deployed it to osgi container, leaving the "core" bundle unchanged.
>> because i need the changes to be seen by the "core", i have to refresh
>> it.
>>
>> and here is the problem. when i now access the webapp, i get an exception
>> which says - MySession can not be cast to org.apache.wicket.Session.
>> i think the problem is that the old session, containing old classes (in
>> some Page store maybe? i'm still a newbie :)) is saved to disk before
>> actually refreshing core classes and then loaded again - but confliting
>> with
>> new, freshly loaded classes.
>> the exception goes away and webapp loads correctly after i restart my
>> browser :)
>>
>> so my question is: do you know about some workaround for this problem?
>> the
>> best scenario would be that the Session will load correctly, but it's not
>> necessary - it can be dropped.
>>
>> i know there's a lot of osgi, but i think this is a wicket problem - but
>> correct me if i'm mistaken. :)
>>
>> thanks for your answers!
>>
>> --
>> -danoh-
>>
> 
> 
> 
> -- 
> -danoh-
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problems-with-session-after-modifying-code-tp24902109p24915768.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to