Tomcat fails to start with XML parsing error after upgrading Spring

Solution Verified - Updated -

Issue

  • After upgrading the Spring libraries, Tomcat fails to start with error:

    03-Apr-2019 **:**:**.234 SEVERE [main] org.apache.tomcat.util.digester.Digester.warning Parse warning at line [5] column [41]
    03-Apr-2019 **:**:**.248 SEVERE [main] org.apache.tomcat.util.digester.Digester.error Parse error at line [5] column [41]
    org.xml.sax.SAXParseException; systemId: jar:file:/Install/path/webapps/ROOT/WEB-INF/lib/spring-web-4.3.23.RELEASE.jar!/META-INF/web-fragment.xml; lineNumber: 5; columnNumber: 41; cvc-elt.1: Cannot find the declaration of element 'web-fragment'.
    at  ...
    

Environment

  • Red Hat JBoss Web Server (JWS)
    • 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content