No valid JNDI Binding
jvermast May 27, 2009 9:43 AMHey Fellas, I'm having a common issue starting up my app, I've found many threads on the forums and went through them but can't seem to figure out exactly what is wrong with my configurations:
## jboss-web.xml
<jboss-web> <security-domain>java:/jaas/jmx-console</security-domain> <resource-ref> <res-ref-name>jdbc/expertDB</res-ref-name> <jndi-name>java:jdbc/expertDB</jndi-name> </resource-ref> </jboss-web>
## web.xml
<web-app> <!-- JDBC DataSources (java:comp/env/jdbc) --> <resource-ref> <description>QA9 Datasource</description> <res-ref-name>jdbc/expertDB</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> </web-app>
## filogix-qa9-ds.xml
<datasources> <local-tx-datasource> <jndi-name>jdbc/expertDB</jndi-name> <connection-url>jdbc:oracle:thin:@z:1521:z</connection-url> <driver-class>oracle.jdbc.driver.OracleDriver</driver-class> <user-name>x</user-name> <password>y</password> <!-- Checks the Oracle error codes and messages for fatal errors --> <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name> <metadata> <type-mapping>Oracle9i</type-mapping> </metadata> </local-tx-datasource> </datasources>
But when I startup the server, I get:
[tt]--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@425fc4f1 { url=file:/opt/Jboss/server/filogix/deploy/expert-26-Merge-12.war }
deployer: MBeanProxyExt[jboss.web:service=WebServer]
status: Deployment FAILED reason: Error during deploy; - nested throwable: (javax.naming.NamingException: resource-ref: jdbc/expertDB has no valid JNDI binding. Check the jboss-web/resource-ref.)
state: FAILED
watch: file:/opt/Jboss/server/filogix/deploy/expert-26-Merge-12.war
altDD: null
lastDeployed: 1243427943306
lastModified: 1243427943000
mbeans:
--- MBeans waiting for other MBeans ---
ObjectName: jboss.web.deployment:war=expert-26-Merge-12.war,id=1113572593
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: resource-ref: jdbc/expertDB has no valid JNDI binding. Check the jboss-web/resource-ref.)
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.web.deployment:war=expert-26-Merge-12.war,id=1113572593
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: resource-ref: jdbc/expertDB has no valid JNDI binding. Check the jboss-web/resource-ref.)
Any assistance would be fantastic!
[/tt]