I've seen this before... caused by a bad jar file generated by my script;
try listing the contents of the first jar, they may not be what you expect...
mine were showing up with an 'extra' package, such that my class "foo.bar"
was in the jar file as "builddir.foo.bar". It seemed to be related to what
directory the jar cmd was exec'd from. If I issued it directly OK, but if it
was called from a script things went haywire.... -=Chris
>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
>
>
>
<*> cabbey at rconnect dot com http://homepage.rconnect.com/cabbey/ <*>
Get it up, keep it up... LINUX: Viagra for the PC. ;) PGP Info: pgp.html
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12 http://www.geekcode.com
GCS$/IT/PA$ d(-) s++:+ a-- C+++$ UL++++ UA++$ P++ L++ E- W++ N+ o? K? !P
w---(+)$ O- M-- V-- Y+ PGP+ t--- 5++ X+ R tv b+ DI+++ D G e++ h(+) r@ y?
------END GEEK CODE BLOCK------