users@glassfish.java.net

javax.naming.Context properties changed in v2 (vs. v1)?

From: Alexis Moussine-Pouchkine <alexis.mp_at_sun.com>
Date: Tue, 17 Apr 2007 16:25:00 +0200

Code using these properties works fine on GFv1 :
         properties.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.enterprise.naming.SerialInitContextFactory");
         properties.put(Context.URL_PKG_PREFIXES,
"com.sun.enterprise.naming");
         properties.put(Context.STATE_FACTORIES,
"com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");

but fails on GFv2b33e with this stack trace upon calling
listBindings("") :

Unable to access to the Naming Directory
     org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 207 completed: No
javax.naming.CommunicationException: java.rmi.MarshalException: CORBA
MARSHAL 1398079695 No;

Documentation/RTFM answers welcome...

thanks,
-Alexis