Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » web.xml created with error
web.xml created with error [message #186840] Wed, 24 January 2007 12:08 Go to next message
Zohar Amir is currently offline Zohar Amir
Messages: 419
Registered: July 2009
Senior Member
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 #186878 is a reply to message #186840] Wed, 24 January 2007 17:56 Go to previous messageGo to next message
Andrew Mak is currently offline Andrew Mak
Messages: 41
Registered: July 2009
Member
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 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1308
Registered: July 2009
Senior Member
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 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1308
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 Go to previous messageGo to next message
Sean Dockery is currently offline 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.
>>>
>>>
Re: web.xml created with error [message #187313 is a reply to message #187219] Mon, 29 January 2007 19:45 Go to previous messageGo to next message
Calvin Deiterich is currently offline Calvin Deiterich
Messages: 1
Registered: July 2009
Junior Member
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
Re: web.xml created with error [message #187356 is a reply to message #187313] Wed, 31 January 2007 05:42 Go to previous messageGo to next message
Sean Dockery is currently offline Sean Dockery
Messages: 5
Registered: July 2009
Junior Member
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
>
Re: web.xml created with error [message #187363 is a reply to message #187313] Wed, 31 January 2007 07:44 Go to previous message
Zohar Amir is currently offline Zohar Amir
Messages: 419
Registered: July 2009
Senior Member
I've tried following your instructions, but it did not work. I tried adding
a catalog entry in Windows --> Preferences --> Web and XML --> XML Catalog,
under "User Specified Entries". The dialog opened, and I put in
" http://java.sun.com/xml/ns/j2ee/j2ee_web_services_client_1_1 .xsd" as the
"Location" field, and
" http://www.ibm.com/webservices/xsd/j2ee_web_services_client_ 1_1.xsd" as the
"Key". I also selected "Schema Location" as the Key Type. But when I click
"OK" a bad entry is added:

Location:URI:
Key Type: System ID
Key: http://www.ibm.com/webservices/xsd/j2ee_web_services_client_ 1_1.xsd


Any idea what I am doing wrong here?

"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
>
Previous Topic:Cryptography
Next Topic:web.xml issue
Goto Forum:
  


Current Time: Wed Oct 01 04:04:53 GMT 2014

Powered by FUDForum. Page generated in 0.11612 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software