Generic exception - Failed to start service jboss.web.deployment in JBoss EAP 6

Solution Verified - Updated -

Issue

  • Application is failing to deploy in JBoss EAP 6, the only exception in the log is shown below, however it seems the real exception is being hidden:
17:05:55,964 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-1) Error listenerStart
17:05:55,964 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-1) Context [/test-app] startup failed due to previous errors
17:05:55,978 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.web.deployment.default-host./test-app: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./test-app: JBAS018040: Failed to start context
    at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_30]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_30]
    at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30]
  • After migrating our application to JBoss EAP 6.0 we are getting the following error, which is not clear as to the problem:
JBAS018040: Failed to start context
  at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)
  • Critical logging information is not displayed. When trying to launch our web applications, we occasionally have issues with the application content or configuration, and all we get is a cryptic message telling us the application failed to deploy ("Context [/app] startup failed due to previous errors"). No additional information is provided.

  • Even after enable TRACE logging on the root logger of the JBoss Logging we are not getting any useful information.

  • How to get more useful logging in order to find the cause of this deployment failure.

  • Failed to deploy EJB without any explicit cause (Seam App) , seeing this ERROR in the log:

ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Error listenerStart
  • My Spring application is not working correctly upon deployment, but I don't know why. I suspect error messages are missing from the log.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.0

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