Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Enable to create any WTP project !
Enable to create any WTP project ! [message #81853] Thu, 10 March 2005 05:14 Go to next message
Eclipse UserFriend
Originally posted by: cstock.netqi.com

I have tried to create a new J2EE web project, or to import an existing
one which is working perfectly, but I have this error with the web.xml
file :

"The errors below were detected when validating the file
j2ee_web_services_client_1_1.xsd via the file web.xml. In most cases
these errors can be detected by validating
j2ee_web_services_client_1_1.xsd directly. However it is possible that
errors will only occur when j2ee_web_services_client_1_1.xsd is validated
in the context of web.xml."

In fact, the file
http://www.ibm.com/link/oss.software.ibm.com/redirect.shtml/ jsr109/xsd/j2ee_web_services_client_1_1.xsd
is not a valid URL.

What is the solution ?

Thanks for your help.
Re: Enable to create any WTP project ! [message #82196 is a reply to message #81853] Thu, 10 March 2005 11:56 Go to previous messageGo to next message
Eclipse UserFriend
As I responded in the newsgroup posting web.xml: different error in empty
project, the schema no longer exists at the location. I've contact the
webmaster about this problem and will post back here when there is a
solution.


Lawrence
Re: Enable to create any WTP project ! [message #82239 is a reply to message #81853] Thu, 10 March 2005 13:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: steve_osborne1.excite.com

I had the same problem and my solution ended up being some convoluted way
to refresh web.xml with a new dtd.

I first pasted
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://java.sun.com/xml/ns/j2ee
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

and still had an error. Then I messed up my <web-app> tag by cutting part
of the xmlns:xsi attribute out and got a new error about the <web-app>
tag; I pasted it back; saved; and all errors were gone after that.

Cyril wrote:

> I have tried to create a new J2EE web project, or to import an existing
> one which is working perfectly, but I have this error with the web.xml
> file :

> "The errors below were detected when validating the file
> j2ee_web_services_client_1_1.xsd via the file web.xml. In most cases
> these errors can be detected by validating
> j2ee_web_services_client_1_1.xsd directly. However it is possible that
> errors will only occur when j2ee_web_services_client_1_1.xsd is validated
> in the context of web.xml."

> In fact, the file
>
http://www.ibm.com/link/oss.software.ibm.com/redirect.shtml/ jsr109/xsd/j2ee_web_services_client_1_1.xsd
> is not a valid URL.

> What is the solution ?

> Thanks for your help.
Re: Enable to create any WTP project ! [message #82438 is a reply to message #82239] Fri, 11 March 2005 04:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cstock.netqi.com

I just copied and pasted your web-app tag (without deleting any
attributes) and every things is working now. Thanks a lot.

Steve Osborne wrote:

> I had the same problem and my solution ended up being some convoluted way
> to refresh web.xml with a new dtd.

> I first pasted
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app id="WebApp_ID" version="2.4"
> xmlns="http://java.sun.com/xml/ns/j2ee"
> xmlns:xsi="http://java.sun.com/xml/ns/j2ee
> http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

> and still had an error. Then I messed up my <web-app> tag by cutting part
> of the xmlns:xsi attribute out and got a new error about the <web-app>
> tag; I pasted it back; saved; and all errors were gone after that.

> Cyril wrote:

>> I have tried to create a new J2EE web project, or to import an existing
>> one which is working perfectly, but I have this error with the web.xml
>> file :

>> "The errors below were detected when validating the file
>> j2ee_web_services_client_1_1.xsd via the file web.xml. In most cases
>> these errors can be detected by validating
>> j2ee_web_services_client_1_1.xsd directly. However it is possible that
>> errors will only occur when j2ee_web_services_client_1_1.xsd is validated
>> in the context of web.xml."

>> In fact, the file
>>
>
http://www.ibm.com/link/oss.software.ibm.com/redirect.shtml/ jsr109/xsd/j2ee_web_services_client_1_1.xsd
>> is not a valid URL.

>> What is the solution ?

>> Thanks for your help.
Re: Enable to create any WTP project ! [message #85654 is a reply to message #82438] Tue, 22 March 2005 07:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sameh.elsayed.gmail.com

heeeeeeeeeeeeeeeeeeeeelp .....
I tried that solution -to modify the <web-app> tag as indicated - but the
problem is stil the same (malformed web.xml).
I'm using weblogic8.1 and I'm creating an empty web app and try to run it,
but the weblogic gave me the previouse error,
I don'
t know the problem yet as I tried alos to add to the plugin.xml the pathes
of the xsds and dtds -local paths- as indecated in another thead but no
use,
I'm novic to eclipse and don't know what else could do
thnx
Sameh.
Re: Enable to create any WTP project ! [message #86140 is a reply to message #85654] Wed, 23 March 2005 06:30 Go to previous message
Eclipse UserFriend
Originally posted by: sameh.elsayed.gmail.com

Please; may somebody tell me where is the problem of web.xml, here is my
eb.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN" >
<web-app id="WebApp_ID">
<display-name>testProject</display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>

and there is another version i used and didn't work also:

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="testProject" version="2.3"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://java.sun.com/xml/ns/2ee
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_3.xsd" >
<display-name>testApp</display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>


and i also added the mappings to the Preference -> XML Catalog for local
paths of all therequired files but it seems it's not used or what , i
brought the original files from thier origins on the net.
so please where is the problem because i can't see the source of it,
i'm using weblogic8.1 and it gave me this error:


<Warning> <HTTP> <BEA-101248> <[testproject.war]: Deployment descriptor
"web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException:
cvc-elt.1: Cannot find the declaration of element 'web-app'. (line 6, column
102).>


thnx
sameh
-----------------------------------------------------
Previous Topic:j2ee_web_services_client_1_1.xsd
Next Topic:Multiple locations of server.xml for tomcat in WTP
Goto Forum:
  


Current Time: Sat Jul 19 15:30:31 EDT 2025

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

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

Back to the top