Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Default Web.xml not validating
Default Web.xml not validating [message #150660] Sun, 04 December 2005 03:06 Go to next message
Tommy Vercetti is currently offline Tommy VercettiFriend
Messages: 35
Registered: July 2009
Member
Any ideas?
Eclipse 3.1.1
Eclipse Web Tools 1.0M9

When I open the default web.xml for a brand new "Dynamic Web Project"

I get the error:

The element type "td" must be terminated by the matching end-tag "</td>".

Web.xml:

<?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://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">
<display-name>
TestProject</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>


Stack Trace:

org.xml.sax.SAXParseException: The element type "td" must be terminated
by the matching end-tag "</td>".
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(U nknown
Source)
at
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl. parse(Unknown
Source)
at
org.eclipse.xsd.util.XSDResourceImpl.getDocument(XSDResource Impl.java:238)
at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:412)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:977)
at
org.eclipse.wst.xsd.contentmodel.internal.util.XSDSchemaLoca torImpl.locateSchema(XSDSchemaLocatorImpl.java:56)
at
org.eclipse.xsd.impl.XSDSchemaDirectiveImpl.locateSchema(XSD SchemaDirectiveImpl.java:436)
at
org.eclipse.xsd.impl.XSDSchemaDirectiveImpl.resolve(XSDSchem aDirectiveImpl.java:386)
at org.eclipse.xsd.impl.XSDIncludeImpl.patch(XSDIncludeImpl.jav a:308)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcr eteComponentImpl.java:526)
at org.eclipse.xsd.impl.XSDSchemaImpl.patch(XSDSchemaImpl.java: 1493)
at
org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2314)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentImpl.java:1219)
at
org.eclipse.xsd.impl.XSDSchemaImpl.setSchemaLocation(XSDSche maImpl.java:825)
at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:489)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:977)
at
org.eclipse.wst.xsd.contentmodel.internal.util.XSDSchemaLoca torImpl.locateSchema(XSDSchemaLocatorImpl.java:56)
at
org.eclipse.xsd.impl.XSDSchemaDirectiveImpl.locateSchema(XSD SchemaDirectiveImpl.java:436)
at
org.eclipse.xsd.impl.XSDSchemaDirectiveImpl.resolve(XSDSchem aDirectiveImpl.java:386)
at org.eclipse.xsd.impl.XSDIncludeImpl.patch(XSDIncludeImpl.jav a:308)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcr eteComponentImpl.java:526)
at org.eclipse.xsd.impl.XSDSchemaImpl.patch(XSDSchemaImpl.java: 1493)
at
org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2314)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentImpl.java:1219)
at
org.eclipse.xsd.impl.XSDSchemaImpl.setSchemaLocation(XSDSche maImpl.java:825)
at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:489)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:977)
at
org.eclipse.wst.xsd.contentmodel.internal.XSDImpl.buildXSDMo del(XSDImpl.java:210)
at
org.eclipse.wst.xsd.contentmodel.internal.XSDImpl.buildCMDoc ument(XSDImpl.java:169)
at
org.eclipse.wst.xsd.contentmodel.internal.CMDocumentFactoryX SD.createCMDocument(CMDocumentFactoryXSD.java:37)
at
org.eclipse.wst.xml.core.internal.contentmodel.ContentModelM anager.createCMDocument(ContentModelManager.java:56)
at
org.eclipse.wst.xml.core.internal.contentmodel.modelqueryimp l.CMDocumentManagerImpl.buildCMDocument(CMDocumentManagerImp l.java:259)
at
org.eclipse.wst.xml.core.internal.contentmodel.modelqueryimp l.CMDocumentManagerImpl$1.run(CMDocumentManagerImpl.java:229 )
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
Re: Default Web.xml not validating [message #150718 is a reply to message #150660] Sun, 04 December 2005 18:12 Go to previous message
Tommy Vercetti is currently offline Tommy VercettiFriend
Messages: 35
Registered: July 2009
Member
This problem went away when I completely reinstalled Eclipse (including
deleting all configuration/preference files). Everything actually works now!

The same exact web.xml quoted below now works perfectly without error.

I'm very happy now but as an aside: This is the kind of problem I hate
the most. A bizarre, maddeningly frustrating bug, with an obscure error
message, and absolutely no obvious way to go about resolving it. The
best luck in dealing with this type of error is to Google it and hope
someone else hit (and resolved) the exact same thing or do call a real
live knowledgeable human who will investigate.

Tommy Vercetti wrote:
> Any ideas?
> Eclipse 3.1.1
> Eclipse Web Tools 1.0M9
>
> When I open the default web.xml for a brand new "Dynamic Web Project"
>
> I get the error:
>
> The element type "td" must be terminated by the matching end-tag "</td>".
>
> Web.xml:
>
> <?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://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">
> <display-name>
> TestProject</display-name>
> <welcome-file-list>
> <welcome-file>index.html</welcome-file>
> <welcome-file>index.htm</welcome-file>
> <welcome-file>index.jsp</welcome-file>
> <welcome-file>default.html</welcome-file>
> <welcome-file>default.htm</welcome-file>
> <welcome-file>default.jsp</welcome-file>
> </welcome-file-list>
> </web-app>
>
>
> Stack Trace:
>
> org.xml.sax.SAXParseException: The element type "td" must be terminated
> by the matching end-tag "</td>".
> at
> com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(U nknown Source)
> at
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl. parse(Unknown
> Source)
> at
> org.eclipse.xsd.util.XSDResourceImpl.getDocument(XSDResource Impl.java:238)
> at
> org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:412)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:977)
>
> at
> org.eclipse.wst.xsd.contentmodel.internal.util.XSDSchemaLoca torImpl.locateSchema(XSDSchemaLocatorImpl.java:56)
>
> at
> org.eclipse.xsd.impl.XSDSchemaDirectiveImpl.locateSchema(XSD SchemaDirectiveImpl.java:436)
>
> at
> org.eclipse.xsd.impl.XSDSchemaDirectiveImpl.resolve(XSDSchem aDirectiveImpl.java:386)
>
> at org.eclipse.xsd.impl.XSDIncludeImpl.patch(XSDIncludeImpl.jav a:308)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcr eteComponentImpl.java:526)
>
> at org.eclipse.xsd.impl.XSDSchemaImpl.patch(XSDSchemaImpl.java: 1493)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2314)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentImpl.java:1219)
>
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.setSchemaLocation(XSDSche maImpl.java:825)
>
> at
> org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:489)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:977)
>
> at
> org.eclipse.wst.xsd.contentmodel.internal.util.XSDSchemaLoca torImpl.locateSchema(XSDSchemaLocatorImpl.java:56)
>
> at
> org.eclipse.xsd.impl.XSDSchemaDirectiveImpl.locateSchema(XSD SchemaDirectiveImpl.java:436)
>
> at
> org.eclipse.xsd.impl.XSDSchemaDirectiveImpl.resolve(XSDSchem aDirectiveImpl.java:386)
>
> at org.eclipse.xsd.impl.XSDIncludeImpl.patch(XSDIncludeImpl.jav a:308)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.patch(XSDConcr eteComponentImpl.java:526)
>
> at org.eclipse.xsd.impl.XSDSchemaImpl.patch(XSDSchemaImpl.java: 1493)
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.changeAttribute(XSDSchema Impl.java:2314)
> at
> org.eclipse.xsd.impl.XSDConcreteComponentImpl.eNotify(XSDCon creteComponentImpl.java:1219)
>
> at
> org.eclipse.xsd.impl.XSDSchemaImpl.setSchemaLocation(XSDSche maImpl.java:825)
>
> at
> org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:489)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:977)
>
> at
> org.eclipse.wst.xsd.contentmodel.internal.XSDImpl.buildXSDMo del(XSDImpl.java:210)
>
> at
> org.eclipse.wst.xsd.contentmodel.internal.XSDImpl.buildCMDoc ument(XSDImpl.java:169)
>
> at
> org.eclipse.wst.xsd.contentmodel.internal.CMDocumentFactoryX SD.createCMDocument(CMDocumentFactoryXSD.java:37)
>
> at
> org.eclipse.wst.xml.core.internal.contentmodel.ContentModelM anager.createCMDocument(ContentModelManager.java:56)
>
> at
> org.eclipse.wst.xml.core.internal.contentmodel.modelqueryimp l.CMDocumentManagerImpl.buildCMDocument(CMDocumentManagerImp l.java:259)
>
> at
> org.eclipse.wst.xml.core.internal.contentmodel.modelqueryimp l.CMDocumentManagerImpl$1.run(CMDocumentManagerImpl.java:229 )
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
Previous Topic:How to combine Ant into Dynamic Web Project?
Next Topic:edit a web module
Goto Forum:
  


Current Time: Thu Apr 25 13:02:16 GMT 2024

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

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

Back to the top