2 Replies Latest reply on Mar 8, 2013 4:19 AM by Jeremy Whiting

    MDB/EJB deployment error message improvement.

    Jeremy Whiting Expert

      Hi,

      I would like to suggest an improvement to the logging of this exeption. To help users that little extra understand which component configuration is the problem.

       

      This suggestion applies to MDB and EJB. I have a badly configured application (it is now fixed btw.). When deploying this error is thrown.....

       

      20:07:11,958 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.subunit."acne.ear"."acne.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."acne.ear"."acne.jar".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "acne.jar" of deployment "acne.ear"

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_09-icedtea]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_09-icedtea]

              at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09-icedtea]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS014400: Could not load component class

              at org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.deploy(DeploymentDescriptorMethodProcessor.java:79)

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

              ... 5 more

      Caused by: java.lang.ClassNotFoundException:

              at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_09-icedtea]

              at java.lang.Class.forName(Class.java:266) [rt.jar:1.7.0_09-icedtea]

              at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

              at org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.handleSessionBean(DeploymentDescriptorMethodProcessor.java:119)

              at org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.deploy(DeploymentDescriptorMethodProcessor.java:74)

              ... 6 more

       

      Do you think it a good idea to change the message to this?

       

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS014400: Could not load component class for component "org.acne.SpotEJB"

       

      Regards,

      Jeremy