[ 
https://issues.apache.org/activemq/browse/CAMEL-2700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jonathan Anstey resolved CAMEL-2700.
------------------------------------

    Resolution: Fixed

> cxfbean component should ignore the wsdlLocation in the POJO
> ------------------------------------------------------------
>
>                 Key: CAMEL-2700
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2700
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 2.2.0
>            Reporter: Jonathan Anstey
>            Assignee: Jonathan Anstey
>             Fix For: 2.3.0
>
>
> cxfbean component should ignore the wsdlLocation in the annotation in the 
> POJO when starting the service. It should be using the JAXWS bean to create 
> the service. Came across this bug when I (mistakenly) set the wsdlLocation to 
> the http one published by the service, which of course wasn't up yet and I 
> got the exception below. Fix for this coming soon.
> For Googlers out there, this ticket *may* fix this error message you may be 
> getting:
> {code}
> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve 
> endpoint: cxfbean://jaxwsBean due to: Failed to create service.
>     at 
> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:437)
>     at 
> org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:46)
>     at 
> org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:154)
>     at 
> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:109)
>     at 
> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:115)
>     at 
> org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:63)
>     at 
> org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:57)
>     at 
> org.apache.camel.model.ToDefinition.createProcessor(ToDefinition.java:87)
>     at 
> org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:286)
>     at 
> org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:114)
>     at 
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:640)
>     ... 32 more
> Caused by: org.apache.cxf.service.factory.ServiceConstructionException: 
> Failed to create service.
>     at 
> org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:93)
>     at 
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:396)
>     at 
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:521)
>     at 
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:271)
>     at 
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:177)
>     at 
> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:100)
>     at 
> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:105)
>     at 
> org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:167)
>     at 
> org.apache.camel.component.cxf.cxfbean.CxfBeanEndpoint.createServer(CxfBeanEndpoint.java:104)
>     at 
> org.apache.camel.component.cxf.cxfbean.CxfBeanEndpoint.init(CxfBeanEndpoint.java:86)
>     at 
> org.apache.camel.component.cxf.cxfbean.CxfBeanComponent.createEndpoint(CxfBeanComponent.java:48)
>     at 
> org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:78)
>     at 
> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:416)
>     ... 42 more
> Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: 
> java.lang.IllegalArgumentException: InputSource must have a ByteStream or 
> CharacterStream
>     at 
> org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:226)
>     at 
> org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:179)
>     at 
> org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:91)
>     ... 54 more
> Caused by: java.lang.IllegalArgumentException: InputSource must have a 
> ByteStream or CharacterStream
>     at 
> org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:983)
>     at 
> org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:217)
>     ... 56 more 
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to