tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neil Youngman" <Neil.Young...@wirefast.com>
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 [mailto:Neil.Youngman@wirefast.com]
>> 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

/tmp/catalina.trace.3726:stat64("/home/neil/wirefast/dev/tomcat6/servlet-example/conf/example/localhost/axis2.xml",
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"
            appBase="webapps"
            unpackWARs="true"
            autoDeploy="true"
            xmlValidation="false"
            xmlNamespaceAware="false" />
    </Engine>
  </Service>

</Server>

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

<Context>
    <Resource name="jdbc/TestDatabase" auth="Container"
              type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDr\
iver"
              url="jdbc:oracle:thin:@192.168.2.143:1521:w2"
              username="wire2" password="wire2"
              maxActive="20" maxIdle="10"
              maxWait="-1"/>
</Context>

Neil Youngman


Mime
View raw message