turbine-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JDigg...@genelogic.com
Subject RE: restarting T2.2 & horrible session problem
Date Mon, 10 Feb 2003 16:20:21 GMT
> Another solution would be to change the configuration 
> of Tomcat to not persist sessions between restarts. 
> I am not sure if this is possible.

Possible and cleaner than deleting .ser files on startup. Alter the 
context manager in your server.xml file in Tomcat's conf directory to 
read:

<!-- My Context -->
<Context 
        path="/mypath" 
        docBase="/path/to/app/files" 
        debug="0" 
        reloadable="true" 
        privileged="true">

        <Logger 
                className="org.apache.catalina.logger.FileLogger" 
                prefix="localhost_myapp_log." 
                suffix=".txt" 
                timestamp="true"/>

        <!-- Change the manager to PersistentManager to 
                        prevent caching of session data -->
        <Manager 
                className="org.apache.catalina.session.PersistentManager" 
                debug="0" 
                saveOnRestart="false">  <!-- THIS IS THE IMPORTANT PART 
-->
                <Store className="org.apache.catalina.session.FileStore"/>
        </Manager>
 
</Context>

-j

-------------------------------------------------
James Diggans 
Bioinformatics Programmer
Gene Logic, Inc.
Phone: 301.987.1756
FAX: 301.987.1701






"Quinton McCombs" <qmccombs@nequalsone.com>
02/06/2003 03:13 PM
Please respond to "Turbine Users List"

 
        To:     "Turbine Users List" <turbine-user@jakarta.apache.org>
        cc: 
        Subject:        RE: restarting T2.2 & horrible session problem


You will need to modify your tomcat startup script to remove *.ser from
the work directory.  This might not be a good solution but it works.

Another solution would be to change the configuration of Tomcat to not
persist sessions between restarts.  I am not sure if this is possible.

> -----Original Message-----
> From: Rob Leachman [mailto:rob@bitblaster.com] 
> Sent: Thursday, February 06, 2003 2:07 PM
> To: Turbine Users List
> Subject: restarting T2.2 & horrible session problem
> 
> 
> Hello again,
> 
> Here's a real show-stopper to completing my migration to 2.2, and 
> again I ask if anyone knows what's going on. This one, I *might* be 
> able to make a bit more headway on, but right now it's just failing 
> and I don't know why.
> 
> Sometimes (always?) when I shut down Tomcat and then immediately 
> restart (perhaps to force reload classes) and haven't logged out my 
> previous session, instead of being challenged for a login I see the 
> attached error in turbine.log, and worse... things don't get better 
> until I bounce Tomcat again! The user gets an error message, really 
> bad.
> 
> Any help or comments are appreciated!
> 
> THANKS
> 
> 
> [Thu Feb 06 11:56:31 PST 2003] -- ERROR -- Turbine.handleException: 
> Failed instantiate an User implementation object: Failed to create a 
> Class object for User implementation
> [Thu Feb 06 11:56:31 PST 2003] -- ERROR --
>          Exception: 
> org.apache.turbine.util.security.UnknownEntityException
> 
> -- ERROR -- Turbine.handleException: Failed instantiate an User 
> implementation object: Failed to create a Class object for User 
> implementation
> -- ERROR --
>          Exception: 
> org.apache.turbine.util.security.UnknownEntityException: Failed 
> instantiate an User implementation object: Failed to create a Class 
> object for User implementation
>          Stack Trace follows:
>          org.apache.turbine.util.security.UnknownEntityException: 
> Failed to create a Class object for User implementation
>          at 
> org.apache.turbine.services.security.BaseSecurityService.getUs
> erClass(BaseSecurityService.java:228)
>          at 
> org.apache.turbine.services.security.BaseSecurityService.getUs
> erInstance(BaseSecurityService.java:249)
> rethrown as org.apache.turbine.util.security.UnknownEntityException: 
> Failed instantiate an User implementation object: Failed to create a 
> Class object for User implementation
>          at 
> org.apache.turbine.services.security.BaseSecurityService.getUs
> erInstance(BaseSecurityService.java:253)
>          at 
> org.apache.turbine.services.security.BaseSecurityService.getAn
> onymousUser(BaseSecurityService.java:357)
>          at 
> org.apache.turbine.services.security.TurbineSecurity.getAnonym
> ousUser(TurbineSecurity.java:241)
> --snip, it goes on quite a while---
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org




Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message