tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Gibbs <>
Subject Realm Authentication lost when tomcat is restarted
Date Fri, 05 Apr 2002 14:12:16 GMT
I have a JDBCRealm setup that works great.  I can log in, it protects the 
resource I specified.

But when I stop, then start tomcat, I lose the authentication and have to 

Looking at the log, I do see that my session was restored properly.

I ensured that PersistentManager was set to saveOnRestart=true

Tomcat ver 4.0.3.
RedHat Linux 7.2
FileStore sessions


        <Context path="/field_inspections_app" 
docBase="field_inspections_app" debug="99" reloadable="true">

                <Realm className="org.apache.catalina.realm.JDBCRealm" 
debug="99" driverName="" connectionName="USERNAME" 
connectionPassword="PASSWORD" digest="SHA1" 
connectionURL="jdbc:mysql://localhost/DATABASE" userTable="User" 
userNameCol="Username" userCredCol="Password" userRoleTable="UserRole" 

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

className="org.apache.catalina.session.PersistentManager" debug="99" 
saveOnRestart="true" maxActiveSessions="-1" minIdleSwap="-1" maxIdleSwap="-1" 


<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"


                                <web-resource-name>Staff Protected 
                                 <!-- Define the context-relative URL(s) to 
be protected -->
                <!-- Anyone with one of the listed roles may access this area 

        <!-- Default login configuration uses form-based authentication -->
                <realm-name>Staff Authentication Area</realm-name>


Bill "Elvis" Gibbs
Eduro Technologies, Inc.
main 240-529-2000 | fax 301-662-9552 | cell 301-748-5418

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message