cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesús Salinas González <jsalina...@gmail.com>
Subject Re: JAXWS Client Conduit Problem
Date Wed, 22 Oct 2014 09:59:28 GMT
I think this message should be in Issues mailing list, I'm so sorry about
that. Best Regards.

2014-10-22 11:37 GMT+02:00 Jesús Salinas González <jsalinasgl@gmail.com>:

> Hi CXF Developer,
>
> I just want to set a specific timeout to my application jaxws clients, so
> i added the conduit element to my spring context:
>
> <http-conf:conduit name="*.http-conduit">
>           <http-conf:client
>                           ConnectionTimeout="300000"
>                           ReceiveTimeout="300000"/>
>     </http-conf:conduit>
>
> Everything is going well until i use any client to call services methods,
> where i get the following error:
>
> Failed to convert property value of type '$Proxy579 implementing
> javax.wsdl.extensions.ExtensibilityElement,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised'
> to required type
> 'org.apache.cxf.transports.http.configuration.HTTPClientPolicy' for
> property 'client'; nested exception is java.lang.IllegalStateException:
> Cannot convert value of type [$Proxy579 implementing
> javax.wsdl.extensions.ExtensibilityElement,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised]
> to required type
> [org.apache.cxf.transports.http.configuration.HTTPClientPolicy] for
> property 'client': no matching editors or conversion strategy found
>
>
> CXF and Spring versions are 2.4.3 and 3.0.5 respectively. I try to
> configure timeouts programmatically too, using HTTPConduit and
> HTTPClientPolicy but i get same problem.
>
> I'm using AOP interceptor for my bussiness beans. I don't know if that can
> be related to the problem. Copy down my spring context (fragment) and maven
> pom dependencies. Any help or ideas would be truly appreciated. This error
> is becoming a big headache for me!
>
>  ---------------  applicationContext.xml -------------------
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <beans xmlns="http://www.springframework.org/schema/beans"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xmlns:context="http://www.springframework.org/schema/context"
>     xmlns:jaxws="http://cxf.apache.org/jaxws"
>     xmlns:tx="http://www.springframework.org/schema/tx"
>     xmlns:cxf="http://cxf.apache.org/core"
>     xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
>     xsi:schemaLocation="http://www.springframework.org/schema/beans
>         http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
>         http://www.springframework.org/schema/aop
> http://www.springframework.org/schema/aop/spring-aop.xsd
>         http://www.springframework.org/schema/tx
> http://www.springframework.org/schema/tx/spring-tx.xsd
>         http://www.springframework.org/schema/context
>
> http://www.springframework.org/schema/context/spring-context-3.0.xsd
>          http://cxf.apache.org/jaxws
> http://cxf.apache.org/schemas/jaxws.xsd
>          http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
>          http://cxf.apache.org/transports/http/configuration
>         http://cxf.apache.org/schemas/configuration/http-conf.xsd">
>
>      <ehcache:annotation-driven cache-manager="ehCacheManager" />
>
>     <context:annotation-config />
>
>      <context:component-scan base-package="es.sant.peg.core.business" />
>
>     <bean id="businessInterceptor"
>         class="es.sant.peg.commons.utils.aoputil.BusinessInterceptor">
>         <property name="errorMessages" ref="errorMessages" />
>         <property name="perfMonitor" ref="perfMonitorBean" />
>         <property name="gedi" value="0" />
>     </bean>
>
>     <bean id="businessPointCut"
>         class="org.springframework.aop.support.RegexpMethodPointcutAdvisor"
>         scope="singleton">
>         <property name="patterns">
>             <list>
>                 <value>es.sant.peg.core.business.*</value>
>                 <value>es.sant.peg.core.services.*</value>
>             </list>
>         </property>
>         <property name="advice">
>             <ref bean="businessInterceptor" />
>         </property>
>     </bean>
>
>    <tx:annotation-driven transaction-manager="transactionManager" />
>
>     ...... (spring bussiness beans)
>
>   <!-- Webservices -->
>
>    <import resource="classpath:META-INF/cxf/cxf.xml" />
>     <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
>     <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
>
>      <http-conf:conduit name="*.http-conduit">
>           <http-conf:client
>                           ConnectionTimeout="300000"
>                           ReceiveTimeout="300000"/>
>     </http-conf:conduit>
>
>       <bean id="serviceArticulosMDM"
> class="es.sant.peg.core.business.mdm.services.ArticulosMDMService"
>         scope="singleton">
>         <property name="sortConfigService" ref="sortConfigService" />
>         <property name="publicationService" ref="publicationService" />
>         <property name="analyticalStructureDao"
> ref="QAnalyticalStructureDao" />
>         <property name="errorMessages" ref="errorMessages" />
>         <property name="docfieldValuesDao" ref="QDocfieldValuesDao" />
>     </bean>
>
>      <bean id="wsArticulosMDMaBus" scope="singleton"
>
> class="es.sant.peg.core.business.mdm.ws.impl.MsArticulosMDMaBusSOAP_HTTP_Service">
>         <property name="serviceArticulosMDM" ref="serviceArticulosMDM" />
>         <property name="msRetornoInsertClient" ref="msRetornoInsertClient"
> />
>         <property name="notificacionDatosClient"
> ref="notificacionDatosClient" />
>     </bean>
>
>     <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"
> id="loggingInInterceptor" />
>     <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"
> id="loggingOutInterceptor" />
>
>     <bean
> class="es.sant.peg.core.business.mdm.interceptor.MessageInterceptor"
> id="messageInterceptor" />
>
>     <jaxws:endpoint id="msArticulosMDMaBusService"
>         implementor="#wsArticulosMDMaBus"
> address="/msArticulosMDMaBusSOAP_HTTP_Service">
>         <jaxws:properties>
>             <entry key="publishedEndpointUrl" value="${URL_ARTICULOS}" />
>         </jaxws:properties>
>         <jaxws:inInterceptors>
>             <ref bean="messageInterceptor" />
>             <ref bean="loggingInInterceptor" />
>         </jaxws:inInterceptors>
>         <jaxws:outInterceptors>
>             <ref bean="loggingOutInterceptor" />
>         </jaxws:outInterceptors>
>     </jaxws:endpoint>
>
>     <jaxws:client id="msRetornoInsertClient"
>
> serviceClass="es.sant.peg.core.business.mdm.ws.MsRetornoInsertSOAP_HTTP_Port"
>               address="${URL_RETORNO_INSERT}"/>
>
>       <jaxws:client id="notificacionDatosClient"
>
> serviceClass="es.santillana.peg.core.business.mdm.ws.MsNotificacionDatosalMDMPortType"
>               address="${URL_NOTIFICACION}"/>
>
>
>
> -- Maven POM Dependencies ----
>
> <dependency>
>             <groupId>javax.servlet</groupId>
>             <artifactId>servlet-api</artifactId>
>             <version>2.5</version>
>             <scope>provided</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.poi</groupId>
>             <artifactId>poi-scratchpad</artifactId>
>             <version>3.5-FINAL</version>
>         </dependency>
>         <dependency>
>             <groupId>com.lowagie</groupId>
>             <artifactId>itext</artifactId>
>             <version>2.1.7</version>
>         </dependency>
>         <dependency>
>             <groupId>org.springframework</groupId>
>             <artifactId>spring-context-support</artifactId>
>             <version>3.0.5.RELEASE</version>
>         </dependency>
>         <dependency>
>             <groupId>org.codehaus.groovy</groupId>
>             <artifactId>groovy-all</artifactId>
>             <version>1.7.5</version>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.velocity</groupId>
>             <artifactId>velocity</artifactId>
>             <version>1.7</version>
>         </dependency>
>         <dependency>
>             <groupId>net.sf.jxls</groupId>
>             <artifactId>jxls-core</artifactId>
>             <version>0.9.9</version>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.poi</groupId>
>             <artifactId>poi-ooxml</artifactId>
>             <version>3.6</version>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.velocity</groupId>
>             <artifactId>velocity-tools</artifactId>
>             <version>2.0</version>
>         </dependency>
>         <dependency>
>             <groupId>net.sf.jasperreports</groupId>
>             <artifactId>jasperreports</artifactId>
>             <version>4.6.0</version>
>             <type>jar</type>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>net.sf.jasperreports</groupId>
>             <artifactId>jasperreports-fonts</artifactId>
>             <version>4.6.0</version>
>             <type>jar</type>
>         </dependency>
>         <dependency>
>             <groupId>org.artofsolving.jodconverter</groupId>
>             <artifactId>jodconverter-core</artifactId>
>             <version>3.0-beta-4</version>
>         </dependency>
>         <dependency>
>             <groupId>commons-codec</groupId>
>             <artifactId>commons-codec</artifactId>
>             <version>1.5</version>
>         </dependency>
>         <dependency>
>             <groupId>org.springframework</groupId>
>             <artifactId>spring-web</artifactId>
>             <version>3.0.5.RELEASE</version>
>             <type>jar</type>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>fr.opensagres.xdocreport</groupId>
>             <artifactId>xdocreport</artifactId>
>             <version>0.9.3</version>
>             <type>pom</type>
>         </dependency>
>         <dependency>
>             <groupId>fr.opensagres.xdocreport</groupId>
>             <artifactId>org.apache.poi.xwpf.converter</artifactId>
>             <version>0.9.2</version>
>         </dependency>
>         <dependency>
>             <groupId>org.slf4j</groupId>
>             <artifactId>slf4j-log4j12</artifactId>
>             <version>1.6.2</version>
>             <type>jar</type>
>             <scope>runtime</scope>
>         </dependency>
>         <dependency>
>             <groupId>com.googlecode.ehcache-spring-annotations</groupId>
>             <artifactId>ehcache-spring-annotations</artifactId>
>             <version>1.2.0</version>
>         </dependency>
>         <dependency>
>             <groupId>org.quartz-scheduler</groupId>
>             <artifactId>quartz</artifactId>
>             <version>1.8.6</version>
>         </dependency>
>         <dependency>
>             <groupId>commons-net</groupId>
>             <artifactId>commons-net</artifactId>
>             <version>3.0.1</version>
>         </dependency>
>         <dependency>
>             <groupId>commons-io</groupId>
>             <artifactId>commons-io</artifactId>
>             <version>1.3.1</version>
>         </dependency>
>         <dependency>
>             <groupId>javax.mail</groupId>
>             <artifactId>mail</artifactId>
>             <version>1.4</version>
>         </dependency>
>         <dependency>
>             <groupId>com.adobe.blazeds</groupId>
>             <artifactId>blazeds-core</artifactId>
>             <version>3.2.0.3978</version>
>         </dependency>
>         <dependency>
>             <groupId>junit</groupId>
>             <artifactId>junit</artifactId>
>             <version>4.5</version>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.springframework</groupId>
>             <artifactId>spring-test</artifactId>
>             <version>3.0.5.RELEASE</version>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>springframework</groupId>
>             <artifactId>spring-mock</artifactId>
>             <version>1.2.6</version>
>             <type>jar</type>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>net.lingala.zip4j</groupId>
>             <artifactId>zip4j</artifactId>
>             <version>1.2.9</version>
>         </dependency>
>         <dependency>
>             <groupId>net.sf.jxls</groupId>
>             <artifactId>jxls</artifactId>
>             <version>0.9.9</version>
>             <type>pom</type>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.poi</groupId>
>             <artifactId>poi</artifactId>
>             <version>3.6</version>
>         </dependency>
>         <dependency>
>             <groupId>org.springframework.ldap</groupId>
>             <artifactId>spring-ldap-core</artifactId>
>             <version>1.3.1.RELEASE</version>
>             <type>jar</type>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>${project.groupId}</groupId>
>             <artifactId>web-editor-client</artifactId>
>             <version>${project.version}</version>
>             <type>jar</type>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>${project.groupId}</groupId>
>             <artifactId>web-editor-model</artifactId>
>             <version>${project.version}</version>
>             <type>jar</type>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>${project.groupId}</groupId>
>             <artifactId>web-editor-services</artifactId>
>             <version>${project.version}</version>
>             <type>jar</type>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.springframework</groupId>
>             <artifactId>spring-tx</artifactId>
>             <version>3.0.5.RELEASE</version>
>         </dependency>
>         <dependency>
>             <groupId>aspectj</groupId>
>             <artifactId>aspectjweaver</artifactId>
>             <version>1.5.4</version>
>             <scope>runtime</scope>
>         </dependency>
>         <dependency>
>             <groupId>cglib</groupId>
>             <artifactId>cglib</artifactId>
>             <version>2.2.2</version>
>             <type>jar</type>
>             <scope>runtime</scope>
>         </dependency>
>         <dependency>
>             <groupId>antlr</groupId>
>             <artifactId>antlr</artifactId>
>             <version>2.7.6</version>
>             <type>jar</type>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>commons-dbcp</groupId>
>             <artifactId>commons-dbcp</artifactId>
>             <version>1.4</version>
>             <type>jar</type>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>     <groupId>org.apache.cxf</groupId>
>     <artifactId>cxf-api</artifactId>
>     <version>2.4.3</version>
> </dependency>
>     <dependency>
>         <groupId>org.apache.cxf</groupId>
>         <artifactId>cxf-rt-frontend-jaxws</artifactId>
>         <version>2.4.3</version>
>     </dependency>
>     <dependency>
>         <groupId>org.apache.cxf</groupId>
>         <artifactId>cxf-rt-transports-http</artifactId>
>         <version>2.4.3</version>
>     </dependency>
>         <dependency>
>             <groupId>com.microsoft.sqlserver</groupId>
>             <artifactId>sqljdbc4</artifactId>
>             <version>3.0.1301.101</version>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>commons-pool</groupId>
>             <artifactId>commons-pool</artifactId>
>             <version>1.5.6</version>
>             <type>jar</type>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>net.sf.dozer</groupId>
>             <artifactId>dozer</artifactId>
>             <version>5.4.0</version>
>         </dependency>
>         <dependency>
>             <groupId>${project.groupId}</groupId>
>
> <artifactId>indesign-services-${minerva.ids.version}</artifactId>
>             <version>${project.version}</version>
>             <type>jar</type>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.mockito</groupId>
>             <artifactId>mockito-all</artifactId>
>             <version>1.9.5</version>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.dbunit</groupId>
>             <artifactId>dbunit</artifactId>
>             <version>2.4.8</version>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>com.github.springtestdbunit</groupId>
>             <artifactId>spring-test-dbunit</artifactId>
>             <version>1.0.1</version>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.hsqldb</groupId>
>             <artifactId>hsqldb</artifactId>
>             <version>2.0.0</version>
>             <scope>test</scope>
>         </dependency>
>
>        <dependency>
>             <groupId>org.apache.httpcomponents</groupId>
>             <artifactId>httpclient</artifactId>
>             <version>4.3.3</version>
>        </dependency>
>
>
>
> Thanks in advance for your feedback.
>
> Best Regards.
>
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message