This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Not Finding DataSource in JNDI Tree Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Not Finding DataSource in JNDI Tree" Watch "Not Finding DataSource in JNDI Tree" New topic
Author

Not Finding DataSource in JNDI Tree

Russell Ray
Ranch Hand

Joined: Apr 25, 2005
Posts: 116
I have port over my application to JBoss. I am confrigured most to the application server, but I am getting an error when the application attempts to make a connection to the DataSource. This is the error:






this is the code:



This is how I have my DataSource (*-ds.xml) configured:



This is my web.xml




This is my jboss-web.xml





When I go back and look at how my dataSource is connection, I discover the DataSource log statement:

Code:







I am let to believe the DataSource is setup properly, but for some reason, the JNDI is not.

Any suggestions would be much appreciated.

Thanks for reading my post.

Russ
Russell Ray
Ranch Hand

Joined: Apr 25, 2005
Posts: 116
I found my mistake.........you can close this.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not Finding DataSource in JNDI Tree
 
Similar Threads
Spring-JNDI
Problem in getting the datasource for mysql
Define DataSource in META-INF/context.xml ?
Class Cast Exception for MS-SQL Server Driver
XA DataSource configuration Error/Exception in JBoss