Enable to create any WTP project ! [message #81853] |
Thu, 10 March 2005 05:14  |
Eclipse User |
|
|
|
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 #86140 is a reply to message #85654] |
Wed, 23 March 2005 06:30  |
Eclipse User |
|
|
|
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
-----------------------------------------------------
|
|
|
Powered by
FUDForum. Page generated in 0.04125 seconds