• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

No valid JNDI Binding

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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




## web.xml




## filogix-qa9-ds.xml




But when I startup the server, I get:

--- 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!


 
joshua vermast
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:


I still get the same binding:
[WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=/jdbc/expertDB' to JNDI name 'java:jdbc/expertDB'
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To keep the datasource JNDI name from bidning to the java: namespace, add this to your *-ds.xml file:



However, since you are accessing it from a web app, you should really leave it in the java: namespace. And you should also use the java: namespace during the lookup. Here is a complete example.
 
I just had the craziest dream. This tiny ad was in it.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!