Hi all,
I'm running a client on AIX which connects an EJB on glassfish running also on AIX.
When the client creates the initialContext we get the ClassNotFoundException below. Apparently it tries to load the class sun.security.x509.X500Name which doesn't exist in the IBM's JDK. But the class com.ibm.security.x509.X500Name exists in the IBM JDK at this location: $JAVA_HOME/jre/lib/ibmpkcs.jar.
I wonder if we can specify some properties to the initialContext to load the IBM implementation of the X500Name. If it is possible, how to do it ?
Thank you for the help.
Exception in thread "main" java.lang.NoClassDefFoundError: sun.security.x509.X500Name
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:63)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:124)
at com.sun.enterprise.iiop.J2EEInitializer.post_init(J2EEInitializer.java:140)
at com.sun.corba.ee.impl.interceptors.PIHandlerImpl.postInitORBInitializers(PIHandlerImpl.java:819)
at com.sun.corba.ee.impl.interceptors.PIHandlerImpl.initialize(PIHandlerImpl.java:245)
at com.sun.corba.ee.impl.orb.ORBImpl.postInit(ORBImpl.java:639)
at com.sun.corba.ee.impl.orb.ORBImpl.set_parameters(ORBImpl.java:701)
at org.omg.CORBA.ORB.init(ORB.java:364)
at com.sun.enterprise.util.ORBManager.initORB(ORBManager.java:546)
at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:278)
at com.sun.enterprise.naming.SerialInitContextFactory.getInitialContext(SerialInitContextFactory.java:180)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:679)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:259)
at javax.naming.InitialContext.init(InitialContext.java:235)
at javax.naming.InitialContext.<init>(InitialContext.java:209)
at com.imtf.atlas.nereus.repository.crs.CRSServiceLocator.createInstance(CRSServiceLocator.java:51)
at com.imtf.atlas.nereus.repository.crs.ContentRepositoryServerInitializer.setCRSService(ContentRepositoryServerInitializer.java:146)
at com.imtf.atlas.nereus.repository.crs.ContentRepositoryServerInitializer.performInitializationTasks(ContentRepositoryServerInitializer.java:71)
at imtf.ch.atlas.gaia.InitializersList.resolveAll(InitializersList.java:224)
at imtf.ch.atlas.gaia.GaiaContainer.<init>(GaiaContainer.java:148)
at imtf.ch.atlas.gaia.Bootstrap.main(Bootstrap.java:301)
[Message sent by forum member 'patoulatchi_m' (patoulatchi_m)]
http://forums.java.net/jive/thread.jspa?messageID=284331