aspose file tools*
The moose likes Other Java Products and Servers and the fly likes InjectionException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Reply locked New topic


Chetan Raju
Ranch Hand

Joined: Aug 02, 2006
Posts: 109
Hello All,

I have deployed a servlet on Sun Java System App Server 9.1. The code snippet for the problem area is

I am getting a

I am trying to connect to a MySQL database instance. I have also configured the web.xml for the resource which is a DataSource

What could be the problem ? Can anyone help ?
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Please don't post the same question in multiple forums. It creates duplicate conversations and wastes the time of the people trying to help you.

I agree. Here's the link:
subject: InjectionException
Similar Threads
Stateless EBJ using JNDI to get DataSource with JBOSS 4.2
Errored while looking up datasource: PWC4216: Name jdbc is not bound in this Context
Retrieving datasource from jndi in java studio creator