Re: Make changes without losing session?
Thanks much for the help, Robert. I added the "persistence-path" entry and sessions now persist across restarts and shutdowns! Unfortunately if I make a change to one of my servlets (and/or presumably beans) when the session is next accessed a ClassCastException is thrown. If I do a restart after changing a servlet then it seems to work ok. I assume I shouldn't have to do a restart after any servlet/bean changes. Any ideas? Thanks again for your help, Brien Voorhees Here's the exact error, by the way : 500 Internal Server Error java.lang.ClassCastException: com.quicksweep.User at com.quicksweep.ContestServlet.doGet(ContestServlet.java:17) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at com.evermind.server.http.dg.o2(JAX) at com.evermind.server.http.dg.forward(JAX) at com.evermind.server.http.dp.o8(JAX) at com.evermind.server.http.dp.o7(JAX) at com.evermind.util.e.run(JAX) - Original Message - From: "Robert Krueger" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Thursday, July 06, 2000 12:12 AM Subject: Re: Make changes without losing session? sessions should be OK across server restarts as long as they contain only serializable values or ejb references. you configure persistent sessions in orion-web.xml of the particular web module via the persistence-path attribute (see below). >Also, I was wondering what the expected behavior is of doing a RESTART or >SHUTDOWN-then-startup. Should all the user sessions still be valid when the >server comes back up? They aren't for me, currently, but I assume that's >caused by the same problem as above. > >If someone can enlighten me, I'd really appreciate it. >Thank you, >Brien Voorhees > > > > > (-) Robert Krüger (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de
Re: Make changes without losing session?
sessions should be OK across server restarts as long as they contain only serializable values or ejb references. you configure persistent sessions in orion-web.xml of the particular web module via the persistence-path attribute (see below). >Also, I was wondering what the expected behavior is of doing a RESTART or >SHUTDOWN-then-startup. Should all the user sessions still be valid when the >server comes back up? They aren't for me, currently, but I assume that's >caused by the same problem as above. > >If someone can enlighten me, I'd really appreciate it. >Thank you, >Brien Voorhees > > > > > (-) Robert Krüger (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de
Make changes without losing session?
Whenever I make a change to one of my servlet source files while a user is in the middle of a session, Orion appears to terminate the session and on subsequent page requests gives the user a ClassCastException (e.g. java.lang.ClassCastException: com.quicksweep.BrowseList at /directory.jsp._jspService(/directory.jsp.java:32) at com.evermind.server.http.EvermindHttpJspPage.service(JAX) ). I assume I must just be doing something stupid with my configuration. In an attempt to keep my configuration relatively simple, I'm just using the default web app setup. I added the following to "global-web-application.xml" : (this is where my servlets and beans are) I also tried taking out the first classpath entry and putting all my source files in WEB-INF/classes/... Also, I was wondering what the expected behavior is of doing a RESTART or SHUTDOWN-then-startup. Should all the user sessions still be valid when the server comes back up? They aren't for me, currently, but I assume that's caused by the same problem as above. If someone can enlighten me, I'd really appreciate it. Thank you, Brien Voorhees