wood burning stoves 2.0*
The moose likes Websphere and the fly likes javax.naming.ConfigurationException - when trying to access Database from - MBean-NotificationLister Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "javax.naming.ConfigurationException - when trying to access Database from - MBean-NotificationLister" Watch "javax.naming.ConfigurationException - when trying to access Database from - MBean-NotificationLister" New topic
Author

javax.naming.ConfigurationException - when trying to access Database from - MBean-NotificationLister

ms Uday
Greenhorn

Joined: Jul 06, 2010
Posts: 4
Hi,

I am getting the following exception when a MBean which has a timer and implements NotificationListner-handleNotification calls a Dataaccess class.

If I call the Dataaccess class from jsp it works fine, however the class is giving the below exception when called in handleNotification method.

Any pointers will be greatly appericated.

A JNDI operation on a "java:" name cannot be completed because the server runtime is not able to associate the operation's thread with any J2EE application component.
This condition can occur when the JNDI client using the "java:" name is not executed on the thread of a server application request.
Make sure that a J2EE application does not execute JNDI operations on "java:" names within static code blocks or in threads created by that J2EE application.
Such code does not necessarily run on the thread of a server application request and therefore is not supported by JNDI operations on "java:" names.
Exception stack trace:
javax.naming.ConfigurationException [Root exception is javax.naming.NameNotFoundException: Name comp/env/jdbc not found in context "java:".]
at com.ibm.ws.naming.java.javaURLContextImpl.throwConfigurationExceptionWithDefaultJavaNS
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javax.naming.ConfigurationException - when trying to access Database from - MBean-NotificationLister
 
Similar Threads
Name not found in context "java:".
please answer this 128 questions for WLS. Urgently!
JNDI lookup on a thread other than the main thread error
jboss, datasource naming and lookup error
timer mbean call to ejb