Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 105560 - J2EE descriptors XSD Validation crashes
Summary: J2EE descriptors XSD Validation crashes
Status: CLOSED DUPLICATE of bug 104086
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xsd (show other bugs)
Version: 0.7   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Lawrence Mandel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-29 04:21 EDT by Miguel Ruiz CLA
Modified: 2006-11-28 15:50 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miguel Ruiz CLA 2005-07-29 04:21:03 EDT
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
Comment 1 Keith Chong CLA 2005-11-19 12:10:35 EST
Lawrence, please investigate.  Thx.
Comment 2 Lawrence Mandel CLA 2005-11-19 13:37:18 EST
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.
Comment 3 Dan Dragut CLA 2006-04-26 08:35:14 EDT
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"?
Comment 4 Lawrence Mandel CLA 2006-04-26 13:06:04 EDT
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 ***
Comment 5 Dan Dragut CLA 2006-04-26 16:11:16 EDT
Thanks Lawrence,

I can confirm that your suggestion works, hopefully it will be included locally into one of the next WTP .jar files.
Comment 6 John Lanuti CLA 2006-11-28 15:50:24 EST
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.