Hi,
Have you also copied the class ..._skel.class into that directory?
And secondly the classes STUB and SKEL have to correspond on the server and client
side!
Axel Lannion/France
> -----Original Message-----
> From: Kleegrewe Christian [SMTP:[EMAIL PROTECTED]]
> Sent: vendredi 25 mai 2001 10:39
> To: 'Tomcat Developer Mailing List'
> Subject: java.rmi.UnmarshalException
>
> Hi Tomcat Developers!
>
> I have a problem using the tomcat servlet engine.
> We are developing a servlet based web application.
> My Configuration is:
>
> apache web server
> tomcat servlet engine 3.2.1
> windows nt 4.0 servicepack 6a.
> jdk 1.2.2 build _007
>
> starting up tomcat seems to work fine:
> ----------8<----------------------------------------------------------------
> Including all jars in D:\jakarta-tomcat-3.2.1\lib in your CLASSPATH.
>
> Using CLASSPATH:
> D:\jakarta-tomcat-3.2.1\classes;D:\jakarta-tomcat-3.2.1\lib\ant
> .jar;D:\jakarta-tomcat-3.2.1\lib\jasper.jar;D:\jakarta-tomcat-3.2.1\lib\jaxp
> .jar
> ;D:\jakarta-tomcat-3.2.1\lib\parser.jar;D:\jakarta-tomcat-3.2.1\lib\servlet.
> jar;
> D:\jakarta-tomcat-3.2.1\lib\webserver.jar;E:\kleegrewe_c\Project-Code\ic-tag
> -dem
> o\NegotiationEngine\web-inf\classes;c:\programme\jdk1.2.2\lib\tools.jar
>
> 2001-05-25 09:37:07 - ContextManager: Adding context Ctx( /examples )
> 2001-05-25 09:37:07 - ContextManager: Adding context Ctx( /admin )
> 2001-05-25 09:37:07 - Ctx( /ne ): Set debug to 9
> 2001-05-25 09:37:07 - ContextManager: Adding context Ctx( /ne )
> Starting tomcat. Check logs/tomcat.log for error messages
> 2001-05-25 09:37:07 - ContextManager: Adding context Ctx( )
> 2001-05-25 09:37:07 - ContextManager: Adding context Ctx( /test )
> 2001-05-25 09:37:07 - Ctx( /ne ): XmlReader - init /ne
> E:/kleegrewe_c/Project-C
> ode/ic-tag-demo/NegotiationEngine
> 2001-05-25 09:37:07 - Ctx( /ne ): Loading -2147483646 jsp
> 2001-05-25 09:37:08 - PoolTcpConnector: Starting HttpConnectionHandler on
> 8080
> 2001-05-25 09:37:08 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
> 8007
> ----------8<----------------------------------------------------------------
> ------
>
> When I start my applicaition and request a servlet for the first time I get
> the following exception
>
> ----------8<----------------------------------------------------------------
> ------java.rmi.UnmarshalException: error unmarshalling return; nested
> exception is:
> java.lang.ClassNotFoundException: negotiation.ConnectionManager_Stub
> java.lang.ClassNotFoundException: negotiation.ConnectionManager_Stub
> at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:981)
> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:232)
> at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
> at java.rmi.Naming.lookup(Naming.java:89)
>
> at
> negotiation.servlet.LoginFrameServlet.init(LoginFrameServlet.java:20)
>
> at
> org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
>
> at org.apache.tomcat.core.Handler.init(Handler.java:215)
> .....
>
> ----------8<----------------------------------------------------------------
> ------
>
> The Code in the class
> negotiation.servlet.LoginFrameServlet.init(LoginFrameServlet.java:20)
> is the following:
>
> 18 System.setSecurityManager(new RMISecurityManager());
> 19 try {
> 20 cm = (ConnectionRMIInterface)Naming.lookup("//" +
> Constants.SERVER_IP + ":" + Constants.RMI_PORT + "/Connection");
> 21 //cm.printTest("initialization of Actualization servlet");
> 22 }catch (Exception e){ e.printStackTrace(); }
>
> The value of Constants.SERVER_IP is the ip adress of the computer where the
> tomcat engine and apache and my application are running.
>
> The Value of Constants.RMI_PORT is 2005. My connectionManager is listening>
> to this port.
>
> the classpath environment variable of tomcat points to the directory where
> the class that can not befound is situated in. The class
> ConnaectionManager_Stub.class also exists in the proposed directory. So
> where is the error?
>
> Any help we be appreciated.
>
> Thanks Christian Kleegrewe
>
>
> -------------8<----------------------------------------------------
>
> Christian Kleegrewe
> Siemens AG: ZT IK 6
> Fon: +49 89 636 42722
> Fax: +49 89 636 41423
> em@il: [EMAIL PROTECTED]
>
> -------------------------------------------------------------------