tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bussie, Andre D" <andre.d.bus...@lmco.com>
Subject DataSource -- help please
Date Wed, 28 Jul 2004 17:02:17 GMT
I restarted Tomcat and I'm still receiving the following error 

 

2004-07-28 12:56:27 StandardWrapperValve[jsp]: Servlet.service() for
servlet jsp threw exception

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null', cause: 

java.lang.NullPointerException

 

Listed is my server.xml 

 

<?xml version='1.0' encoding='utf-8'?>

<Server>

  <Listener
className="org.apache.catalina.mbeans.ServerLifecycleListener"/>

  <Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/
>

  <GlobalNamingResources>

    <Environment name="simpleValue" type="java.lang.Integer"
value="30"/>

    <Resource name="jdbc/phone" type="javax.sql.DataSource"/>

    <Resource auth="Container" description="User database that can be
updated and saved" name="UserDatabase"
type="org.apache.catalina.UserDatabase"/>

    <Resource name="hsqldb" type="javax.sql.DataSource"/>

    <ResourceParams name="jdbc/phone">

      <parameter>

        <name>maxWait</name>

        <value>5000</value>

      </parameter>

      <parameter>

        <name>maxActive</name>

        <value>4</value>

      </parameter>

      <parameter>

        <name>password</name>

        <value></value>

      </parameter>

      <parameter>

        <name>url</name>

        <value>jdbc:hsqldb.hsql://localhost</value>

      </parameter>

      <parameter>

        <name>driverClassName</name>

        <value>org.hsqldb.jdbcDriver</value>

      </parameter>

      <parameter>

        <name>maxIdle</name>

        <value>2</value>

      </parameter>

      <parameter>

        <name>username</name>

        <value>sa</value>

      </parameter>

    </ResourceParams>

    <ResourceParams name="UserDatabase">

      <parameter>

        <name>factory</name>

 
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>

      </parameter>

      <parameter>

        <name>pathname</name>

        <value>conf/tomcat-users.xml</value>

      </parameter>

    </ResourceParams>

    <ResourceParams name="hsqldb">

      <parameter>

        <name>url</name>

        <value>jdbc:hsqldb.hsql://localhost</value>

      </parameter>

      <parameter>

        <name>password</name>

        <value></value>

      </parameter>

      <parameter>

        <name>maxActive</name>

        <value>4</value>

      </parameter>

      <parameter>

        <name>maxWait</name>

        <value>5000</value>

      </parameter>

      <parameter>

        <name>driverClassName</name>

        <value>org.hsqldb.jdbcDriver</value>

      </parameter>

      <parameter>

        <name>username</name>

        <value>sa</value>

      </parameter>

      <parameter>

        <name>maxIdle</name>

        <value>2</value>

      </parameter>

    </ResourceParams>

  </GlobalNamingResources>

  <Service debug="9" name="Catalina">

    <Connector acceptCount="100" connectionTimeout="20000"
disableUploadTimeout="true" port="8080" redirectPort="8443">

    </Connector>

    <Connector port="8009" protocol="AJP/1.3"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
redirectPort="8443">

    </Connector>

    <Engine debug="9" defaultHost="localhost" name="Catalina">

      <Host appBase="webapps" name="localhost">

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

      </Host>

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

      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>

    </Engine>

  </Service>

</Server>

 

I connected to the database earlier via Jakarta Struts datasource so I
know the url settings are correct. 

 

What is causing this? Someone help please.

 

 


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