Your request seems unusual--file-referencing in Java is usually done
from the current directory or the classpath root, not inherited from the
physical location of the file making that reference. Are you aware of
any other place in Java-ville that would reference files in the manner
you're requesting?
Glen
On 08/18/2012 06:39 AM, Driesen Gert wrote:
Hello,
I'm having the issue with the cxf-codegen-plugin and wsdl2java:
I'm attempting use CXF to generate the java (client) sources for a given WSDL
(specified with absolute path).
In that WSDL I import another WSDL with a relative path (../SomeWSDL.wsdl).
I would expect CXF to resolve that imported WSDL relative to the importing
WSDL, but apparently it is resolved relative to the current directory.
Hence the following error:
WSDLToJava Error: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create
wsdl definition from :
file:/D:/RSVZ/GWYSecurity/Gateway/Implementation/GWYSecurity_Gateway_Services/target/generated-resources/GWYSecurity/GWYSecurity_V1.wsdl
Caused by : WSDLException (at /wsdl:definitions/wsdl:import):
faultCode=PARSER_ERROR: Problem parsing '../Helper_V1.wsdl'.:
java.io.FileNotFoundException:
D:\RSVZ\GWYSecurity\Gateway\Implementation\Helper_V1.wsdl (The system cannot
find the file specified)
where the current directory is
"D:\RSVZ\GWYSecurity\Gateway\Implementation\GWYSecurity_Gateway_Services".
I need CXF to always resolve ANY imported WSDL or XSD to the importing WSDL/XSD.
Can I somehow configure the cxf-codegen-plugin for this to work ?
I'm not sure if this can be considered a bug in CXF.
Thanks!
Gert
This e-mail and all files transmitted as attachment(s) thereto are confidential
and solely intended for the individual to whom or the organization to which
they are addressed. If you received this e-mail by mistake, please notify
Cegeka's Service Desk at [email protected] or call +32 (0)11 240 363. We
thank you in advance. Cegeka hereby confirms that this message has been swept
by Sophos for the presence of viruses.