Author |
Message
|
suneelsh |
Posted: Fri Apr 19, 2002 5:04 am Post subject: |
|
|
 Acolyte
Joined: 13 Apr 2002 Posts: 69 Location: Pune,India
|
Dear all
I have a EJB application client that runs fine in cmd prompt. Now i want to run this client in a java node so i put the Remote,Home,EJB,HomeStub,RemoteStub classes along with the plugin class in one jar say JavaEJBNode.jar . Now when i try deploy it, it says :-
cannot find the classes. How can this be when i have included them all in the jar?? Any suggestions?
|
|
Back to top |
|
 |
kolban |
Posted: Fri Apr 19, 2002 5:51 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
|
Check that the JAR contains the the classes at the right package levels. I am also assuming that you put the jar in the plugins directory? |
|
Back to top |
|
 |
suneelsh |
Posted: Fri Apr 19, 2002 9:40 pm Post subject: |
|
|
 Acolyte
Joined: 13 Apr 2002 Posts: 69 Location: Pune,India
|
of course..the jar files include all the file. The files i have are
1._Converter_Stub.class
2._Converter_Home.class
3.Converter.class
4.ConverterEJB.class
5.ConverterHome.class
6.JavaEJBNode.class
all these are put into JavaEJBNode.jar. But still i get the stupid error cannot find
-> Converter.class........._Converter_Stub.class
|
|
Back to top |
|
 |
suneelsh |
Posted: Sun Apr 21, 2002 12:50 am Post subject: |
|
|
 Acolyte
Joined: 13 Apr 2002 Posts: 69 Location: Pune,India
|
Now that i have solved the class problem...i get a new error that
SerialInitContextFactory.class cannot be found. This file is present in the j2ee.jar in thelib dir. Now i extraced this file and put it to the node file with the package path and also without the package path. But still it nt working..
[ This Message was edited by: suneelsh on 2002-04-21 01:50 ] |
|
Back to top |
|
 |
suneelsh |
Posted: Sat Apr 27, 2002 4:43 am Post subject: |
|
|
 Acolyte
Joined: 13 Apr 2002 Posts: 69 Location: Pune,India
|
I have still not been able to solve this EJB problem. I have a client EJB in a java plugin node that should call the server. I get the following error
javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.enterprise.naming.SerialInitContextFactory. Root exception is java.lang.ClassNotFoundException: com/sun/enterprise/naming/SerialInitContextFactory
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:212)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:46)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:656)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:199)
at JavaEJBNode.evaluate(JavaEJBNode.java:51)
The program works fine in dos prompt but wmqi gives the above error.
[ This Message was edited by: suneelsh on 2002-04-27 05:43 ] |
|
Back to top |
|
 |
|