dcsimg
JNDI descriptors of SUN J2EE Server
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Alexey_Kostylev
Posted On:   Wednesday, December 3, 2003 02:12 AM

I want to use Resin with Sun J2EE Server 1.4.2. This is my code: Properties env = new Properties(); env.put("java.naming.factory.initial", "com.sun.jndi.cosnaming.CNCtxFactory"); env.put("java.naming.provider.url", "iiop://hostname:1050"); InitialContext jndiCtx = new InitialContext(env); But I'm getting such Exception: javax.naming.CommunicationException: Cannot connect to ORB [Root exception is or g.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No] What am I doing wrong?    More>>

I want to use Resin with Sun J2EE Server 1.4.2. This is my code:

			
Properties env = new Properties();
env.put("java.naming.factory.initial",
"com.sun.jndi.cosnaming.CNCtxFactory");
env.put("java.naming.provider.url",
"iiop://hostname:1050");
InitialContext jndiCtx = new InitialContext(env);

But I'm getting such Exception:
			
javax.naming.CommunicationException: Cannot connect to ORB [Root exception is or
g.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No]

What am I doing wrong?    <<Less
About | Sitemap | Contact