Error creating bean with name 'EquipmentSoapJms': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceE > xception: org.apache.cxf.service.factory.ServiceConstructionExceptionError creating bean with name 'EquipmentSoapJms': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceE > xception: org.apache.cxf.service.factory.ServiceConstructionException

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Error creating bean with name 'EquipmentSoapJms': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceE > xception: org.apache.cxf.service.factory.ServiceConstructionExceptionError creating bean with name 'EquipmentSoapJms': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceE > xception: org.apache.cxf.service.factory.ServiceConstructionException

prempalod
Hi All,

Getting the below exception after upgrading to cxf 3.1.11.jar.

[main].BaseApplication.main:591 {04/08/2017 20:04:18.766} >> ERROR
> EXCEPTION {
>   Cause   : javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException
>   Message : Error creating bean with name 'EquipmentSoapJms': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceE
> xception: org.apache.cxf.service.factory.ServiceConstructionException
>   Class   : org.springframework.beans.factory.BeanCreationException
>   Stack   : {
>     [0] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory(initializeBean:1572)
>     [1] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory(doCreateBean:539)
>     [2] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory(createBean:476)
>     [3] at org.springframework.beans.factory.support.AbstractBeanFactory$1(getObject:303)
>     [4] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry(getSingleton:230)
>     [5] at org.springframework.beans.factory.support.AbstractBeanFactory(doGetBean:299)
>     [6] at org.springframework.beans.factory.support.AbstractBeanFactory(getBean:194)
>     [7] at org.springframework.beans.factory.support.DefaultListableBeanFactory(preInstantiateSingletons:755)
>     [8] at org.springframework.context.support.AbstractApplicationContext(finishBeanFactoryInitialization:762)
>     [9] at org.springframework.context.support.AbstractApplicationContext(refresh:480)
>     [10] at org.apache.cxf.bus.spring.BusApplicationContext$1(run:107)
>     [11] at org.apache.cxf.bus.spring.BusApplicationContext$1(run:105)
>     [12] at java.security.AccessController(doPrivileged)
>     [13] at org.apache.cxf.bus.spring.BusApplicationContext(<init>:105)
>     [14] at org.apache.cxf.bus.spring.BusApplicationContext(<init>:96)
>     [15] at org.apache.cxf.bus.spring.BusApplicationContext(<init>:78)
>     [16] at com.Agent(init:115)
>     [17] at com.Main(initApplication:154)
>     [18] at com.application.BaseApplication(newApplication:176)
>     [19] at com.application.BaseApplication(main:567)
>   }
> }
>

before the exception I have the following messages,

[main].ReflectionServiceFactoryBean.buildServiceFromClass:437 {04/08/2017 20:04:17.111} >> INFO
> Creating Service {http://}EquipmentJms from class v1_0.EquipmentRPC


[main].DefaultSingletonBeanRegistry.destroyBean:568 {04/08/2017 20:04:18.589} >> DEBUG
> Retrieved dependent beans for bean 'org.apache.cxf.transport.jms.JMSConfigFeature#307941a0': [EquipmentSoapJms]


[main].AbstractApplicationContext.refresh:488 {04/08/2017 20:04:18.742} >> WARN
> Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean
>  with name 'EquipmentSoapJms': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException: org.apache.cxf.servic
> e.factory.ServiceConstructionException

[main].DisposableBeanAdapter.destroy:246 {04/08/2017 20:04:18.744} >> DEBUG
> Invoking destroy() on bean with name 'jmsConnectionFactory'

[main].DefaultSingletonBeanRegistry.destroyBean:568 {04/08/2017 20:04:18.744} >> DEBUG
> Retrieved dependent beans for bean 'org.apache.activemq.ActiveMQConnectionFactory#b695707': [jmsConnectionFactory]

[main].DefaultSingletonBeanRegistry.destroyBean:568 {04/08/2017 20:04:18.746} >> DEBUG
> Retrieved dependent beans for bean '(inner bean)#246a3dc1': [org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory]

[main].DefaultSingletonBeanRegistry.destroyBean:568 {04/08/2017 20:04:18.746} >> DEBUG
> Retrieved dependent beans for bean '(inner bean)#4bb1515e': [httpj:engine#51184fda]

[main].DisposableBeanAdapter.invokeCustomDestroyMethod:324 {04/08/2017 20:04:18.763} >> DEBUG
> Invoking destroy method 'shutdown' on bean with name 'cxf'

[main].JettyHTTPServerEngineFactory.destroyForPort:321 {04/08/2017 20:04:18.765} >> DEBUG
> Stopping Jetty HTTP Server Engine on port 0.


Previously it was working fine with cxf 2.2.6.jar

[main].ReflectionServiceFactoryBean.buildServiceFromClass:437 {04/08/2017 13:43:41.112} >> INFO
> Creating Service {http://}EquipmentJms from class org.tmforum.mtop.mri.wsdl.eir.v1_0.EquipmentRPC

[main].JAXBDataBinding.initialize:346 {04/08/2017 13:43:41.642} >> DEBUG
> Created JAXBContext "jar:file:LIB/jaxb-impl 2.1.12.jar!/com/sun/xml/bind/v2/runtime/JAXBContextImpl.class Build-Id: 2.1.12
> Classes known to this context:

then the service is created successfully..


Please let me know if anyone has some idea regarding this issue


Thanks in advance,
Rahul
Loading...