wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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.

It is sorta covered in the JavaRanch Style Guide.
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