Random ClassCastException for ErrorReportValve at startup
Environment
- JBoss Enterprise Application Platform (EAP) 6.4.x
Issue
- We randomly see the following exception upon startup:
ERROR [org.apache.catalina.core] (MSC service thread 1-4) JBWEB001085: Failed loding specified error report valve class: org.apache.catalina.valves.ErrorReportValve: java.lang.ClassCastException: org.apache.catalina.valves.ErrorReportValve cannot be cast to org.apache.catalina.Container
at org.jboss.as.web.WebConnectorService$2.containerEvent(WebConnectorService.java:344) [jboss-as-web-7.5.7.Final-redhat-3.jar:7.5.7.Final-redhat-3]
at org.apache.catalina.core.ContainerBase.fireContainerEvent(ContainerBase.java:1345) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
at org.apache.catalina.core.ContainerBase.addValve(ContainerBase.java:1204) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
at org.apache.catalina.core.StandardHost.start(StandardHost.java:462) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:803) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
at org.apache.catalina.core.StandardEngine.addChild(StandardEngine.java:217) [jbossweb-7.5.15.Final-redhat-1.jar:7.5.15.Final-redhat-1]
at org.jboss.as.web.WebServerService.addHost(WebServerService.java:167) [jboss-as-web-7.5.7.Final-redhat-3.jar:7.5.7.Final-redhat-3]
at org.jboss.as.web.WebVirtualHostService.start(WebVirtualHostService.java:98) [jboss-as-web-7.5.7.Final-redhat-3.jar:7.5.7.Final-redhat-3]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_101]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_101]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_101]
Resolution
- Apply cumulative patch 6.4.10+
Root Cause
- This content is not included.BZ-1350259
- This can potentially occur depending upon the ordering of web start up operations when using the org.apache.catalina.connector.WAIT_FOR_BEFORE_START system property
SBR
Components
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.