Getting a NullPointerException at Tomcat startup. JDBCRealm configuration
excerpt from server.xml and stack trace below. I've dropped the JDBC driver
JAR into the common\lib directory and set up the realm configuration as
described in the documentation. The driver name and URL are verified because
I successfully use them to configure a datasource in web.xml. Any ideas?
Thanks!

server.xml:
<?xml version="1.0" encoding="UTF-8"?>
<Server debug="0" port="8081" shutdown="SHUTDOWN">
  <Service name="Tomcat-Standalone">
    <Connector acceptCount="10"
className="org.apache.catalina.connector.http.HttpConnector"
connectionTimeout="60000" debug="0" maxProcessors="75" minProcessors="5"
port="8080"/>
    <Engine debug="0" defaultHost="localhost" name="Standalone">
      <Host appBase="C:\Documents and
Settings\spearson\jbproject\pots\Tomcat\webapps" debug="0" name="localhost"
unpackWARs="true">
        <Context debug="0" docBase="C:\Documents and
Settings\spearson\jbproject\pots\defaultroot" path="" reloadable="true"
workDir="C:\Documents and Settings\spearson\jbproject\pots\Tomcat\work"/>
      </Host>
                        <Realm
                                className="org.apache.catalina.realm.JDBCRealm"
                                driverName="oracle.jdbc.OracleDriver"

connectionUrl="jdbc:oracle:thin:@jdbc:oracle:thin:@192.168.1.103:1521:pots"
                                connectionName="purchasing"
                                connectionPassword="pots"
                                userTable="purchasing.pots_roles" userNameCol="email"
userCredCol="email"
                                userRoleTable="purchasing.pots_roles" 
roleNameCol="pots_role_type_name"
                                debug="99"
                        />
    </Engine>
  </Service>
</Server>

Stack trace:
HttpConnector Opening server socket on all host IP addresses
Starting service Tomcat-Standalone
Apache Tomcat/4.0.6
java.lang.NullPointerException
        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:164)
        at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:548)
        at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
        at org.apache.catalina.core.StandardService.start(StandardService.java:388)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to