You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Sachin <sa...@gmail.com> on 2012/12/03 14:43:56 UTC

Relative Path xsds not found in camel -cxf

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.