This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Head First EJB - Problem Running Client of 1st example of EJB. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Head First EJB - Problem Running Client of 1st example of EJB." Watch "Head First EJB - Problem Running Client of 1st example of EJB." New topic
Author

Head First EJB - Problem Running Client of 1st example of EJB.

Munish Gulati
Ranch Hand

Joined: Aug 06, 2003
Posts: 37
Hello everybody
I am trying to run my first bean example which is given in chapter 1 of HEAD FIRST EJB.
All goes Well..upto the client comilation.But i am not able to run the client.It throws some exception which i am incorporating below.
===============================================================
E:\projects\advice>java -cp %classpath%;.;e:\projects\advice\AdviceAppClient.jar AdviceClient
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(Unknown Source)
at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemExc
eption(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(GenericPOACli
entSC.java:136)
at com.sun.corba.ee.internal.corba.ClientDelegate.is_a(ClientDelegate.ja
va:833)
at org.omg.CORBA.portable.ObjectImpl._is_a(Unknown Source)
at org.omg.CosNaming.NamingContextHelper.narrow(Unknown Source)
at com.sun.jndi.cosnaming.CNCtx.callResolve(Unknown Source)
at com.sun.jndi.cosnaming.CNCtx.lookup(Unknown Source)
at com.sun.jndi.cosnaming.CNCtx.lookup(Unknown Source)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.sun.enterprise.naming.factory.IIOPObjectFactory.getObjectInstance
(IIOPObjectFactory.java:42)
at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:158
)
at javax.naming.InitialContext.lookup(Unknown Source)
at AdviceClient.go(AdviceClient.java:15)
at AdviceClient.main(AdviceClient.java:10)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:172
)
at javax.naming.InitialContext.lookup(Unknown Source)
at AdviceClient.go(AdviceClient.java:15)
at AdviceClient.main(AdviceClient.java:10)
===============================================================
I am using: JDK1.3,J2SDKEE1.3 on Win2k
Thanks


Munish Gulati<br />SCJP 1.4<br />Albert Einstein: There are only two ways to live your life. One is as though nothing is a miracle. The other is as though everything is a miracle.
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Take a look at this earlier thread. The first two or three posts may help.


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
R.x Lan
Ranch Hand

Joined: Dec 27, 2003
Posts: 83
My shortcut solution is that you might copy the source codes from HFEJB website. The author had modified the source codes.


(SCJP SCWCD SCBCD SCDJWS)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Head First EJB - Problem Running Client of 1st example of EJB.
 
Similar Threads
help on a ejb client problem
AdviceClient Runtime Error
Error running AdviceClient
Head First EJB - JNDI Error
how to run the AdviceClient