I recommend not touching the "schemaLocation" settings. You can override this externally with an XML catalog, which can redirect to a local copy. In Eclipse: Window=>Preferences=>Web and XML=>XML Catalog, then press "Add". Also see: http://www.eclipse.org/webtools/community/tutorials/XMLCatalog/XMLCatalo gTutorial.html -Chris ________________________________
From: Manolescu, Radu (IT) Sent: Thursday, June 05, 2008 11:15 AM To: cxf-ea; [email protected] Subject: WSDLToJava Error | xmldsig-core-schema.xsd | Connection timed out I am trying to generate client code from a WSDL file, and I am getting the error below. My WSDL references an XSD (authored by our counterpart) which references the public file "oasis-200401-wss-wssecurity-secext-1.0.xsd", which references the public file "xmldsig-core-schema.xsd". I tried to use Eclipse to validate the WSDL and XSD files, and when Eclipse complained that it could not read some XSD files, I downloaded them locally and changed the "schemaLocation" references accordingly. The last errors, which I cannot seem to be able to remove, are: * "oasis-200401-wss-wssecurity-secext-1.0.xsd" does not pass Eclipse validation. Eclipse complains about being unable to read "xmldsig-core-schema.xsd", whether that file is referenced locally or from the Internet * when using Ant to call wsdl2java to generate the client, I get the exception below. Which program is trying to connect, and where? Is Ant trying to download files from the Internet while parsing "xmldsig-core-schema.xsd"?. If so, how can I make it connect? Define a proxy somewhere? Download the dependencies locally? wsdl2java: [java] WSDLToJava Error : java.lang.RuntimeException: Fail to create wsdl definition from : file:/U:/NonVerConPrj/MyProj/src/ide-bin/etc/Nodal.wsdl [java] Caused by : WSDLException (at /wsdl:definitions/wsdl:types/xs:schema/xsd:schema/xsd:schema): faultCode=PARSER_ERROR: Problem parsing 'file:/U:/NonVerConPrj/MyProj/src/ide-bin/etc/xmldsig-core-schema.xsd'.: java.net.ConnectException: Connection timed out: connect -------------------------------------------------------- NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.
