tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Isabel Lameda <>
Subject Data Base Connection
Date Mon, 02 Sep 2002 16:34:31 GMT
Hi all!

I have 2 web applications that runs in my Tomcat 4.1.8 server.
Every thing works fine if i run only one of the two applications.
If i run one application and then the other i get this exception

org.apache.jasper.JasperException: Native Library
C:\oracle\ora81\bin\ocijdbc8.dll already loaded in another classloader

I´m trying to create a data source to solve this problem,
i´ve done all i found in tomcat-docs:

1. Create the data source 

<Resource name="jdbc/myoracle" auth="Container"

<ResourceParams name="jdbc/myoracle">

2. Configure web.xml (i added this line)
 <description>Oracle Datasource example</description>

3. I have a bean that creates a connection like this

Context initContext = new InitialContext();
Context envContext  = (Context)initContext.lookup("java:/comp/env");
DataSource ds = (DataSource)envContext.lookup("jdbc/myoracle");
Connection conn = ds.getConnection();

The problem is that the connection whit my oracle data base
cannot be creates because i get this execption:

java.sql.SQLException: Cannot load JDBC driver class 'null'

I don´t know if the problem is with the bean or with the server.xml or with

How can i check if the Data source is working fine since i found nothing
in the log files.

Thanks in advance

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message