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 08:45:17 GMT
Daniel, I am totally desperated.

As usual, when I execute server plus client in Intellij it works fine and
used org.apache.cxf classes

But when deploying correctly in WebLogic 12c and I test there, no cxf
classes, only weblogic.wsee.jaxws classes as I already listed.

My cxf-servlet.xml had no endpoint inside and you suggested that something
was missing there. Well, not for intellij, but well, I added these lines
there:

    <import resource="classpath:META-INF/cxf/cxf.xml" />
    <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
    <jaxws:endpoint id="helloWorld"
                    implementor="example.HelloWorldImpl"
                    address="/HelloWorld"/>


But adding that, I have error when deploying in WebLogic 12c.  A lot of cxf
messages appear which seems promising, but then there is a timeout exception
like if it is trying to find something that cannot find. Below the logs with
the errors... Any idea please ???

Sep 30, 2014 9:33:58 AM
org.springframework.context.support.AbstractApplicationContext doClose
INFO: Closing Root WebApplicationContext: startup date [Tue Sep 30 09:25:40
BST 2014]; root of context hierarchy
Sep 30, 2014 9:33:58 AM
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
destroySingletons
INFO: Destroying singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@91051afe:
defining beans
[cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor];
root of factory hierarchy
Sep 30, 2014 9:34:04 AM
org.springframework.context.support.AbstractApplicationContext
prepareRefresh
INFO: Refreshing Root WebApplicationContext: startup date [Tue Sep 30
09:34:04 BST 2014]; root of context hierarchy
Sep 30, 2014 9:34:04 AM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf.xml]
Sep 30, 2014 9:34:04 AM
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 9:34:04 AM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf.xml]
Sep 30, 2014 9:34:04 AM
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 9:34:04 AM
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 9:34:04 AM
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 9:34:04 AM
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 9:34:04 AM
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 9:34:05 AM
org.springframework.beans.factory.support.DefaultListableBeanFactory
preInstantiateSingletons
INFO: Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@5513f660:
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 9:34:06 AM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass
INFO: Creating Service {http://example/}HelloWorldImplService from class
example.HelloWorld
Sep 30, 2014 9:34:07 AM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be /HelloWorld
Sep 30, 2014 9:35:11 AM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean isEmptywsdl
WARNING: Failed to parse WSDL
javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Error
importing schemas: java.net.SocketTimeoutException: connect timed out
        at
oracle.j2ee.ws.wsdl.extensions.schema.SchemaSerializer.unmarshall(SchemaSerializer.java:77)
        at
oracle.j2ee.ws.wsdl.extensions.ParseUtils.createExtensibilityElement(ParseUtils.java:112)
        at
oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseTypes(WSDLReaderImpl.java:1597)
        at
oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseDefinition(WSDLReaderImpl.java:829)
        at
oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:746)
        at
oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:354)
        at
org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:261)
        at
org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:206)
        at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.isEmptywsdl(ReflectionServiceFactoryBean.java:2607)
        at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.isFromWsdl(ReflectionServiceFactoryBean.java:543)
        at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:547)
        at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:265)
        at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:215)
        at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
        at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
        at
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
        at
org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:456)
        at
org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:334)
        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:251)
        at
org.apache.cxf.ws.discovery.internal.WSDiscoveryServiceImpl.startup(WSDiscoveryServiceImpl.java:248)
        at
org.apache.cxf.ws.discovery.internal.WSDiscoveryServiceImpl.serverStarted(WSDiscoveryServiceImpl.java:154)
        at
org.apache.cxf.ws.discovery.listeners.WSDiscoveryServerListener.startServer(WSDiscoveryServerListener.java:73)
        at
org.apache.cxf.bus.managers.ServerLifeCycleManagerImpl.startServer(ServerLifeCycleManagerImpl.java:61)
        at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:136)
        at
org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:362)
        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:251)
        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:539)
        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
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1546)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1487)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1419)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
        at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
        at
org.apache.cxf.transport.servlet.CXFServlet.createSpringContext(CXFServlet.java:151)
        at
org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:74)
        at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:76)
        at
weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:337)
        at
weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:288)
        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.StubSecurityHelper.initServletInstance(StubSecurityHelper.java:98)
        at
weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:86)
        at
weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:71)
        at
weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:57)
        at
weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:31)
        at
weblogic.servlet.internal.ServletStubImpl.initStubLifecycleHelper(ServletStubImpl.java:660)
        at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:600)
        at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1979)
        at
weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1956)
        at
weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1846)
        at
weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2876)
        at
weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1661)
        at
weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:823)
        at
weblogic.application.internal.ExtensibleModuleWrapper$StartStateChange.next(ExtensibleModuleWrapper.java:360)
        at
weblogic.application.internal.ExtensibleModuleWrapper$StartStateChange.next(ExtensibleModuleWrapper.java:356)
        at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
        at
weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:138)
        at
weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
        at
weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:216)
        at
weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:211)
        at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
        at
weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:73)
        at
weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:24)
        at
weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:729)
        at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
        at
weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:258)
        at
weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:48)
        at
weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
        at
weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
        at
weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:587)
        at
weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
        at
weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
        at
weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:339)
        at
weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:846)
        at
weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1275)
        at
weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:442)
        at
weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:176)
        at
weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
        at
weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
        at
weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
        at
weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:548)
        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-tp5749219p5749347.html
Sent from the cxf-dev mailing list archive at Nabble.com.

Mime
View raw message