I created a web application with ojdbc14.jar in the lib folder.
However, when I start my tomcat, I get an error message:
Caused by: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
As long as it exists!
When I deploy the same application in my local tomcat in Eclipse, it works fine.
However, when I deploy it from Eclipse, I get this message, although the jar exists!
EDITED
I also reference it from context.xml in the META-INF folder:
<WatchedResource>WEB-INF/web.xml</WatchedResource> <Transaction factory="bitronix.tm.BitronixUserTransactionObjectFactory" /> <Resource name="jdbc/testDS1" auth="Container" type="javax.sql.DataSource" maxActive="15" maxIdle="2" maxWait="10000" logAbandoned="true" username="cust" password="cust" driverClassName="oracle.jdbc.OracleDriver" url="jdbc:oracle:thin:@myserver:id:name"/>
source share