javax.naming.CommunicationException when running J2EE server
Not Available
Greenhorn
Joined: Dec 06, 2001
Posts: 7
posted
0
Hi, I have installed the J2EE 1.3 Server and deployed a testEJB. However, when I run the client, I get a javax.naming.CommunicationException: org.omg.CORBA.NO_PERMISSION Can somebody provide a hint? The error stack is as follows: javax.naming.CommunicationException: org.omg.CORBA.NO_PERMISSION: minor code: 0 completed: No at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:93) at com.sun.corba.ee.internal.iiop.ClientResponseImpl.getSystemException(ClientResponseImpl.java:108) at com.sun.corba.ee.internal.POA.GenericPOAClientSC.invoke(GenericPOAClientSC.java:136) at com.sun.corba.ee.internal.corba.ClientDelegate.is_a(ClientDelegate.java:833) at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:76) at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:52) at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:326) at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:373) at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:351) at javax.naming.InitialContext.lookup(InitialContext.java:350) at com.sun.enterprise.naming.factory.IIOPObjectFactory.getObjectInstance(IIOPObjectFactory.java:42) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:307) at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:158) at javax.naming.InitialContext.lookup(InitialContext.java:350) at com.huxiaoqin.client.InterestCalculatorClient.createInterestCalculator(InterestCalculatorClient.java:85) at com.huxiaoqin.client.InterestCalculatorClient.<init>(InterestCalculatorClient.java:44) at com.huxiaoqin.client.InterestCalculatorClient.main(InterestCalculatorClient.java:315) at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:172) at javax.naming.InitialContext.lookup(InitialContext.java:350) at com.huxiaoqin.client.InterestCalculatorClient.createInterestCalculator(InterestCalculatorClient.java:85) at com.huxiaoqin.client.InterestCalculatorClient.<init>(InterestCalculatorClient.java:44) at com.huxiaoqin.client.InterestCalculatorClient.main(InterestCalculatorClient.java:315)
Not Available
Greenhorn
Joined: Dec 06, 2001
Posts: 7
posted
0
Could somebody please help me with this question that has plagued me for 3 days?! Thanks, Cindy Hu
ruilin yang
Ranch Hand
Joined: Feb 25, 2001
Posts: 334
posted
0
Please check classpathes, such as java_home, etc.
Not Available
Greenhorn
Joined: Dec 06, 2001
Posts: 7
posted
0
The client classpath includes not only the java_home, but the EJBClient.jar created by the J2EE server. There is no run-time error from my EJBClient, except that it cannot communicate with the testEJB. I suspect it is a problem with security/role. Help! Cindy