cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix.1973" <felix.merca...@omnipaygroup.com>
Subject Re: Why Apache CXF not being used in WebLogic 12c ?
Date Tue, 30 Sep 2014 12:18:54 GMT
Thanks Dan a lot for all your support !

I did what you said and it is quite promising. The deployment did not fail
and did not write any error or warning after I removed the two
cxf-ws-discovery jars.

But my problem is still there. In execution, org.apache.cxf classes are used
in Intellij but weblogic.wsee.jaxws are used in WebLogic 12c.

What else can it be ? here I show you the logs after deploying in weblogic
12c (as I said after removing the discovery jars, no errors and a lot of
references to cxf so seems ok):

Sep 30, 2014 1:08:21 PM
org.springframework.context.support.AbstractApplicationContext
prepareRefresh
INFO: Refreshing Root WebApplicationContext: startup date [Tue Sep 30
13:08:21 BST 2014]; root of context hierarchy
Sep 30, 2014 1:08:21 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf.xml]
Sep 30, 2014 1:08:21 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from URL
[file:/weblogic/12c/user_projects/domains/devDom12c/servers/fmercader/tmp/_WL_user/testCXF_war_exploded/yuq6ef/war/WEB-INF/cxf-servlet.xml]
Sep 30, 2014 1:08:21 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf.xml]
Sep 30, 2014 1:08:21 PM
org.springframework.beans.factory.support.DefaultListableBeanFactory
registerBeanDefinition
INFO: Overriding bean definition for bean 'cxf': replacing [Generic bean:
class [org.apache.cxf.bus.spring.SpringBus]; scope=; abstract=false;
lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true;
primary=false; factoryBeanName=null; factoryMethodName=null;
initMethodName=null; destroyMethodName=shutdown; defined in class path
resource [META-INF/cxf/cxf.xml]] with [Generic bean: class
[org.apache.cxf.bus.spring.SpringBus]; scope=; abstract=false;
lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true;
primary=false; factoryBeanName=null; factoryMethodName=null;
initMethodName=null; destroyMethodName=shutdown; defined in class path
resource [META-INF/cxf/cxf.xml]]
Sep 30, 2014 1:08:21 PM
org.springframework.beans.factory.support.DefaultListableBeanFactory
registerBeanDefinition
INFO: Overriding bean definition for bean
'org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor': replacing
[Generic bean: class
[org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor]; scope=;
abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0;
autowireCandidate=true; primary=false; factoryBeanName=null;
factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined
in class path resource [META-INF/cxf/cxf.xml]] with [Generic bean: class
[org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor]; scope=;
abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0;
autowireCandidate=true; primary=false; factoryBeanName=null;
factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined
in class path resource [META-INF/cxf/cxf.xml]]
Sep 30, 2014 1:08:21 PM
org.springframework.beans.factory.support.DefaultListableBeanFactory
registerBeanDefinition
INFO: Overriding bean definition for bean
'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor': replacing [Generic
bean: class [org.apache.cxf.bus.spring.Jsr250BeanPostProcessor]; scope=;
abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0;
autowireCandidate=true; primary=false; factoryBeanName=null;
factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined
in class path resource [META-INF/cxf/cxf.xml]] with [Generic bean: class
[org.apache.cxf.bus.spring.Jsr250BeanPostProcessor]; scope=; abstract=false;
lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true;
primary=false; factoryBeanName=null; factoryMethodName=null;
initMethodName=null; destroyMethodName=null; defined in class path resource
[META-INF/cxf/cxf.xml]]
Sep 30, 2014 1:08:21 PM
org.springframework.beans.factory.support.DefaultListableBeanFactory
registerBeanDefinition
INFO: Overriding bean definition for bean
'org.apache.cxf.bus.spring.BusExtensionPostProcessor': replacing [Generic
bean: class [org.apache.cxf.bus.spring.BusExtensionPostProcessor]; scope=;
abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0;
autowireCandidate=true; primary=false; factoryBeanName=null;
factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined
in class path resource [META-INF/cxf/cxf.xml]] with [Generic bean: class
[org.apache.cxf.bus.spring.BusExtensionPostProcessor]; scope=;
abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0;
autowireCandidate=true; primary=false; factoryBeanName=null;
factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined
in class path resource [META-INF/cxf/cxf.xml]]
Sep 30, 2014 1:08:21 PM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf-servlet.xml]
Sep 30, 2014 1:08:22 PM
org.springframework.beans.factory.support.DefaultListableBeanFactory
preInstantiateSingletons
INFO: Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@22ecbdbe:
defining beans
[cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,helloWorld];
root of factory hierarchy
Sep 30, 2014 1:08:22 PM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass
INFO: Creating Service {http://example/}HelloWorldImplService from class
example.HelloWorld
Sep 30, 2014 1:08:22 PM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be /HelloWorld



First lines of the stack in Intellij (org.apache.cxf as expected):

java.lang.Exception: Stack trace
	at java.lang.Thread.dumpStack(Thread.java:1365)
	at example.HelloWorldImpl.sayHelloWorldFrom(HelloWorldImpl.java:18)
	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.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:188)
	at
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:104)
	at
org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.invoke(AbstractJAXWSMethodInvoker.java:237)
	at
org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:69)
	at
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75)
	at
org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)


But here all the stack in WebLogic 12c (as usual, not cxf):

java.lang.Throwable
        at java.lang.Thread.dumpStack(Thread.java:464)
        at example.HelloWorldImpl.sayHelloWorldFrom(HelloWorldImpl.java:18)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
        at java.lang.reflect.Method.invoke(Method.java:618)
        at
weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:117)
        at
weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:91)
        at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:149)
        at
com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:88)
        at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:1136)
        at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:1050)
        at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:1019)
        at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:877)
        at
com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:419)
        at
com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:868)
        at
com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:422)
        at
com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:169)
        at
weblogic.wsee.jaxws.WLSServletAdapter.handle(WLSServletAdapter.java:199)
        at
weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:640)
        at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
        at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
        at
weblogic.wsee.util.ServerSecurityHelper.authenticatedInvoke(ServerSecurityHelper.java:108)
        at
weblogic.wsee.jaxws.HttpServletAdapter$3.run(HttpServletAdapter.java:284)
        at
weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:293)
        at weblogic.wsee.jaxws.JAXWSServlet.doRequest(JAXWSServlet.java:128)
        at
weblogic.servlet.http.AbstractAsyncServlet.service(AbstractAsyncServlet.java:99)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
        at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
        at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
        at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
        at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
        at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:243)
        at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3432)
        at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402)
        at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at
weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
        at
weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)
        at
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)
        at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
        at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)
        at
weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)




--
View this message in context: http://cxf.547215.n5.nabble.com/Why-Apache-CXF-not-being-used-in-WebLogic-12c-tp5749219p5749351.html
Sent from the cxf-dev mailing list archive at Nabble.com.

Mime
View raw message