tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40507] - XML validation fails when xmlValidation="true"
Date Thu, 28 Dec 2006 13:14:25 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40507>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40507





------- Additional Comments From roland_nygren@msn.com  2006-12-28 05:14 -------
(In reply to comment #1)
> When you enable xmlValidation="true" you also need to enable
> xmlNamespaceAware="true" as well.  If these are both set to true in your
> server.xml you should be able to validate correctly.  Works for me anyway.

I don't know what I do wrong.
The same occurs with Tomcat 5.5.20.
Setting both xmlValidation & xmlNamespaceAware true I still get:

INFO: XML validation enabled
2006-dec-28 14:04:45 org.apache.tomcat.util.digester.Digester error
ALLVARLIG: Parse Error at line 7 column 10: cvc-elt.1: Cannot find the 
declaration of element 'web-app'.
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of 
element 'web-app'.
	at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseExcep
tion(ErrorHandlerWrapper.java:236)

...

2006-dec-28 14:04:45 org.apache.catalina.startup.ContextConfig start
ALLVARLIG: Marking this application unavailable due to previous error(s)
2006-dec-28 14:04:45 org.apache.catalina.core.StandardContext start
ALLVARLIG: Error getConfigured
2006-dec-28 14:04:45 org.apache.catalina.core.StandardContext start
ALLVARLIG: Context [/host-manager] startup failed due to previous errors

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message