[JCA/JBoss] - Re: No valid JNDI Binding
by jvermast
I think I may have found the issue further up in my server log:
[WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=/jdbc/expertDB' to JNDI name 'java:/jdbc/expertDB'
Is there any way to force Jboss to bind jdbc/expertDB to jdbc/expertDB? It seems to be adding the "java:" on it's own because even when I change my jboss-web.xml to:
<jboss-web>
| <security-domain>java:/jaas/jmx-console</security-domain>
| <resource-ref>
| <res-ref-name>jdbc/expertDB</res-ref-name>
| <jndi-name>jdbc/expertDB</jndi-name>
| </resource-ref>
| </jboss-web>
I still get the same binding:
[WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=/jdbc/expertDB' to JNDI name 'java:jdbc/expertDB'
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233624#4233624
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233624
16 years, 11 months
[JCA/JBoss] - No valid JNDI Binding
by jvermast
Hey 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]
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233620#4233620
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233620
16 years, 11 months