aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes javax.naming.CommunicationException when running J2EE server Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "javax.naming.CommunicationException when running J2EE server" Watch "javax.naming.CommunicationException when running J2EE server" New topic
Author

javax.naming.CommunicationException when running J2EE server

Not Available
Greenhorn

Joined: Dec 06, 2001
Posts: 7
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
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
Please check classpathes, such as java_home, etc.
Not Available
Greenhorn

Joined: Dec 06, 2001
Posts: 7
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javax.naming.CommunicationException when running J2EE server
 
Similar Threads
exception in javax.naming
regarding EJB Deployment
Client program how to???
how to run the AdviceClient
Can't find SerialContextProvider