Caldarale, Charles R wrote:
>> From: Neil Youngman [mailto:neil.young...@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

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

Reply via email to