|
|
|
Re: web.xml created with error [message #186927 is a reply to message #186886] |
Thu, 25 January 2007 02:10 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
Actually the problem is documented as the end of Bug 152355 [1].
You can work around the problem by correcting it locally. In Eclipse,
execute Window -> Preferences -> Internet -> Cache and remove the
http://www.ibm.com/webservices/xsd/j2ee_web_services_client_ 1_1.xsd
entry, then exit Eclipse. Under the
".metadata\.plugins\org.eclipse.wst.internet.cache" directory in your
workspace, examine the contents of the cache.xml file and determine
which file contains the contents for j2ee_1_4.xsd. Open this file in a
text editor and replace "www.ibm.com/webservices/xsd" with
"java.sun.com/xml/ns/j2ee". The "java.sun.com/xml/ns/j2ee" replacement
string can be copied from near the beginning of the file. Save the file
and restart Eclipse. You should now be able to validate successfully.
Cheers,
Larry
[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=152355
Larry Isaacs wrote:
> It does get indirectly referenced by other XSD's used by web.xml. I
> forget which one. I think this started happening over the weekend.
> It will continue until the URL [1] resumes returning the XSD contents
> rather than the web page it is currently returning. Once it does, you
> will need to go into your Window -> Preferences -> Internet -> Cache and
> remove the appropriate entry so it will be replaced with an entry having
> the proper contents.
>
> If you have other workspaces, you may have a cached copy in its
> ".metadata\.plugins\org.eclipse.wst.internet.cache" directory. You
> should be able to use its contents to create a local file and add a user
> entry to the Internet Cache to avoid trying to get it over the Internet.
> Use Window -> Preferences -> Web and XML -> XML Catalog. I haven't
> actually done this yet, though.
>
> Cheers,
> Larry
>
> [1] http://www.ibm.com/webservices/xsd/j2ee_web_services_client_ 1_1.xsd
>
> Andrew Mak wrote:
>> Hi Zohar,
>>
>> I am fairly certain that web.xml does not reference
>> j2ee_web_services_client_1_1.xsd. Are you sure that the error is
>> issued from web.xml and not some other file in the workspace? Also
>> try re-validating the file (right-click -> Validate), does that make
>> the error go away?
>>
>> Andrew
>>
>> Zohar wrote:
>>
>>> When creating a new dynamic web project I get the following error in
>>> the web.xml that was automatically generated:
>>
>>> Referenced file contains errors
>>> ( http://www.ibm.com/webservices/xsd/j2ee_web_services_client_ 1_1.xsd).
>>
>>> Why?
>>
>>> Thanks,
>>> Zohar.
>>
>>
|
|
|
Re: web.xml created with error [message #187219 is a reply to message #186927] |
Sat, 27 January 2007 21:14 |
Sean Dockery Messages: 5 Registered: July 2009 |
Junior Member |
|
|
Hello Larry.
I tried your second workaround suggestion (modifying the cached file), but
it did not work for me. Your first suggestion (about adding an entry to the
XML Catalog) was successful.
"Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
news:ep93ip$1sa$1@utils.eclipse.org...
> Actually the problem is documented as the end of Bug 152355 [1].
>
> You can work around the problem by correcting it locally. In Eclipse,
> execute Window -> Preferences -> Internet -> Cache and remove the
> http://www.ibm.com/webservices/xsd/j2ee_web_services_client_ 1_1.xsd entry,
> then exit Eclipse. Under the
> ".metadata\.plugins\org.eclipse.wst.internet.cache" directory in your
> workspace, examine the contents of the cache.xml file and determine which
> file contains the contents for j2ee_1_4.xsd. Open this file in a text
> editor and replace "www.ibm.com/webservices/xsd" with
> "java.sun.com/xml/ns/j2ee". The "java.sun.com/xml/ns/j2ee" replacement
> string can be copied from near the beginning of the file. Save the file
> and restart Eclipse. You should now be able to validate successfully.
>
> Cheers,
> Larry
>
> [1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=152355
>
> Larry Isaacs wrote:
>> It does get indirectly referenced by other XSD's used by web.xml. I
>> forget which one. I think this started happening over the weekend.
>> It will continue until the URL [1] resumes returning the XSD contents
>> rather than the web page it is currently returning. Once it does, you
>> will need to go into your Window -> Preferences -> Internet -> Cache and
>> remove the appropriate entry so it will be replaced with an entry having
>> the proper contents.
>>
>> If you have other workspaces, you may have a cached copy in its
>> ".metadata\.plugins\org.eclipse.wst.internet.cache" directory. You
>> should be able to use its contents to create a local file and add a user
>> entry to the Internet Cache to avoid trying to get it over the Internet.
>> Use Window -> Preferences -> Web and XML -> XML Catalog. I haven't
>> actually done this yet, though.
>>
>> Cheers,
>> Larry
>>
>> [1] http://www.ibm.com/webservices/xsd/j2ee_web_services_client_ 1_1.xsd
>>
>> Andrew Mak wrote:
>>> Hi Zohar,
>>>
>>> I am fairly certain that web.xml does not reference
>>> j2ee_web_services_client_1_1.xsd. Are you sure that the error is issued
>>> from web.xml and not some other file in the workspace? Also try
>>> re-validating the file (right-click -> Validate), does that make the
>>> error go away?
>>>
>>> Andrew
>>>
>>> Zohar wrote:
>>>
>>>> When creating a new dynamic web project I get the following error in
>>>> the web.xml that was automatically generated:
>>>
>>>> Referenced file contains errors
>>>> ( http://www.ibm.com/webservices/xsd/j2ee_web_services_client_ 1_1.xsd).
>>>
>>>> Why?
>>>
>>>> Thanks,
>>>> Zohar.
>>>
>>>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05484 seconds