users@glassfish.java.net

Re: doing a lookup in a remote EJB

From: <forums_at_java.net>
Date: Sat, 20 Aug 2011 11:34:23 -0500 (CDT)

 this is the root exception is the ClassCastException:

Caused by: javax.naming.NamingException: Unable to acquire
SerialContextProvider for
SerialContext[myEnv={org.omg.CORBA.ORBInitialPort=3700,
java.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory,
org.omg.CORBA.ORBInitialHost=machine1.mydomain.com,
java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl,
java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is
java.lang.ClassCastException]

at
com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:352)

at
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:504)

... 103 more

Caused by: java.lang.ClassCastException

Looks like Glassfish 2.1.x is using a different SerialContextProvider than
Glassfish 3.1.x.  Is there something I can do in the initialContext to fix
this?

Also what is the link of the config you got working for Glassfish 3.x -->
2.1? .  I found this bug report http://java.net/jira/browse/GLASSFISH-12084
but it looks like it got resolved.

Thanks,

 

Jerry

 


--
[Message sent by forum member 'djgerbavore']
View Post: http://forums.java.net/node/835539