Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

No valid JNDI Binding

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic