You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Lynn Durholz <LD...@idtus.com> on 2013/11/25 18:09:22 UTC
Problems Running Dosgi Multi-bundle in a RCP application
Hi,
I have been trying to get the Dosgi multi-bundle plugins to work in eclipse for a while and I keep running into errors. I am able send and return soap messages when using a stand-alone test application running inside eclipse; when I try to call this standalone from a working skeleton RCP application, I encounter run-time errors.
I initially imported the Dosgi multi-bundle by going to Import -> Plug-ins and Fragments. There were a number of Missing Constraint validation errors after the import. These missing constraints were caused by an inability to resolve versions for org.slf4j, javax.ws.rs, javax.ws.rs.core, and javax.ws.rs.ext. I eventually figured out what was causing the problem; eclipse (3.8) ommitted exports from packages when there were multiple versions of the same package in the manifest file. This problem was fixed by copying the original manifest files from the jars and replacing the ones generated by eclipse.
There are still 2 missing constraint errors present after these changes:
stax2-api – Missing Constraint: Import-Package: javax.xml.namespace; version="0.0.0"
Woodstox-core-asl - Missing Constraint: Import-Package: javax.xml.namespace; version="0.0.0"
Prior to replacing all of the manifest files, the run-time error was "Could not initialize class org.apache.cxf.staxutils.StaxUtils", but now I am seeing the error I have appended below.
Do you know what might be causing these problems?
Thank you for your help,
Lynn
Current error:
eclipse.buildId=unknown
java.version=1.7.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments: -application com.runCXF.application
Command-line arguments: -application com.runCXF.application -data /home/atrt/workspace/cxf_issue_6/../runtime-com.runCXF.application -dev file:/home/atrt/workspace/cxf_issue_6/.metadata/.plugins/org.eclipse.pde.core/com.runCXF.application/dev.properties -os linux -ws gtk -arch x86 -consolelog
!ENTRY org.eclipse.osgi 4 0 2013-11-23 05:29:09.030
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: org/apache/cxf/jaxws/endpoint/dynamic/JaxWsDynamicClientFactory
at com.testingcxf.TestingCXF.runCXF(TestingCXF.java:41)
at com.runcxf.ApplicationWorkbenchWindowAdvisor.preWindowOpen(ApplicationWorkbenchWindowAdvisor.java:28)
at org.eclipse.ui.internal.WorkbenchWindow.fireWindowOpening(WorkbenchWindow.java:1328)
at org.eclipse.ui.internal.WorkbenchWindow.<init>(WorkbenchWindow.java:413)
at org.eclipse.ui.internal.tweaklets.Workbench3xImplementation.createWorkbenchWindow(Workbench3xImplementation.java:31)
at org.eclipse.ui.internal.Workbench.newWorkbenchWindow(Workbench.java:1925)
at org.eclipse.ui.internal.Workbench.access$14(Workbench.java:1923)
at org.eclipse.ui.internal.Workbench$21.runWithException(Workbench.java:1207)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3537)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3189)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:1600)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4299)
at org.eclipse.ui.internal.StartupThreading.runWithoutExceptions(StartupThreading.java:94)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1595)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2628)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.runcxf.Application.start(Application.java:20)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Caused by: java.lang.ClassNotFoundException: org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:455)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 41 more