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).
<orion-web-app
deployment-version="1.1.8"
development="true"
persistence-path="../persistence/state.ser"
jsp-cache-directory="../persistence"
temporary-directory="./temp"
servlet-webdir="/servlet/"
>
>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