camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sachin <sachin2...@gmail.com>
Subject Relative Path xsds not found in camel -cxf
Date Mon, 03 Dec 2012 13:43:56 GMT
Hello All,

I am facing below problem while exposing cxf web service using contract
first approach. My tech stack is camel 2.9.1 with cxf 2.4.2.
if the  WSDL contains nested XSD includes with relative paths such as ../,
the path to those includes that is built from their relative path is built
incorrectly and a FileNotFoundException is produced. The generated XSD
file's path is computed from the server deployment folder location rather
than from the WSDL location on the remote machine.

<import schemaLocation=&quot;../xsd/MustTradeID.xsd&quot; For this CXF tries
to fing xsd in WAS server profile.

Caused by: java.io.FileNotFoundException:
F:\IBM\WebSphere\AppServer\profiles\xsd\MustTradeID.xsd (The system cannot
find the path specified.)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.&lt;init>(FileInputStream.java:112)



--
View this message in context: http://camel.465427.n5.nabble.com/Relative-Path-xsds-not-found-in-camel-cxf-tp5723543.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message