Good evening:

I have been trying for a few weeks to get Jonas (2-2-4) with Tomcat
(3.2.1 - no Apache involved) on Window 98. I have created and
successfully deployed one bean which has a single method. When I run
jndinames or listbeans in JonasAdmin I can see the bean sitting there. I
also created a simple servlet to access the bean and call the one
method.

I had to make a few modifications to tomcat.bat so it would work. I
added the following params to the startup command for tomcat:
-Djava.naming.factory.initial=com.sun.jndi.rmi.registry.RegistryContextFactory
-Djava.naming.provider.url=rmi://localhost:1099
-Djava.naming.factory.url.pkgs=org.objectweb.jonas.naming

Then I had to make sure that the class files for my EJB where in the
CLASSPATH used when started Tomcat.

When I access my servlet, it returns one error message (see below). When
I access it any time thereafter, it returns a different error message
about PortableRemoteObject not being found (also see below). But
j2ee.jar, which contains that class, is in the classpath for Tomcat,
rmiregisty and EJBServer. Any ideas? Pointers?

Thanks in advance ...

Lajos

PS: Yes, I did read the "Installation et exploitation
ApacheJakartaTomcat + JONAS Juin/2000" document, but couldn't find
anything addressing my specific problem.


****** First error message ********

     Internal Servlet Error:

     java.lang.UnsatisfiedLinkError: specialLoadClass
             at
com.sun.corba.ee.internal.util.JDKClassLoader.loadClass(JDKClassLoader.java:58)

             at
com.sun.corba.ee.internal.util.JDKBridge.loadClassM(JDKBridge.java:180)
             at
com.sun.corba.ee.internal.util.JDKBridge.loadClass(JDKBridge.java:83)
             at javax.rmi.CORBA.Util.loadClass(Util.java:215)
             at
javax.rmi.CORBA.Util.createDelegateIfSpecified(Util.java:306)
             at javax.rmi.CORBA.Util.(Util.java:54)
             at
javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemoteObject.java:172)

             at
javax.rmi.PortableRemoteObject.(PortableRemoteObject.java:62)
             at TestServlet.doGet(TestServlet.java:68)
             at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
             at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
             at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)

             at org.apache.tomcat.core.Handler.service(Handler.java:286)

             at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
             at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)

             at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
             at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)

             at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
             at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
             at java.lang.Thread.run(Thread.java:479)


******* Second error message *********

Error: 500

     Internal Servlet Error:

     java.lang.NoClassDefFoundError: javax/rmi/PortableRemoteObject
             at TestServlet.doGet(TestServlet.java:67)
             at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
             at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
             at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)

             at org.apache.tomcat.core.Handler.service(Handler.java:286)

             at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
             at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)

             at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
             at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)

             at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
             at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
             at java.lang.Thread.run(Thread.java:479)


****** The relevant lines from TestServlet.java ******

 65: ClientHome home = null;
 66: try {
 67:        objref = initialContext.lookup("ClientHome");
68:        home = (ClientHome)PortableRemoteObject.narrow(objref,
ClientHome.class);
69: } catch (Exception e) {
70:     out.println( "<li>Cannot lookup ClientHome: " + e+"</li>");
71:     return ;
72: }

Note that "ClientHome" is the JNDI name for the EJB and can be seen when
I do "jndinames" in JonasAdmin.


----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to