tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neil Youngman" <>
Subject RE: [ERROR] Cannot create JDBC driver of class '' for connect URL 'null'
Date Fri, 24 Jul 2009 14:21:22 GMT
Caldarale, Charles R wrote:
>> From: Neil Youngman []
>> Subject: RE: [ERROR] Cannot create JDBC driver of class '' for connect
>> URL 'null'
>> That is interesting, because it appears to check the existence of the
>> axis2/META-INF/context.xml file, but, as far as can be seen from the
>> strace output, it never opens it.
> This is indicative that there may be another <Context> element around that's overriding
the one in META-INF.  Check for the existence of conf/Catalina/[host]/axis2.xml; if it's there,
that will preclude reading the one from META-INF.

It doesn't look like that's it

0xffce99c4) = -1 ENOENT (No such file or directory)

$ find ~/wirefast/dev/tomcat6/servlet-example -iname \*.xml | xargs grep '<Resource'
/home/neil/wirefast/dev/tomcat6/servlet-example/webapps/axis2/META-INF/context.xml:    <Resource
name="jdbc/TestDatabase" auth="Container"

> Also, since it's been ten days since your original posting, can you please show us the
server.xml for Tomcat and the context.xml for this webapp as they now stand?

This is servlet-example/conf/server.xml

<?xml version='1.0' encoding='utf-8'?>
<Server port="6262">

  <Service name="example">
    <Connector debug="6261" port="6260" />
    <Engine name="example" defaultHost="localhost">
      <Host name="localhost"
            xmlNamespaceAware="false" />


and this is servlet-example/webapps/axis2/META-INF/context.xml

    <Resource name="jdbc/TestDatabase" auth="Container"
              type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDr\
              username="wire2" password="wire2"
              maxActive="20" maxIdle="10"

Neil Youngman

View raw message