JNDI lookup of DataSource failed
braca Sep 4, 2008 3:26 PMHello,
I can't get connected to my Oracle-DB with my Web Application (war). JBoss 4.2.3 is connected to Oracle (relevant tables have been deployed). However, no connection is possible through my web app. The exception is as follows:
21:11:42,847 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
21:11:42,991 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=OracleDS' to JNDI name 'java:OracleDS'
21:11:43,995 INFO [A] Bound to JNDI name: queue/A
21:11:43,999 INFO [B] Bound to JNDI name: queue/B
21:11:44,003 INFO [C] Bound to JNDI name: queue/C
21:11:44,007 INFO [D] Bound to JNDI name: queue/D
21:11:44,012 INFO [ex] Bound to JNDI name: queue/ex
21:11:44,044 INFO [testTopic] Bound to JNDI name: topic/testTopic
21:11:44,049 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
21:11:44,053 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
21:11:44,058 INFO [testQueue] Bound to JNDI name: queue/testQueue
21:11:44,109 INFO [UILServerILService] JBossMQ UIL service available at : /127.0.0.1:8093
21:11:44,164 INFO [DLQ] Bound to JNDI name: queue/DLQ
21:11:44,194 INFO [TomcatDeployer] deploy, ctxPath=/FinanzManagerKUR, warUrl=.../tmp/deploy/tmp17011FinanzManagerKUR-exp.war/
21:11:44,205 WARN [ServiceController] Problem starting service jboss.web.deployment:war=FinanzManagerKUR.war,id=1936763747
org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: resource-ref: OracleDS has no valid JNDI binding. Check the jboss-web/resource-ref.)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:384)
at org.jboss.web.WebModule.startModule(WebModule.java:83)
at org.jboss.web.WebModule.startService(WebModule.java:61)
I use only a web.xml for my web-app:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>FinanzManagerKUR</display-name>
<welcome-file-list>
<welcome-file>index.jspx</welcome-file>
</welcome-file-list>
<resource-ref>
JNDI DataSource for OracleDS database im JBoss
<res-ref-name>OracleDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
Do I need anything else? Config/Xml-Files, or libs? But it seems the JNDI-Binding is wrong... Can anyone help me?
Thanks, braca