NoClassDefFoundError 3.0 RCP Application [message #259998] |
Fri, 09 July 2004 00:34  |
Eclipse User |
|
|
|
Originally posted by: matt.agtown.com
I hope someone out there may be able to help. I have developed an RCP
application for Eclipse 3.0. The application works great while in the ide
workbench using run... and debug...; I have moved the plugin and all
required
plugins to the RCP Runtime Binary downloaded from eclipse.org. I have
changed
the config.ini appropriatly for my RCP Application. However the
application no
longer works correctly. The application starts, but when it requires a
class
from xmlrpc-1.2-b1.jar it throws an exception. One of the libraries that
it
depends on cannot be found in the classpath. I have tried including this
library in many ways:
1. As a required plugin
2. As a .jar file required by the plugin.xml
Neither solution seems to work.
Here is my Manifest.mf...
Manifest-Version: 1.0
Bundle-Name: App Plug-in
Bundle-SymbolicName: com.agtown.edms.remote.app
Bundle-Version: 1.0.0
Bundle-ClassPath: app.jar,lib/xmlrpc-1.2-b1.jar
Bundle-Vendor: AGTOWN
Bundle-Localization: plugin
Eclipse-AutoStart: true
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.ui,
hsqldb.core
===============================================
Here is the information from the log....
!SESSION Jul 08, 2004 18:28:38.341
---------------------------------------------
eclipse.buildId=unknown
java.version=1.4.2_03
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
!ENTRY org.eclipse.ui 4 4 Jul 08, 2004 18:28:38.342
!MESSAGE Unhandled event loop exception
!ENTRY org.eclipse.ui 4 0 Jul 08, 2004 18:28:38.346
!MESSAGE org/apache/xmlrpc/XmlRpcException
!STACK 0
java.lang.NoClassDefFoundError: org/apache/xmlrpc/XmlRpcException
at
com.agtown.edms.remote.app.views.LoginView.loginNow(LoginVie w.java:213)
at com.agtown.edms.remote.app.views.LoginView.access$0
(LoginView.java:189)
at
com.agtown.edms.remote.app.views.LoginView$4.handleEvent(Log inView.java:157)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:954)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2595)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2298)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:254)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:141)
at
com.agtown.edms.remote.app.edmsApplication.run(edmsApplicati on.java:30)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)
==============================================
I am running Suse 9.1 Linux with SunJava 1.4.2 and Eclipse 3.0
I have also tried the application on Windows XP in the RCP Runtime Binary
for
Windows. It also does not work.
Any immediate help would be appreciated.
Thanks,
Matt
|
|
|
Re: NoClassDefFoundError 3.0 RCP Application [message #260755 is a reply to message #259998] |
Mon, 12 July 2004 11:36  |
Eclipse User |
|
|
|
Originally posted by: chaves.nospam.inf.ufsc.br.ok
When running from inside the IDE, how is the mentioned class provided?
Also, beware that when running Eclipse, manual changes to existing plugin
manifests will not be detected - running with -clean does the trick.
Rafael
Matt Furister wrote:
> I hope someone out there may be able to help. I have developed an RCP
> application for Eclipse 3.0. The application works great while in the ide
> workbench using run... and debug...; I have moved the plugin and all
> required
> plugins to the RCP Runtime Binary downloaded from eclipse.org. I have
> changed
> the config.ini appropriatly for my RCP Application. However the
> application no
> longer works correctly. The application starts, but when it requires a
> class
> from xmlrpc-1.2-b1.jar it throws an exception. One of the libraries that
> it
> depends on cannot be found in the classpath. I have tried including this
> library in many ways:
> 1. As a required plugin
> 2. As a .jar file required by the plugin.xml
> Neither solution seems to work.
> Here is my Manifest.mf...
> Manifest-Version: 1.0
> Bundle-Name: App Plug-in
> Bundle-SymbolicName: com.agtown.edms.remote.app
> Bundle-Version: 1.0.0
> Bundle-ClassPath: app.jar,lib/xmlrpc-1.2-b1.jar
> Bundle-Vendor: AGTOWN
> Bundle-Localization: plugin
> Eclipse-AutoStart: true
> Require-Bundle: org.eclipse.core.runtime,
> org.eclipse.ui,
> hsqldb.core
> ===============================================
> Here is the information from the log....
> !SESSION Jul 08, 2004 18:28:38.341
> ---------------------------------------------
> eclipse.buildId=unknown
> java.version=1.4.2_03
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
> !ENTRY org.eclipse.ui 4 4 Jul 08, 2004 18:28:38.342
> !MESSAGE Unhandled event loop exception
> !ENTRY org.eclipse.ui 4 0 Jul 08, 2004 18:28:38.346
> !MESSAGE org/apache/xmlrpc/XmlRpcException
> !STACK 0
> java.lang.NoClassDefFoundError: org/apache/xmlrpc/XmlRpcException
> at
> com.agtown.edms.remote.app.views.LoginView.loginNow(LoginVie w.java:213)
> at com.agtown.edms.remote.app.views.LoginView.access$0
> (LoginView.java:189)
> at
> com.agtown.edms.remote.app.views.LoginView$4.handleEvent(Log inView.java:157)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:954)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2595)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2298)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1377)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:254)
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:141)
> at
> com.agtown.edms.remote.app.edmsApplication.run(edmsApplicati on.java:30)
> at
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:335)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
> at org.eclipse.core.launcher.Main.run(Main.java:644)
> at org.eclipse.core.launcher.Main.main(Main.java:628)
> ==============================================
> I am running Suse 9.1 Linux with SunJava 1.4.2 and Eclipse 3.0
> I have also tried the application on Windows XP in the RCP Runtime Binary
> for
> Windows. It also does not work.
> Any immediate help would be appreciated.
> Thanks,
> Matt
|
|
|
Powered by
FUDForum. Page generated in 0.04164 seconds