You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Zavizionov <al...@gmail.com> on 2008/09/23 11:46:36 UTC

Re: Using CXF with an Eclipse RCP Application

I guess, you have to add cxf-rt-frontend-jaxws-*.jar
It solved the same exc for me.

HTH,
Alexey.



Kyle.Bober wrote:
> 
> I created a CXF OSGi bundle using the Eclipse Plug-in form Existing JAR
> archive wizard.
> 
> I used the latest SNAPSHOT CXF JAR: cxf-2.1-incubator-SNAPSHOT.jar
> I then added the org.apache.cxf package to the import-packages of my
> manifest.mf
> 
> When I try to call my web services from my RCP application I receive the
> following error:
> 
> !ENTRY org.eclipse.osgi 4 0 2008-02-08 16:53:50.999
> !MESSAGE Application error
> !STACK 1
> javax.xml.ws.WebServiceException: Provider com.sun.xml.ws.spi.ProviderImpl
> not found
> 	at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:38)
> 	at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:133)
> 	at javax.xml.ws.spi.Provider.provider(Provider.java:83)
> 	at javax.xml.ws.Service.<init>(Service.java:56)
> 	at javax.xml.ws.Service.create(Service.java:691)
> 	at cxf_client_test.Application.cxf(Application.java:22)
> 	at cxf_client_test.Application.start(Application.java:34)
> 	at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
> 	at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
> 	at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
> 	at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
> 	at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
> 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> 	at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> 	at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
> Caused by: java.lang.ClassNotFoundException:
> com.sun.xml.ws.spi.ProviderImpl
> 	at java.lang.ClassLoader.findClass(ClassLoader.java:358)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> 	at
> org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:124)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> 	at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:34)
> 	... 19 more
> 
> My understanding is that it should be calling the ProviderImpl provided by
> CXF. Has anyone had any luck calling Web Services via an Eclikpse RCP
> application??? If so any advice or help here would be much appreciated!!!
> 

-- 
View this message in context: http://www.nabble.com/Using-CXF-with-an-Eclipse-RCP-Application-tp15364789p19624412.html
Sent from the cxf-user mailing list archive at Nabble.com.