Hi, 

I have a strange problem using rmi that is somehow related
to .jar files.  This is 1.1.7a on Redhat intel 5.1.

Here's what seems to happen:
- remove all .class & .jar files
- make (compiles and then produces a .jar file)
- start rmiregistry
- run the server, get this error:
  java.rmi.ServerException: Server RemoteException; nested exception is: 
        java.rmi.UnmarshalException: error unmarshalling arguments;
nested excep
  tion is: 
        java.lang.ClassNotFoundException: <name of class>
- jar -xvf the .jar file
- run the server, works this time.  So it seems that the
  CLASSPATH does not mention the .jar file?  wrong:
- jar the .class files into a jar again
- delete the .class files
- run the server, it works...running from a jar this time.

Here's an annotated screen capture of this:
40  4:43    killall java        # kill previous rmiregistry & server
41  4:43    psg java            # ps aux|grep.  yes, no java
42  4:43    rmiregistry &
43  4:43    xfilesserver.sh     # fails
44  4:44    jar -xvf XF.jar
45  4:44    rm XF.jar
46  4:44    xfilesserver.sh     # works
47  4:44    jar -cvf XF.jar *.class   # has *the same* class files as
before!
48  4:44    rm *.class
49  4:44    newh
50  4:44    xfilesserver.sh     # works
51  4:45    rm -rf META-INF/
52  4:45    xfilesserver.sh     # works

Reply via email to