https://issues.apache.org/bugzilla/show_bug.cgi?id=56000

            Bug ID: 56000
           Summary: Tomcat should log xml validation errors by default.
           Product: Tomcat 8
           Version: 8.0.0-RC10
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: juer...@jwi.de

I had a typo in web.xml : <serlet-name>

Tomcat does not show a meaningful error message (see below). I only saw the
error by deploying on WLS, which throws:

VALIDATION PROBLEMS WERE FOUND <16:6> problem: cvc-complex-type.2.4a: Expected
element 'servlet-name@http://java.sun.com/xml/ns/javaee' instead of
'serlet-name@http://java.sun.com/xml/ns/javaee' 

Tomcat should also log xml validation errors by default.

13-Jan-2014 14:47:35.603 SEVERE [localhost-startStop-1]
org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild:
start:
 org.apache.catalina.LifecycleException: Failed to initialize component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/hellod].StandardWrapper[null]]
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)

Caused by: java.lang.NullPointerException
        at
org.apache.tomcat.util.modeler.Util.objectNameValueNeedsQuote(Util.java:26)

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

Reply via email to