I am trying to call Oracle CMP from a jboss/tomcat servlet and I get this error:

javax.naming.NameNotFoundException: jdbc not bound


The call I am using looks like this:

      InitialContext ic = new InitialContext();
      DataSource ds = (DataSource) ic.lookup("java:/jdbc/APConnectionPool");

The same lookup works when I do it from within an EJB.

I was reading the "jBoss 2.0: Third-Party Software" section in the User Manual and I 
followed the recomendation to check if I have the same class loader:

        System.out.println ("Class Loader:" + 
Thread.currentThread().getContextClassLoader());

In the servlet this produces:

Class Loader:AdaptiveClassLoader( )


In the EJB this produces:

Class Loader:java.net.URLClassLoader@721b0

Yet I followed the intructions in the "jBoss 2.0: Third-Party Software" section for 
"Same JVM, Same ClassLoader".

Anyone out there been through this before?  I would appriciate some help.

Thanks
John Parker
                     




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to