by olale » Fri Jul 02, 2004 12:55 pm
Ok, see below. By the way, the problem with generating stubs seems to exist also with RMI plugin 1.5.5, Eclipse 3.0.0 on Linux.
.project:
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>DKExpert</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>net.genady.rmi.RMIBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.jem.beaninfo.BeanInfoNature</nature>
<nature>net.genady.rmi.RMINature</nature>
</natures>
</projectDescription>
.classpath:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path=""/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path=""/>
</classpath>
.log:
Empty..
Console output:
java.rmi.StubNotFoundException: Stub class not found: java.rmi.server.RemoteObject_Stub; nested exception is:
java.lang.ClassNotFoundException: java/rmi/server/RemoteObject_Stub
at sun.rmi.server.RemoteProxy.getStub(RemoteProxy.java:98)
at sun.rmi.server.RemoteProxy.getStub(RemoteProxy.java:55)
at sun.rmi.server.UnicastServerRef.setSkeleton(UnicastServerRef.java:179)
at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:142)
at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:129)
at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:275)
at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:178)
at java.rmi.server.UnicastRemoteObject.<init>(UnicastRemoteObject.java:75)
at java.rmi.server.UnicastRemoteObject.<init>(UnicastRemoteObject.java:61)
at Foo.<init>(Foo.java:24)
at Foo.main(Foo.java:51)
Caused by: java.lang.ClassNotFoundException: java/rmi/server/RemoteObject_Stub
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at sun.rmi.server.RemoteProxy.loadClassFromClass(RemoteProxy.java:193)
at sun.rmi.server.RemoteProxy.getStub(RemoteProxy.java:93)
... 10 more