UVC: impossible to deploy Webconsole "Cannot find the declaration of element"
search cancel

UVC: impossible to deploy Webconsole "Cannot find the declaration of element"

book

Article ID: 189876

calendar_today

Updated On:

Products

CA Automic Dollar Universe

Issue/Introduction

A new Tomcat was installed and the Univiewer Webconsole 6.x was deployed on it but it fails to be deployed with the following errors in catalina.out:

29-Apr-2020 17:02:11.302 SEVERE [localhost-startStop-1] org.apache.tomcat.util.digester.Digester.error Parse Error at line 6 column 16: cvc-elt.1: Cannot find the declaration of element 'web-app'.
        org.xml.sax.SAXParseException; systemId: file:/tomcat/webapps/univiewer_webconsole/WEB-INF/web.xml; lineNumber: 6; columnNumber: 16; cvc-elt.1: Cannot find the declaration of element 'web-app'.

29-Apr-2020 17:02:11.313 WARNING [localhost-startStop-1] org.apache.tomcat.util.descriptor.XmlErrorHandler.logFindings Non-fatal error [cvc-elt.1: Cannot find the declaration of element 'web-app'.] reported processing [file:/data/tomcat_DOLLARU/tomcat/webapps/univiewer_webconsole/WEB-INF/web.xml].
29-Apr-2020 17:02:11.381 SEVERE [localhost-startStop-1] org.apache.catalina.startup.ContextConfig.configureStart Marking this application unavailable due to previous error(s)
29-Apr-2020 17:02:11.382 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more components marked the context as not correctly configured.

 

Environment

Release : 6.x
Component : DOLLAR UNIVERSE
Subcomponent: Univiewer Webconsole deployed on Tomcat 8.5.x

Cause

Wrong configuration set on Tomcat CATALINA_OPTS: STRICT_SERVLET_COMPLIANCE=true

Resolution

Modify the setenv.sh or similar configuration file used to start Tomcat and remove the parameter STRICT_SERVLET_COMPLIANCE or set it to false ( default value).