[jboss-user] [JNDI/Naming/Network] - Re: Class Cast Exception thrown when casting Data Source jb

PeterJ do-not-reply at jboss.com
Tue Aug 29 13:21:50 EDT 2006


Are you saying that line 

System.out.println(dSource.toString());

prints

org.jnp.interfaces.NamingContext

If that is true, then I am not surpised about the class cast exception.

I would try:

Object dSource = context.lookup("java:qpmDS");

Also, have you used JNDIView to see what is in the namespace?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968161#3968161

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968161



More information about the jboss-user mailing list