By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,377 Members | 3,052 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,377 IT Pros & Developers. It's quick & easy.

This has to be a simple DOCTYPE issue - HELP?

P: n/a
For some reason on my system I can't get the following elementry
web.xml to validate. It looks like JonAS will only process an XML if
it is valid. For some reason a very similar web.xml on JBoss is
processed fine. My guess is JBoss isn't validating.

The XML file:

<?xml version="1.0" encoding="ISO-8859-1"?>

"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"


<display-name>JOnAS-Tomcat Packaging index</display-name>
Display the context which are preconfigured.


When I run the SUN XML validator using the DOCTYPE specification for
the DTD I get:

Multi Schema Validator Ver.20030225
using org.apache.xerces.jaxp.SAXParserFactoryImpl
DTD validation will be done.
start parsing a grammar.
element "web-app" is not allowed here
failed to load a grammar.

But if I provide a local file copy of the from my system using the
-standalone option (I think it ignores the <!DOCTYPE ...> in the XML)
than it parses fine by the validator.

I don't inderstand what is wrong. Any help would be great. I have
been tearing my hair out on this simple problem, anmd I don't have
much more to loose!
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.