[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Re: java.lang.NoClassDefFoundError and RMI

It's on the client.

"Genady" <eclipse@xxxxxxxxxx> wrote in message
news:ckhj6b$5ce$1@xxxxxxxxxxxxxx
> Is your plugin a client or a server ?
>
> Genady Beryozkin
> http://www.genady.net/rmi/
>
>
>
> James Poli wrote:
>
> >I'm getting a NoClassDefFoundError when I run a plug-in under the PDE
that
> >runs an RMI client.  It's Eclipse 3.0 productions running under Windows.
> >If I take the same code and run it under Eclipse as a java project it
works
> >fine.  After turning on some logging it appears that the culprit maybe
the
> >EclipseClassloader not find the stub correctly in jar under my plug-in
> >lib/jars directory.  Is there a way I can get the normal sun classloader
> >to run or get the Eclipse class loader to work?  I've copied the jars
> >everywhere I can think of, in the .project directory, added them to
> >the plugin.xml <runtime> tags, etc.
> >
> >Thanks in advance,
> >Jim
> >
> >
> >                 ------------- PrintStackTrace -------------
> >Oct 12, 2004 8:18:28 AM sun.rmi.server.LoaderHandler loadClass
> >FINE: main: name = "com.tymeac.base.TymeacStandardImpl_Stub", codebase =
> >"http://letour.unx.sas.com/classesJXR2/";, defaultLoader =
> >org.eclipse.core.runtime.adaptor.EclipseClassLoader@12ce574
> >Oct 12, 2004 8:18:28 AM sun.rmi.server.LoaderHandler loadClass
> >FINER: main: (thread context class loader:
> >sun.misc.Launcher$AppClassLoader@e80a59)
> >java.lang.NoClassDefFoundError: com/tymeac/common/TymeacInterface
> > at java.lang.ClassLoader.defineClass0(Native Method)
> > at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
> > at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
> > at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> > at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
> > at java.lang.Class.forName0(Native Method)
> > at java.lang.Class.forName(Class.java:219)
> > at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:430)
> > at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
> > at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:631)
> > at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
> > at
>
>sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:200)
> > at
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
> > at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
> > at
> >java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
> > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
> > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
> > at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
> > at java.rmi.Naming.lookup(Naming.java:84)
> > at com.tymeac.client.TySvrComm.doRMI(TySvrComm.java:395)
> >...
> >
> >
> >
> >