While Configuring RMI Cache Coordination for Weblogic in Standalone TopLink Workbench error: "java.lang.NoClassDefFoundError: weblogic/rmi/spi/HostID" (Doc ID 1061687.1)

Last updated on OCTOBER 17, 2011

Applies to:

Oracle TopLink - Version: 10.1.3.1 and later   [Release: AS10gR3 and later ]
Information in this document applies to any platform.

Symptoms

You are trying to configure sessions.xml in standalone TopLink Workbench. When checking the Cache Coordination tab to provide the JNDI parameters, the following exception is encountered:

Exception in thread "Thread-0" java.lang.NoClassDefFoundError: weblogic/rmi/spi/HostID
at weblogic.jndi.spi.EnvironmentManager$DefaultFactoryMaker.(EnvironmentManager.java:26)
at weblogic.jndi.spi.EnvironmentManager.getInstance(EnvironmentManager.java:48)
at weblogic.jndi.Environment.getContext(Environment.java:307)
at weblogic.jndi.Environment.getContext(Environment.java:277)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.(InitialContext.java:198)
at oracle.toplink.remotecommand.TransportManager.getContext(TransportManager.java:200)
at oracle.toplink.remotecommand.rmi.RMITransportManager.getLocalHostContext(RMITransportManager.java:171)
at oracle.toplink.remotecommand.rmi.RMITransportManager.createLocalConnectionInJNDI(RMITransportManager.java:139)
at oracle.toplink.remotecommand.rmi.RMITransportManager.createLocalConnection(RMITransportManager.java:117)


Observations
1. This problem would not occur if the application was running inside (deployed to) WebLogic Server.
2. This problem does only occur if the application is running outside of WebLogic Server with no other naming context factory being configured for JNDI.
3. This problem does not occur if some other naming context factory had been configured.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms