I'm wondering if I'm the only one who has run into a weird
classpath problem with rmi code and jar files. I have my
project in a state where I am 1 error away from uploading
it, but I'm having a problem starting the server from the
jar file.
When starting the server using the .class files directly,
everything works great. If I attempt to start the server
after jaring everything up I get this stack trace:
<author>
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: suncertify.server.DataRemoteImpl_Stub
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: suncertify.server.DataRemoteImpl_Stub
java.lang.ClassNotFoundException: suncertify.server.DataRemoteImpl_Stub
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:249)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:224)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:358)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:165)
at suncertify.server.FBNServer.main(Unknown Source)
</author> I have no problems running the client from this jar, and the
class file is definately in there - here's the jar tf for it:
<author>
169>jar tf fbn.jar
META-INF/
META-INF/MANIFEST.MF
suncertify/
suncertify/client/
suncertify/client/BookFrame$BookingWatcher.class
suncertify/client/BookFrame$BookListener.class
suncertify/client/BookFrame.class
suncertify/client/FlyByNight.class
suncertify/client/PrimaryFrame$PrimaryListener.class
suncertify/client/PrimaryFrame.class
suncertify/client/ReservationFrame$ReservationListener.class
suncertify/client/ReservationFrame.class
suncertify/client/ReservationTableModel.class
suncertify/client/WindowWatcher.class
suncertify/db/
suncertify/db/Data.class
suncertify/db/DatabaseException.class
suncertify/db/DataInfo.class
suncertify/db/FieldInfo.class
suncertify/server/
suncertify/server/DataFactory.class
suncertify/server/DataRemotable.class
suncertify/server/DataRemoteImpl.class
suncertify/server/DataRemoteImpl_Skel.class
suncertify/server/DataRemoteImpl_Stub.class
suncertify/server/FBNServer.class
</author> I looked all over the sun
java site to see if I'm missing
a step when I jar rmic generated files, but I didn't see
anything. Before resorting to voodoo spells, I wasn wondering
if anyone had any insight on this issue.
Thanks in advance for any assistance!
B.