Im having the same issue.. I have an app im porting from jboss to tomcat 7..
my <catalina_home>/conf/server.xml:
Code:
<GlobalNamingResources>
<Resource
name="jdbc/PPDS" auth="Container"
type="javax.sql.DataSource"
driverClassName="oracle.jdbc.OracleDriver"
url="jdbc:oracle:thin:@dev1vdb1:1541:cccd1"
username="hidden"
password="hidden"
maxActive="20"
maxIdle="10"
maxWait="-1"/>
</GlobalNamingResources>
my <catalina_home/conf/context.xml (I also tried putting this entry in my app/META-INF/context.xml and didn't help):
Code:
<Context>
<ResourceLink global="jdbc/PPDS" name="jdbc/PPDS" type="oracle.jdbc.pool.OracleDataSource"/>
</Context>
my <app>/webroot/WEB-INF/appContext.xml:
Code:
<bean id="PCDataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName">
<value>jdbc/PPDS</value>
</property>
</bean>
I also tried using java:comp/env/jdbc/PPDS for the name and it didn't help.. This is pretty frustrating.. It shouldn't be this difficult