6 Replies Latest reply on May 6, 2003 12:12 PM by glynj

    DeploymentException: Error during deploy

    glynj Newbie

      Hi,

      I'm trying to deploy an ear file to JBoss 3.07-Tomcat 4.1.24. The Java environment is 1.3.1_04. This is an ear file I have successfully deployed to a number of other app servers. The EJB's appear to deploy correctly but the war file fails. Has anyone seen this error before? Any help would be gratefully accepted.

      Excerpt from log file
      -------------------------
      2003-05-06 10:59:00,308 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/D:/jboss-3.0.7/server/rvwebserver/deploy/rvweb.ear
      2003-05-06 10:59:02,822 INFO [org.jboss.deployment.EARDeployer] Init J2EE application: file:/D:/jboss-3.0.7/server/rvwebserver/deploy/rvweb.ear
      2003-05-06 10:59:11,744 INFO [org.jboss.ejb.EjbModule] Creating
      2003-05-06 10:59:11,804 INFO [org.jboss.ejb.EjbModule] Deploying ControllerBean
      2003-05-06 10:59:12,585 INFO [org.jboss.ejb.EjbModule] Deploying SystemConfigurationBean
      2003-05-06 10:59:12,615 INFO [org.jboss.ejb.EjbModule] Deploying PreDealCheckControllerBean
      2003-05-06 10:59:12,655 INFO [org.jboss.ejb.EjbModule] Deploying StandingDataBean
      2003-05-06 10:59:12,685 INFO [org.jboss.ejb.EjbModule] Deploying WhatIfProfileControllerBean
      2003-05-06 10:59:12,705 INFO [org.jboss.ejb.EjbModule] Deploying ExposureProfileControllerBean
      2003-05-06 10:59:12,735 INFO [org.jboss.ejb.EjbModule] Deploying LimitDetailsControllerBean
      2003-05-06 10:59:12,755 INFO [org.jboss.ejb.EjbModule] Deploying JalapinoBean
      2003-05-06 10:59:12,885 INFO [org.jboss.ejb.EjbModule] Deploying APIBean
      2003-05-06 10:59:13,136 INFO [org.jboss.ejb.EjbModule] Created
      2003-05-06 10:59:13,136 INFO [org.jboss.ejb.EjbModule] Starting
      2003-05-06 10:59:13,516 INFO [org.jboss.ejb.EjbModule] Started
      2003-05-06 10:59:15,198 WARN [org.jboss.util.NestedThrowable] Duplicate throwable nesting of same base type: class org.jboss.deployment.DeploymentException is assignable from: class org.jboss.deployment.DeploymentException
      2003-05-06 10:59:15,268 INFO [org.jboss.web.catalina.EmbeddedCatalinaService41] deploy, ctxPath=, warUrl=file:/D:/jboss-3.0.7/server/rvwebserver/tmp/deploy/server/rvwebserver/deploy/rvweb.ear/25.rvweb.ear-contents/rvweb_web.war
      2003-05-06 10:59:15,369 ERROR [org.jboss.deployment.MainDeployer] could not start deployment: file:/D:/jboss-3.0.7/server/rvwebserver/tmp/deploy/server/rvwebserver/deploy/rvweb.ear/25.rvweb.ear-contents/rvweb_web.war
      org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (java.lang.NullPointerException)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:310)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:806)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:656)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:266)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:413)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy2.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:232)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:324)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:221)
      at org.jboss.Main.boot(Main.java:148)
      at org.jboss.Main$1.run(Main.java:381)
      at java.lang.Thread.run(Thread.java:479)
      + nested throwable:
      java.lang.NullPointerException
      at org.jboss.ejb.EjbUtil.resolveLink(EjbUtil.java:82)
      at org.jboss.ejb.EjbUtil.findEjbLink(EjbUtil.java:48)
      at org.jboss.web.AbstractWebContainer.linkEjbRefs(AbstractWebContainer.java:556)
      at org.jboss.web.AbstractWebContainer.parseWebAppDescriptors(AbstractWebContainer.java:461)
      at org.jboss.web.AbstractWebContainer$DescriptorParser.parseWebAppDescriptors(AbstractWebContainer.java:877)
      at org.jboss.web.catalina.EmbeddedCatalinaService41.initENC(EmbeddedCatalinaService41.java:440)
      at org.jboss.web.catalina.EmbeddedCatalinaService41.createWebContext(EmbeddedCatalinaService41.java:427)
      at org.jboss.web.catalina.EmbeddedCatalinaService41.performDeploy(EmbeddedCatalinaService41.java:306)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:301)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:806)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:656)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:266)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:413)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy2.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:232)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:324)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:221)
      at org.jboss.Main.boot(Main.java:148)
      at org.jboss.Main$1.run(Main.java:381)
      at java.lang.Thread.run(Thread.java:479)



        • 1. Re: DeploymentException: Error during deploy
          Adrian Brock Master

          You haven't specified an <ejb-link> for
          your <ejb-ref> or alternatively put a <jndi-name>
          in jboss-web.xml for the <ejb-ref>

          I'm fixing the error reporting so it shows
          a meaningful message.

          Regards,
          Adrian

          • 2. Re: DeploymentException: Error during deploy
            glynj Newbie

            I do have a jndi-name tag in the jboss-web.xml file as shown below but it didn't make any difference.

            <?xml version="1.0" encoding="UTF-8"?>
            <!DOCTYPE jboss-web
            PUBLIC "-//JBoss//DTD Web Application 2.3//EN"
            "http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd">

            <jboss-web>
            <context-root>/</context-root>
            <ejb-ref>
            <ejb-ref-name>Controller</ejb-ref-name>
            <jndi-name>com/misys/riskvision/ejb/Controller</jndi-name>
            </ejb-ref>
            <ejb-ref>
            <ejb-ref-name>SystemConfigurationBean</ejb-ref-name>
            <jndi-name>com/misys/riskvision/ejb/SystemConfiguration</jndi-name>
            </ejb-ref>
            <ejb-ref>
            <ejb-ref-name>PreDealCheckController</ejb-ref-name>
            <jndi-name>com/misys/riskvision/ejb/PreDealCheckController</jndi-name>
            </ejb-ref>
            <ejb-ref>
            <ejb-ref-name>StandingData</ejb-ref-name>
            <jndi-name>com/misys/riskvision/ejb/StandingData</jndi-name>
            </ejb-ref>
            <ejb-ref>
            <ejb-ref-name>WhatIfProfileController</ejb-ref-name>
            <jndi-name>com/misys/riskvision/ejb/WhatIfProfileController</jndi-name>
            </ejb-ref>
            <ejb-ref>
            <ejb-ref-name>ExposureProfileController</ejb-ref-name>
            <jndi-name>com/misys/riskvision/ejb/ExposureProfileController</jndi-name>
            </ejb-ref>
            <ejb-ref>
            <ejb-ref-name>LimitDetailsController</ejb-ref-name>
            <jndi-name>com/misys/riskvision/ejb/LimitDetailsController</jndi-name>
            </ejb-ref>
            <ejb-ref>
            <ejb-ref-name>Jalapino</ejb-ref-name>
            <jndi-name>com/misys/riskvision/ejb/Jalapino</jndi-name>
            </ejb-ref>
            <ejb-ref>
            <ejb-ref-name>API</ejb-ref-name>
            <jndi-name>com/misys/riskvision/ejb/API</jndi-name>
            </ejb-ref>
            </jboss-web>

            • 3. Re: DeploymentException: Error during deploy
              Adrian Brock Master

              Are you sure you have them all specified?

              If you download the latest 3.0
              version from cvs it will tell you which one is wrong
              rather than throwing an NPE. :-(

              cvs ... co -r Branch_3_0 jboss-3.0

              Regards,
              Adrian

              • 4. Re: DeploymentException: Error during deploy
                glynj Newbie

                Yes. They are all specified.

                I'm having trouble getting the source.

                CVS returns

                cvs [log aborted]: recv() from server cvs.sourceforge.net: EOF

                • 5. Re: DeploymentException: Error during deploy
                  glynj Newbie

                  and also

                  cvs [checkout aborted]: recv() from server cvs.sourceforge.net: EOF

                  • 6. Re: DeploymentException: Error during deploy
                    glynj Newbie

                    I finally managed to check out the source code and built it.

                    The error messages are a great improvement and I then tracked down the problem. It was a usual obvious error. The names in the jboss-web.xml didn't match the ejb names in the web.xml file.

                    Thanks that has saved me much stress and time.