I have recently started studying EJB using HFEJB. I have successfully deployed Advice Bean on J2eesdk1.3. I am facing Exception in Thread "main" java.lang.NoClassDefFoundError: while trying to run AdviceClient.
I have followed all the steps but still facing following exception;
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
Prateesh, Have you set the classpath with this appserv-rt.jar which is in lib folder. This could help you. I probably feel it's simply a issue with your settings and not about the code. Try this out.
Hi All, I am not able to run my first EJB. Now facing a strange kind of Exception:
java.rmi.AccessException: CORBA NO_PERMISSION 0 No; nested exception is: org.omg.CORBA.NO_PERMISSION: vmcid: 0x0 minor code: 0 completed: No at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemExceptio n(ShutdownUtilDelegate.java:87) at javax.rmi.CORBA.Util.mapSystemException(Unknown Source) at headfirst._AdviceHome_Stub.create(Unknown Source) at AdviceClient.go(AdviceClient.java:22) at AdviceClient.main(AdviceClient.java:11) Caused by: org.omg.CORBA.NO_PERMISSION: vmcid: 0x0 minor code: 0 completed: No at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou rce) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) 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 org.omg.CORBA.portable.ObjectImpl._invoke(Unknown Source) ... 3 more
I am using j2eesdk1.3.1 on WIN XP with J2sdk1.4_03.