Guys I've broken my head with this error, google gives nothing.

I tried to follow
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html.

Tomcat 6.0.
Oracle 9.0.
driver: oracle_jdbc13-9.0.2.0.0.jar is added to "E:\Program Files\Apache
Software Foundation\Tomcat 6.0\lib\"

I see at catalina.2009-03-27.log:

*SEVERE:* Null component
Catalina:type=DataSource,path=/com.km.integration.service.web,host=localhost,class=javax.sql.DataSource,name="jdbc/isDS"


*web.xml*:
<web-app>

    <resource-ref>
        <description>Oracle Datasource example</description>
        <res-ref-name>jdbc/isDS</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
    </resource-ref>
....


context.xml is placed to META-INF/context.xml :
<?xml version='1.0' encoding='utf-8'?>
<Context>
    <Resource name="jdbc/isDS" auth="Container"
        type="javax.sql.DataSource"
        driverClassName="oracle.jdbc.OracleDriver"
        url="jdbc:oracle:thin:@172.16.4.4:1523:schema"
        username="test" password="test"/>
</Context>

This connection works I've tested it.

*How can I fix this exception??*
I've even don't try to call the interested JNDI DataSource.

When Tomcat starts it even check the connection, screenshot at
http://ovservice.org/trouble.PNG


-- 
________________________
Best regards,
Alexandr Khlystov

Reply via email to