|
Re: web.xml created with error [message #186878 is a reply to message #186840] |
Wed, 24 January 2007 17:56   |
Eclipse User |
|
|
|
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 #186886 is a reply to message #186878] |
Wed, 24 January 2007 18:28   |
Eclipse User |
|
|
|
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 #186927 is a reply to message #186886] |
Thu, 25 January 2007 02:10   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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.
>>>
>>>
|
|
|
|
Re: web.xml created with error [message #187356 is a reply to message #187313] |
Wed, 31 January 2007 05:42   |
Eclipse User |
|
|
|
I wish that I had noticed that solution first. It is better than keeping a
local copy.
"Calvin Deiterich" <cedeiter@hacc.edu> wrote in message
news:63b8b3a69296d4cf5550bd7defe1675b$1@www.eclipse.org...
> Neither one of these worked for me. I looked at the bug report and
> followed Carey's directions:
>
> ------- Comment #17 From Carey Evans 2007-01-25 19:58:19
> [reply] -------
>
> Instead of using a local copy, I've added an XML Catalog entry as follows:
>
> URI: http://java.sun.com/xml/ns/j2ee/j2ee_web_services_client_1_1 .xsd
> Key Type: Schema Location
> Key:
> http://www.ibm.com/webservices/xsd/j2ee_web_services_client_ 1_1.xsd
>
> This made Eclipse download and cache Sun's copy of the file the first time
> it
> was needed, instead of the IBM version which has currently lost its HTTP
> redirect (for me). Using the developerWorks link from comment #3 probably
> would have worked, too.
>
> Could this catalog entry be added to Web Tools?
>
> You add this at Windows --> Preferences --> Web and XML --> XML Catalog
>
> I added mine under User Specified Entries.
>
> Calvin
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02730 seconds