Community
Participate
Working Groups
The xsd validation off application.xml crash. This xml uses this schema location http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd Schema location that uses a include of j2ee_1_4.xsd that uses this import <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/> and this include <xsd:include schemaLocation= "http://www.ibm.com/webservices/xsd/j2ee_web_services_client_1_1.xsd"/> A try thousend of combinatios using or not the Validation catalog or simply try to validate this files in local downloading and translating uris to local-same directory references. Not running, anyway. I validate this files with other XML software and validations returns OK. Thanks
Lawrence, please investigate. Thx.
Miguel, are you working connected to the internet or disconnected? There is a bug in 0.7 where the XML validator always attempts to connect to the remote schema location even if the schema is available locally.
Hi, Maybe the issue is that in fact IBM has changed the location of the XSD file, and in fact "http://www.ibm.com/webservices/xsd/j2ee_web_services_client_1_1.xsd" is a redirect to "http://www-128.ibm.com/developerworks/webservices/jsrproject/j2ee_web_services_client_1_1.xsd"?
I have noticed that the resource Dan specified in comment #3 is sometimes unavailable. Bug 104086 is open to track a request to bundle this schema with WTP to remove the requirement to retrieve it remotely. We're awaiting legal guidance on whether this is possible. As a workaround, you can add this schema to the XML catalog. With the schema in the XML catalog Eclipse will not try to retreive it from the remote site. Here are the specific steps to add it to the catalog: 1. Download the schema from http://www.ibm.com/webservices/xsd/j2ee_web_services_client_1_1.xsd and save it to your local drive. If the site is unavailable the schema is also available from http://java.sun.com/xml/ns/j2ee/j2ee_web_services_client_1_1.xsd. 2. In Eclipse, select Window->Preferences->Web and XML->XML Catalog. The XML catalog preference page will display. 3. Click to Add... a new entry to the catalog and specify the following: URI: The location of the schema on your local drive Key Type: Schema Location Key: http://www.ibm.com/webservices/xsd/j2ee_web_services_client_1_1.xsd Click OK. 4. Exit the preference page by clicking OK. Eclipse now has access to a local copy of the schema and will not attempt to retrieve it from the remote source. *** This bug has been marked as a duplicate of 104086 ***
Thanks Lawrence, I can confirm that your suggestion works, hopefully it will be included locally into one of the next WTP .jar files.
This is part of a mass update to close out all stale WTP bugs which are in the resolved state without an appropriate targeted version. If you feel this bug was closed inappropriately, please reopen.