"Erik Horstkotte" <[EMAIL PROTECTED]> wrote in message news:3a2d713a$[EMAIL PROTECTED]... > Has anyone out there tried to access EJBs in a WebLogic 5.10 SP6 app > server from a servlet in Tomcat 3.2? I'm operating under Win2K. When I > try to create the initial naming context, the following exception is > thrown: [Sigh. I know it's bad form to follow up your own posts, but...] Ignore the exact problem description above. I wasn't including \weblogic\classes and \weblogic\lib\weblogicaux.jar in Tomcat's classpath. Now the same code connects to the app server: Connected successfully using http to JIMBO/172.16.1.4:7001 But immediately after connecting, I get a new exception: java.lang.NoSuchMethodError: java.lang.NoSuchMethodException: getNameInNamespace at weblogic.jndi.toolkit.BasicWLContext_WLStub.ensureInitialized (BasicWLContext_WLStub.java:127) at weblogic.jndi.toolkit.BasicWLContext_WLStub.<init> (BasicWLContext_WLStub.java:146) at java.lang.reflect.Constructor.newInstance(Native Method) at weblogic.common.internal.ClassTableEntry.newInstance (ClassTableEntry.java:86) at weblogic.common.internal.WLObjectInputStreamBase.readLeftover (WLObjectInputStreamBase.java:248) at weblogic.common.internal.WLObjectInputStreamBase .readObjectBody (WLObjectInputStreamBase.java:202) at weblogic.common.internal.WLObjectInputStreamBase.readObject (WLObjectInputStreamBase.java:949) at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL (WLObjectInputStreamBase.java:308) at weblogic.jndi.toolkit.WLContextStub.readExternal (WLContextStub.java:79) at weblogic.common.internal.WLObjectInputStreamBase .readPublicSerializable(WLObjectInputStreamBase.java:269) at weblogic.common.internal.WLObjectInputStreamBase.readLeftover (WLObjectInputStreamBase.java:254) at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody (WLObjectInputStreamBase.java:202) at weblogic.common.internal.WLObjectInputStreamBase.readObject (WLObjectInputStreamBase.java:949) at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL (WLObjectInputStreamBase.java:308) at weblogic.rmi.extensions.AbstractInputStream2.readObject (AbstractInputStream2.java:25) at weblogic.jndi.internal.RemoteContextFactoryImpl_WLStub .getContext(RemoteContextFactoryImpl_WLStub.java:99) at weblogic.jndi.WLInitialContextFactoryDelegate .newRemoteContext(WLInitialContextFactoryDelegate.java:316) at weblogic.jndi.WLInitialContextFactoryDelegate.newContext (WLInitialContextFactoryDelegate.java:242) at weblogic.jndi.WLInitialContextFactoryDelegate .getInitialContext(WLInitialContextFactoryDelegate.java, Compiled Code) at weblogic.jndi.WLInitialContextFactoryDelegate .getInitialContext(WLInitialContextFactoryDelegate.java:148) at weblogic.jndi.WLInitialContextFactory.getInitialContext (WLInitialContextFactory.java:123) at javax.naming.spi.NamingManager.getInitialContext (NamingManager.java:771) at javax.naming.InitialContext.getDefaultInitCtx (InitialContext.java:169) at javax.naming.InitialContext.<init>(InitialContext.java:146) getNameInNamespace isn't a method in any of my EJB's (that I wrote, at least - it could be generated by weblogic.ejbc), and it's not a method I'm calling directly. Presumably, something in the remote session bean creation is calling this method (of what class?) Am still I missing classpath entries in Tomcat? If so, which ones? If you've successfully referenced EJBs in a WebLogic Server from a Tomcat servlet, what setup changes did you have to make to Tomcat and WLS to make it fly? -- Erik
