Hi, I'm working with
J2EE 1.5 about 2 days I? following Java Bible. But I have a problem.
I have 3 files in order to study rmi.
FlightServer
StartFlightServer
FlightServerImpl
FlightClient
Every file is compiled with javac. the FlightServerImpl_stub is also ready.
But when I try to java StartFlightServer I got a Horrible error.
java pack.StartFlightServer
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: pack.FlightServerImpl_Stub
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:385)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:595)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
I also try changing the CLASSPATH but nothing works. I supose that it si not finding the _stub class. But i do not what it is going on.
Please I need some help I'm using White Box Linux 3. JDK 1.5.
I compiled the java files with:
javac -cp /mnt/Flaka/Java.Bible/Chapter4/Linux_try/ StartFlightServer.java
Please I really need some help.
Sorry but I'm newbie.
PD: Sorry about my English but my native language is the Spanish. =)
nait.