The Problem
Anytime I start my Tomcat server via Eclipse I always get a Class not found error:
SEVERE: Exception processing Global JNDI Resources
javax.naming.NamingException: Class not found: oracle.jdbc.xa.client.OracleXADataSource
at org.apache.naming.factory.BeanFactory.getObjectInstance(BeanFactory.java:136)
The Setup
My server.xml file has a resource setup like:
<GlobalNamingResources>
<Resource name="sub1" auth="Container"
type="oracle.jdbc.xa.client.OracleXADataSource"
factory="org.apache.naming.factory.BeanFactory"
user="****" password="*****"
URL="**************************************" />
</GlobalNamingResources>
context.xml has an entry that looks like so:
<ResourceLink name="dataSource/sub1" global="sub1" type="javax.sql.DataSource" />
On my application, I'm using Oracle's JDBC driver - classes12.jar
The Question
What do I need to fix on the Tomcat server so that it can find the appropriate class - oracle.jdbc.xa.client.OracleXADataSource
. My first guess would be that classes12.jar needs to be copied to a folder somewhere on the server. I'm not even totally sure where the folder on Windows for Eclipse... any help would be appreciated.
Thanks!