tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Ng <...@kargo.com>
Subject ClassNotFoundException: org.apache.catalina.realm.UserDatabaseRealm
Date Tue, 01 Nov 2005 16:47:10 GMT
Hi all,

I have been running Tomcat 5.5 w/Java 5 on linux.  The service starts up and
my webapps works fine. However, periodically and randomly (it seems) tomcat
throws an exception and the service shuts itself down:

At Line 151 /Server/Service/Engine/Realm/
className=org.apache.catalina.realm.UserDatabaseRealm
resourceName=UserDatabase

Catalina.start: java.lang.ClassNotFoundException:
org.apache.catalina.realm.UserDatabaseRealm
java.lang.ClassNotFoundException:
org.apache.catalina.realm.UserDatabaseRealm
        at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:1127)
        at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:992)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:115)
        at 
org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
        at 
org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
        at 
org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
        at 
org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329)
        at 
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
        at 
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java:1284)
        at 
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java:1806)
        at 
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1182)
        at 
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
        at 
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:362)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:301)
        at 
org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)


I'm very sure my classpath is setup properly as everything else loads up
correctly in tomcat and due to its sort of randomness, I can't quite
pinpoint what the issue seems to be.   The snippet of server.xml mentioning
UserDatabaseRealm is the default:

<GlobalNamingResources>

    <!-- Test entry for demonstration purposes -->
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>

    <!-- Editable user database that can also be used by
         UserDatabaseRealm to authenticate users -->
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
       description="User database that can be updated and saved"
           factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
          pathname="conf/tomcat-users.xml" />

  </GlobalNamingResources>

Any suggestions would be great.




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message