Thanks very much Daniel, I will look at these suggestions.

Regards,
Anthony

-----Original Message-----
From: Daniel Kulp [mailto:[email protected]] 
Sent: jeudi 10 mai 2012 22:28
To: [email protected]
Cc: Muller, Anthony
Subject: Re: Weblogic 10.3 - Impossible to deploy

On Thursday, May 10, 2012 10:15:57 PM Muller, Anthony wrote:
> Hello,
> 
> I'm trying to deploy a SOAP webservice into a Weblogic 10.x server and I
> encountered many problems :(
> 
> In my WAR, I added a weblogic-application.xml file in order to ask to
> weblogic to use classes coming from my webapp first.
> 
> The last exception I get is the one bellow, but I don't see how to fix it.

Two possible suggestions:

1) Prior to calling Endpoint.publish, set the Thread.contextClassLoader to a 
classloader that will be able to pick up the CXF provided META-
INF/services/javax.xml.ws.spi.Provider file from the cxf-rt-frontend-jaxws 
jar.    That should allow it to use that version.   You could likely make 
that classloader's getResources method NOT call the super version first to 
help even more.


2) Instead of calling Endpoint.pubish, use the CXF API's directly.  You 
could just do:

new org.apache.cxf.jaxws.EndpointImpl(bus, object) (or other constructors)

or similar to create the endpoint directly and bypass the jaxws provider 
lookup mechanisms.
 
Dan


> 
> Thanks for help!
> 
> 
> May 10, 2012 1:02:29 PM
> org.apache.cxf.transport.servlet.CXFNonSpringServlet loa dBusNoConfig
> INFO: Load the bus without application context
> May 10, 2012 1:02:30 PM
> org.apache.cxf.transport.servlet.AbstractCXFServlet repl
> aceDestinationFactory
> INFO: Replaced the http destination factory with servlet transport factory
> java.lang.NoClassDefFoundError: Could not initialize class
> weblogic.wsee.jaxws.s pi.WLSProvider
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> 
>         at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
> orAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
> onstructorAccessorImpl.java:27)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at java.lang.Class.newInstance0(Class.java:355)
>         at java.lang.Class.newInstance(Class.java:308)
>         at
> org.apache.geronimo.osgi.locator.ProviderLocator.getService(ProviderL
> ocator.java:234)
>         at javax.xml.ws.spi.FactoryFinder$3.run(FactoryFinder.java:176)
>         at
> javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:220) at
> javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:160) at
> javax.xml.ws.spi.Provider.provider(Provider.java:43)
>         at javax.xml.ws.Endpoint.publish(Endpoint.java:57)
>         at
> com.businessobjects.services.coresdk.wsgateway.ServerBridgeServlet.lo
> adBus(ServerBridgeServlet.java:35)
>         at
> org.apache.cxf.transport.servlet.AbstractCXFServlet.init(AbstractCXFS
> ervlet.java:84)
>         at
> com.businessobjects.http.servlet.internal.ServletRegistration.init(Se
> rvletRegistration.java:81)
>         at
> com.businessobjects.http.servlet.internal.digester.WebXmlRegistration
> Manager.loadServlets(WebXmlRegistrationManager.java:127)
>         at
> com.businessobjects.http.servlet.internal.digester.WebXmlRegistration
> Manager.registerRest(WebXmlRegistrationManager.java:209)
>         at
> com.businessobjects.http.servlet.internal.ProxyServlet.readXml(ProxyS
> ervlet.java:368)
>         at
> com.businessobjects.http.servlet.internal.ProxyServlet.registerIntern
> al(ProxyServlet.java:395)
>         at
> com.businessobjects.http.servlet.internal.ProxyServlet.register(Proxy
> Servlet.java:317)
>         at
> com.businessobjects.http.servlet.config.WebXmlConfigurator.register(W
> ebXmlConfigurator.java:60)
>         at
> com.businessobjects.webpath.WebXmlActivator.start(WebXmlActivator.jav
> a:83)
>         at
> com.businessobjects.webpath.rebean3ws.Activator.start(Activator.java: 20)
>         at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(Bund
> leContextImpl.java:782)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv
> ator(BundleContextImpl.java:773)
>         at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bund
> leContextImpl.java:754)
>         at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Bundl
> eHost.java:352)
>         at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(Abstrac
> tBundle.java:280)
>         at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(Abstrac
> tBundle.java:272)
>         at
> com.businessobjects.http.servlet.Activator.startBundle(Activator.java
> :129)
> 
>         at
> com.businessobjects.http.servlet.Activator.start(Activator.java:116) at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(Bund
> leContextImpl.java:782)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv
> ator(BundleContextImpl.java:773)
>         at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bund
> leContextImpl.java:754)
>         at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Bundl
> eHost.java:352)
>         at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(Abstra
> ctBundle.java:370)
>         at
> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Frame
> work.java:1068)
>         at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBund
> les(StartLevelManager.java:557)
>         at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(St
> artLevelManager.java:464)
>         at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStart
> Level(StartLevelManager.java:248)
>         at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEv
> ent(StartLevelManager.java:445)
>         at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventM
> anager.java:220)
>         at
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(Even
> tManager.java:330)
> java.lang.NoClassDefFoundError: Could not initialize class
> weblogic.wsee.jaxws.s pi.WLSProvider
> 
> Regards,
> Anthony
-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to