Hi,

I have an application where it uses CXF 2.2.6 jars, Now I am upgrading cxf
jars from 2.2.6 to 3.1.11 where I am getting the below exception

Error creating bean with name 'EquipmentInventoryRetrievalSoapJms'
(EndpointName): Invocation of init method failed; nested exception is
javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException

My new files are as follows

cxf.xml :

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration";
xmlns:amq="http://activemq.apache.org/schema/core";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:foo="http://cxf.apache.org/configuration/foo";
xmlns:ct="http://cxf.apache.org/configuration/types";
        xmlns:jms="http://cxf.apache.org/transports/jms";
xmlns:jaxws="http://cxf.apache.org/jaxws";
xmlns:p="http://www.springframework.org/schema/p";
xmlns:sec="http://cxf.apache.org/configuration/security";
        xsi:schemaLocation=" http://www.springframework.org/schema/beans 
                                                        
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
                                        
http://cxf.apache.org/configuration/security                  
                                        
http://cxf.apache.org/schemas/configuration/security.xsd
                        
http://cxf.apache.org/transports/http-jetty/configuration
                                        
http://cxf.apache.org/schemas/configuration/http-jetty.xsd                      
                                
                                                        
http://cxf.apache.org/jaxws 
                                                        
http://cxf.apache.org/schemas/jaxws.xsd 
                                                        
http://cxf.apache.org/transports/jms 
                                                        
http://cxf.apache.org/schemas/configuration/jms.xsd
                            http://activemq.apache.org/schema/core 
                                                        
http://activemq.apache.org/schema/core/activemq-core.xsd";>

        <import resource="file:/beans.xml" />

        
        <httpj:engine-factory bus="cxf">
                
                <httpj:engine port="0">
                        
                        <httpj:threadingParameters minThreads="15" 
maxThreads="50" />
                </httpj:engine>
        </httpj:engine-factory>

        <bean id="cxf" class="org.apache.cxf.bus.extension.ExtensionManagerBus">
                <property name="inInterceptors">
                        <list>
                                <ref bean="logInbound" />
                        </list>
                </property>
                <property name="outInterceptors">
                        <list>
                                <ref bean="logOutbound" />
                        </list>
                </property>
                <property name="outFaultInterceptors">
                        <list>
                                <ref bean="logOutbound" />
                        </list>
                </property>
        </bean> 
        
        
        <bean id="org.apache.cxf.bus.spring.SpringBus"
class="org.apache.cxf.bus.spring.SpringBus" />  
        <bean id="org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor"
class="org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor" />
        <bean id="org.apache.cxf.bus.spring.Jsr250BeanPostProcessor"
class="org.apache.cxf.bus.spring.Jsr250BeanPostProcessor" />
        <bean id="org.apache.cxf.bus.spring.BusExtensionPostProcessor"
class="org.apache.cxf.bus.spring.BusExtensionPostProcessor" />


My beans.xml file is as follows:

<beans xmlns="http://www.springframework.org/schema/beans";
           xmlns:amq="http://activemq.apache.org/schema/core";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:foo="http://cxf.apache.org/configuration/foo";
       xmlns:ct="http://cxf.apache.org/configuration/types";
           xmlns:jms="http://cxf.apache.org/transports/jms";
           xmlns:jaxws="http://cxf.apache.org/jaxws";
           xmlns:p="http://www.springframework.org/schema/p";
       xsi:schemaLocation=" http://www.springframework.org/schema/beans 
                                                        
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
                                                        
http://cxf.apache.org/jaxws 
                                                        
http://cxf.apache.org/schemas/jaxws.xsd 
                                                        
http://cxf.apache.org/transports/jms 
                                                        
http://cxf.apache.org/schemas/configuration/jms.xsd
                            http://activemq.apache.org/schema/core 
                                                        
http://activemq.apache.org/schema/core/activemq-core.xsd";>
        
        
 
     
        <bean id="EIR_EP" class="endpoints.EquipmentInventoryRetrievalImpl">
                <constructor-arg><ref bean="EIR_DELEGATE"/></constructor-arg>
        </bean>


the Endpoint-jms.xml file is:

<beans xmlns="http://www.springframework.org/schema/beans";
        xmlns:amq="http://activemq.apache.org/schema/core";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xmlns:foo="http://cxf.apache.org/configuration/foo";
xmlns:ct="http://cxf.apache.org/configuration/types";
        xmlns:jms="http://cxf.apache.org/transports/jms";
xmlns:jaxws="http://cxf.apache.org/jaxws";
        xmlns:p="http://www.springframework.org/schema/p";
        xsi:schemaLocation=" http://www.springframework.org/schema/beans 
                                                        
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
                                                        
http://cxf.apache.org/jaxws 
                                                        
http://cxf.apache.org/schemas/jaxws.xsd 
                                                        
http://cxf.apache.org/transports/jms 
                                                        
http://cxf.apache.org/schemas/configuration/jms.xsd
                            http://activemq.apache.org/schema/core 
                                                        
http://activemq.apache.org/schema/core/activemq-core.xsd";>

        <import resource="file:/beans.xml" />

        
        <bean id="placeholderConfig"
        
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
                <property name="location" value="file:common.properties" />
        </bean>

        <bean id="jmsConnectionFactory"
                
class="org.springframework.jms.connection.SingleConnectionFactory">
                <property name="targetConnectionFactory">
                        <bean 
class="org.apache.activemq.ActiveMQConnectionFactory">
                                <property name="brokerURL" 
value="failover:tcp://${jms-host}" />
                        </bean>
                </property>
        </bean>
        

        
        <jaxws:endpoint 
xmlns:eir="http://www.tmforum.org/mtop/mri/wsdl/eir/v1-0";
                id="EquipmentInventoryRetrievalSoapJms" address="jms://"
                serviceName="eir:EquipmentInventoryRetrievalJms"
endpointName="eir:EquipmentInventoryRetrievalSoapJms"
                implementor="#EIR_EP">
                <jaxws:handlers>
                        <ref bean="MTOSIHandler" />
                        <ref bean="ThreadContextHandler" />
                        <ref bean="ServerSessionHandler" />
                </jaxws:handlers>
                <jaxws:features>
                        <bean 
class="org.apache.cxf.transport.jms.JMSConfigFeature"
                                
p:jmsConfig-ref="EquipmentInventoryRetrievalQueue" />
                </jaxws:features>
        </jaxws:endpoint>


        <bean id="EquipmentInventoryRetrievalQueue"
class="org.apache.cxf.transport.jms.JMSConfiguration"
                p:connectionFactory-ref="jmsConnectionFactory"
p:targetDestination="${EquipmentInventoryRetrieval.reply}"
        />


But I am getting the error as

Error creating bean with name 'EquipmentInventoryRetrievalSoapJms'
(EndpointName): Invocation of init method failed; nested exception is
javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException

Could anyone help me with issue. i am struck here from a week...

Thanks in advance.



--
View this message in context: 
http://cxf.547215.n5.nabble.com/Error-creating-bean-with-name-RetrievalSoapJms-Invocation-of-init-method-failed-nested-exception-is-n-tp5780367.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to