| | |
Error in EJB client program (javax.naming.NoInitialContextException)
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
Hi folks ,
I'm new to j2ee programming and using Netbeans 5.5 , i created a session bean program and deployed successfully in JOnAS application server but i'm not able to run the client program which invokes session bean (EJB module ).
when i run client program i'm getting the following error .
but the same program runnig perfectly when i deploy in Java System Application Server(8.2(JSAS))
I included j2ee.jar and appserv-rt jar in classpath of client program for JSAS i don't know what are the jar files (which does the same function as j2ee.ar,appserv-rt.jar ) which is to be included for JOnAS .
i'm struggling with this for the past two weeks . please tell me the solution .
Thanks in advance
I'm new to j2ee programming and using Netbeans 5.5 , i created a session bean program and deployed successfully in JOnAS application server but i'm not able to run the client program which invokes session bean (EJB module ).
when i run client program i'm getting the following error .
Java Syntax (Toggle Plain Text)
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 at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247) at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284) at javax.naming.InitialContext.lookup(InitialContext.java:351) at SimpleSessionClient.Main.main(Main.java:33) BUILD SUCCESSFUL (total time: 21 seconds)
but the same program runnig perfectly when i deploy in Java System Application Server(8.2(JSAS))
I included j2ee.jar and appserv-rt jar in classpath of client program for JSAS i don't know what are the jar files (which does the same function as j2ee.ar,appserv-rt.jar ) which is to be included for JOnAS .
i'm struggling with this for the past two weeks . please tell me the solution .
Thanks in advance
You'll need to find those application specific client files AND the application specific environment setting you need for that server.
I can't help you with that, but the server documentation should be a logical first step.
Then there's the internet, especially the vendor suppost site (most of which have forums and/or wikis of some sort).
I can't help you with that, but the server documentation should be a logical first step.
Then there's the internet, especially the vendor suppost site (most of which have forums and/or wikis of some sort).
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
![]() |
Similar Threads
- Winsock Multi-Client Servers (C++)
- SSL LADP error with Java (Java)
- Wierd error messages with calculator program (C++)
- Cannot find server or DNS error (Viruses, Spyware and other Nasties)
- Error message when I run my program in C++ (C++)
- fr.dyade.aaa.jndi.Naming ContextFactory (Java)
- Error message on start up - bridge.dll file missing (Viruses, Spyware and other Nasties)
- Bridge.dll error (Viruses, Spyware and other Nasties)
Other Threads in the Java Forum
- Previous Thread: Cast an object arriving at a socket
- Next Thread: java
Views: 4677 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for Java
-xlint android api apple applet application arguments array arrays automation binary block bluetooth chat class classes client code compile component database developmenthelp draw eclipse encode error event exception file fractal freeze game gameprogramming givemetehcodez graphics gui helpwithhomework html ide image input integer iphone j2me j2seprojects java javac javaprojects jmf jni jpanel julia lego linux list loop loops mac map method methods mobile netbeans newbie notdisplaying number object online oracle print problem program programming project recursion scanner screen server set singleton size sms socket sort sql string swing system template test textfields threads time title transfer tree tutorial-sample update windows working






