camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aki Yoshida <elak...@gmail.com>
Subject Re: Making Camel based middle layer available even when services are not
Date Wed, 05 Dec 2012 18:25:06 GMT
are you using blueprint?
in that case, you need the pax-url-classpath bundle.
org.ops4j.pax.url/pax-url-classpath

regards, aki


2012/12/3 ucrkarthik <ucrkarthik@hotmail.com>:
> Hi Williem,
>
> I have the following code cxf-endpoint defined and I get the same error.
>     <cxf:cxfEndpoint xmlns:s="http://test.com/fileExchange/query/v1"
>                      address="http://localhost:1234/fileExchange/query"
>                      endpointName="s:FileExchangeBinding"
>                      id="SomeIdCxf"
>                      serviceName="s:FileExchange"
>
> wsdlURL="classpath:export/wsdl-data-exchanges/wsdl/FileExchangeService.wsdl"
>
> serviceClass="com.test.services.repository.fileExchange.FileExchangeService">
>     </cxf:cxfEndpoint>
>
> I would like to avoid storing the WSDL in my local directory. I would rather
> have it reference the wsdl from the bundle jar that's deployed.
>
> Here is the error that I get when I deploy the jar(bundle), which is very
> similar to the same error:
> Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR:
> Problem parsing
> 'classpath:export/wsdl-data-exchanges/wsdl/FileExchangeService.wsdl'.:
> java.net.MalformedURLException: Unknown protocol: classpath
>         at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
>         at
> org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:244)
>         at
> org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:191)
>         at
> org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:92)
>         ... 33 more
>
> Thanks,
> Karthik
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Making-Camel-based-middle-layer-available-even-when-services-are-not-tp5720905p5723555.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message