3 Replies Latest reply on Jun 24, 2003 10:55 PM by 3004

    Error starting WL - weblogic.xml.dom.ChildCountException: missing child home in ejb-ref

    3004

      hi,
      i get this following error when i start the WL 7.0. The web application fails
      to start but the ejbs are started properly. This is an example from the Monson
      Haefel book, on the CMP: Entity bean relationships.

      Can anybody tell me what is happening ??

      -thanks
      -vasanth


      Error log:
      =============

      <Error> <HTTP> <101179> <[HTTP] Error parsing des criptor in Web appplication
      "C:\bea\user_projects\mydomain\.\myserver\.wlnotdele
      te\titan\titan.war" [Path="C:\eclipse\workspace\titan4\dist\titan.ear", URI="tit
      an.war"
      weblogic.xml.dom.ChildCountException: missing child home in ejb-ref
              at weblogic.xml.dom.DOMUtils.getElementByTagName(DOMUtils.java:147)
              at weblogic.xml.dom.DOMUtils.getValueByTagName(DOMUtils.java:128)
              at weblogic.servlet.internal.dd.EJBReference.<init>(EJBReference.java:61
      )
              at weblogic.servlet.internal.dd.WebAppDescriptor.<init>(WebAppDescriptor
      .java:247)
              at weblogic.servlet.internal.dd.DescriptorLoader.initializeWebXml(Descri
      ptorLoader.java:540)
              at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
      .java:253)
              at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
      .java:215)
              at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.ja
      va:282)
              at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
      er.java:714)
              at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
      er.java:555)
              at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
      er.java:458)
              at weblogic.management.deploy.slave.SlaveDeployer.prepareAllStagedApplic
      ations(SlaveDeployer.java:490)
              at weblogic.management.deploy.slave.SlaveDeployer.initialize(SlaveDeploy
      er.java:253)
              at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.initi
      alize(DeploymentManagerServerLifeCycleImpl.java:150)
              at weblogic.t3.srvr.ServerLifeCycleList.initialize(ServerLifeCycleList.j
      ava:54)
              at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:782)
              at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
              at weblogic.Server.main(Server.java:32)
      >
      <Jun 23, 2003 10:10:51 AM CDT> <Error> <Deployer> <149205> <The Slave Deployer
      f
      ailed to initialize the application titan due to error weblogic.management.Appli
      cationException: Prepare failed. Task Id = null
      {
      Module Name: titan.war, Error: Could not load web application from 'C:\bea\user_
      projects\mydomain\.\myserver\.wlnotdelete\titan\titan.war'
      }.
      weblogic.management.ApplicationException: Prepare failed. Task Id = null
      {
      Module Name: titan.war, Error: Could not load web application from 'C:\bea\user_
      projects\mydomain\.\myserver\.wlnotdelete\titan\titan.war'
      }
      at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
      er.java:720)
      at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
      er.java:555)
      at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
      er.java:458)
      at weblogic.management.deploy.slave.SlaveDeployer.prepareAllStagedApplic
      ations(SlaveDeployer.java:490)
      at weblogic.management.deploy.slave.SlaveDeployer.initialize(SlaveDeploy
      er.java:253)
      at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.initi
      alize(DeploymentManagerServerLifeCycleImpl.java:150)
      at weblogic.t3.srvr.ServerLifeCycleList.initialize(ServerLifeCycleList.j
      ava:54)
      at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:782)
      at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
      at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
      at weblogic.Server.main(Server.java:32)
      >
        • 1. Re: Error starting WL - weblogic.xml.dom.ChildCountException: missing child home in ejb-ref
          3004
          Seems like titan.war's WEB-INF/web.xml has an ejb-ref element with a missing
          <home> element .

          see http://e-docs/wls/docs81/webapp/web_xml.html#1020090

          "Vasanth" <vasanthakumar@worldnet.att.net> wrote in message
          news:3ef722bc@newsgroups.bea.com...
          >
          hi,
          i get this following error when i start the WL 7.0. The web application
          fails
          to start but the ejbs are started properly. This is an example from the
          Monson
          Haefel book, on the CMP: Entity bean relationships.

          Can anybody tell me what is happening ??

          -thanks
          -vasanth


          Error log:
          =============

          <Error> <HTTP> <101179> <[HTTP] Error parsing des criptor in Web
          appplication
          "C:\bea\user_projects\mydomain\.\myserver\.wlnotdele
          te\titan\titan.war" [Path="C:\eclipse\workspace\titan4\dist\titan.ear",
          URI="tit
          an.war"
          weblogic.xml.dom.ChildCountException: missing child home in ejb-ref
          at
          weblogic.xml.dom.DOMUtils.getElementByTagName(DOMUtils.java:147)
          at weblogic.xml.dom.DOMUtils.getValueByTagName(DOMUtils.java:128)
          at
          weblogic.servlet.internal.dd.EJBReference.<init>(EJBReference.java:61
          )
          at
          weblogic.servlet.internal.dd.WebAppDescriptor.<init>(WebAppDescriptor
          java:247)
          at
          weblogic.servlet.internal.dd.DescriptorLoader.initializeWebXml(Descri
          ptorLoader.java:540)
          at
          weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
          java:253)
          at
          weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
          java:215)
          at
          weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.ja
          va:282)
          at
          weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
          er.java:714)
          at
          weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
          er.java:555)
          at
          weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
          er.java:458)
          at
          weblogic.management.deploy.slave.SlaveDeployer.prepareAllStagedApplic
          ations(SlaveDeployer.java:490)
          at
          weblogic.management.deploy.slave.SlaveDeployer.initialize(SlaveDeploy
          er.java:253)
          at
          weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.initi
          alize(DeploymentManagerServerLifeCycleImpl.java:150)
          at
          weblogic.t3.srvr.ServerLifeCycleList.initialize(ServerLifeCycleList.j
          ava:54)
          at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:782)
          at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
          at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
          at weblogic.Server.main(Server.java:32)
          >
          <Jun 23, 2003 10:10:51 AM CDT> <Error> <Deployer> <149205> <The Slave
          Deployer
          f
          ailed to initialize the application titan due to error
          weblogic.management.Appli
          cationException: Prepare failed. Task Id = null
          {
          Module Name: titan.war, Error: Could not load web application from
          'C:\bea\user_
          projects\mydomain\.\myserver\.wlnotdelete\titan\titan.war'
          }.
          weblogic.management.ApplicationException: Prepare failed. Task Id = null
          {
          Module Name: titan.war, Error: Could not load web application from
          'C:\bea\user_
          projects\mydomain\.\myserver\.wlnotdelete\titan\titan.war'
          }
          at
          weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
          er.java:720)
          at
          weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
          er.java:555)
          at
          weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
          er.java:458)
          at
          weblogic.management.deploy.slave.SlaveDeployer.prepareAllStagedApplic
          ations(SlaveDeployer.java:490)
          at
          weblogic.management.deploy.slave.SlaveDeployer.initialize(SlaveDeploy
          er.java:253)
          at
          weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.initi
          alize(DeploymentManagerServerLifeCycleImpl.java:150)
          at
          weblogic.t3.srvr.ServerLifeCycleList.initialize(ServerLifeCycleList.j
          ava:54)
          at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:782)
          at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
          at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
          at weblogic.Server.main(Server.java:32)
          >
          • 2. Re: Error starting WL - weblogic.xml.dom.ChildCountException: missing child home in ejb-ref
            3004
            correct url for doc...

            http://e-docs.bea.com/wls/docs81/webapp/web_xml.html#1020090


            "Sanjeev Chopra" <post@newsgroup.com> wrote in message
            news:3ef79dbf$1@newsgroups.bea.com...
            Seems like titan.war's WEB-INF/web.xml has an ejb-ref element with a
            missing
            <home> element .

            see http://e-docs/wls/docs81/webapp/web_xml.html#1020090

            "Vasanth" <vasanthakumar@worldnet.att.net> wrote in message
            news:3ef722bc@newsgroups.bea.com...
            hi,
            i get this following error when i start the WL 7.0. The web application
            fails
            to start but the ejbs are started properly. This is an example from the
            Monson
            Haefel book, on the CMP: Entity bean relationships.

            Can anybody tell me what is happening ??

            -thanks
            -vasanth


            Error log:
            =============

            <Error> <HTTP> <101179> <[HTTP] Error parsing des criptor in Web
            appplication
            "C:\bea\user_projects\mydomain\.\myserver\.wlnotdele
            te\titan\titan.war" [Path="C:\eclipse\workspace\titan4\dist\titan.ear",
            URI="tit
            an.war"
            weblogic.xml.dom.ChildCountException: missing child home in ejb-ref
            at
            weblogic.xml.dom.DOMUtils.getElementByTagName(DOMUtils.java:147)
            at
            weblogic.xml.dom.DOMUtils.getValueByTagName(DOMUtils.java:128)
            at
            weblogic.servlet.internal.dd.EJBReference.<init>(EJBReference.java:61
            )
            at
            weblogic.servlet.internal.dd.WebAppDescriptor.<init>(WebAppDescriptor
            java:247)
            at
            weblogic.servlet.internal.dd.DescriptorLoader.initializeWebXml(Descri
            ptorLoader.java:540)
            at
            weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
            java:253)
            at
            weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
            java:215)
            at
            weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.ja
            va:282)
            at
            weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
            er.java:714)
            at
            weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
            er.java:555)
            at
            weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
            er.java:458)
            at
            weblogic.management.deploy.slave.SlaveDeployer.prepareAllStagedApplic
            ations(SlaveDeployer.java:490)
            at
            weblogic.management.deploy.slave.SlaveDeployer.initialize(SlaveDeploy
            er.java:253)
            at
            weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.initi
            alize(DeploymentManagerServerLifeCycleImpl.java:150)
            at
            weblogic.t3.srvr.ServerLifeCycleList.initialize(ServerLifeCycleList.j
            ava:54)
            at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:782)
            at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
            at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
            at weblogic.Server.main(Server.java:32)
            >
            <Jun 23, 2003 10:10:51 AM CDT> <Error> <Deployer> <149205> <The Slave
            Deployer
            f
            ailed to initialize the application titan due to error
            weblogic.management.Appli
            cationException: Prepare failed. Task Id = null
            {
            Module Name: titan.war, Error: Could not load web application from
            'C:\bea\user_
            projects\mydomain\.\myserver\.wlnotdelete\titan\titan.war'
            }.
            weblogic.management.ApplicationException: Prepare failed. Task Id = null
            {
            Module Name: titan.war, Error: Could not load web application from
            'C:\bea\user_
            projects\mydomain\.\myserver\.wlnotdelete\titan\titan.war'
            }
            at
            weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
            er.java:720)
            at
            weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
            er.java:555)
            at
            weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
            er.java:458)
            at
            weblogic.management.deploy.slave.SlaveDeployer.prepareAllStagedApplic
            ations(SlaveDeployer.java:490)
            at
            weblogic.management.deploy.slave.SlaveDeployer.initialize(SlaveDeploy
            er.java:253)
            at
            weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.initi
            alize(DeploymentManagerServerLifeCycleImpl.java:150)
            at
            weblogic.t3.srvr.ServerLifeCycleList.initialize(ServerLifeCycleList.j
            ava:54)
            at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:782)
            at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
            at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
            at weblogic.Server.main(Server.java:32)
            >
            • 3. Re: Error starting WL - weblogic.xml.dom.ChildCountException: missing child home in ejb-ref
              3004

              It is working now.
              For a local entity bean, i was using <ejb-ref> instead of <local-ejb-ref>
              Once i changed that, it worlked.
              thanks
              -vasanth

              "Sanjeev Chopra" <post@newsgroup.com> wrote:
              correct url for doc...

              http://e-docs.bea.com/wls/docs81/webapp/web_xml.html#1020090


              "Sanjeev Chopra" <post@newsgroup.com> wrote in message
              news:3ef79dbf$1@newsgroups.bea.com...
              Seems like titan.war's WEB-INF/web.xml has an ejb-ref element with
              a
              missing
              <home> element .

              see http://e-docs/wls/docs81/webapp/web_xml.html#1020090

              "Vasanth" <vasanthakumar@worldnet.att.net> wrote in message
              news:3ef722bc@newsgroups.bea.com...
              hi,
              i get this following error when i start the WL 7.0. The web application
              fails
              to start but the ejbs are started properly. This is an example from
              the
              Monson
              Haefel book, on the CMP: Entity bean relationships.

              Can anybody tell me what is happening ??

              -thanks
              -vasanth


              Error log:
              =============

              <Error> <HTTP> <101179> <[HTTP] Error parsing des criptor in Web
              appplication
              "C:\bea\user_projects\mydomain\.\myserver\.wlnotdele
              te\titan\titan.war" [Path="C:\eclipse\workspace\titan4\dist\titan.ear",
              URI="tit
              an.war"
              weblogic.xml.dom.ChildCountException: missing child home in ejb-ref
              at
              weblogic.xml.dom.DOMUtils.getElementByTagName(DOMUtils.java:147)
              at
              weblogic.xml.dom.DOMUtils.getValueByTagName(DOMUtils.java:128)
              at
              weblogic.servlet.internal.dd.EJBReference.<init>(EJBReference.java:61
              )
              at
              weblogic.servlet.internal.dd.WebAppDescriptor.<init>(WebAppDescriptor
              java:247)
              at
              weblogic.servlet.internal.dd.DescriptorLoader.initializeWebXml(Descri
              ptorLoader.java:540)
              at
              weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
              java:253)
              at
              weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
              java:215)
              at
              weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.ja
              va:282)
              at
              weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
              er.java:714)
              at
              weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
              er.java:555)
              at
              weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
              er.java:458)
              at
              weblogic.management.deploy.slave.SlaveDeployer.prepareAllStagedApplic
              ations(SlaveDeployer.java:490)
              at
              weblogic.management.deploy.slave.SlaveDeployer.initialize(SlaveDeploy
              er.java:253)
              at
              weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.initi
              alize(DeploymentManagerServerLifeCycleImpl.java:150)
              at
              weblogic.t3.srvr.ServerLifeCycleList.initialize(ServerLifeCycleList.j
              ava:54)
              at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:782)
              at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
              at weblogic.Server.main(Server.java:32)
              >
              <Jun 23, 2003 10:10:51 AM CDT> <Error> <Deployer> <149205> <The Slave
              Deployer
              f
              ailed to initialize the application titan due to error
              weblogic.management.Appli
              cationException: Prepare failed. Task Id = null
              {
              Module Name: titan.war, Error: Could not load web application from
              'C:\bea\user_
              projects\mydomain\.\myserver\.wlnotdelete\titan\titan.war'
              }.
              weblogic.management.ApplicationException: Prepare failed. Task Id
              = null
              {
              Module Name: titan.war, Error: Could not load web application from
              'C:\bea\user_
              projects\mydomain\.\myserver\.wlnotdelete\titan\titan.war'
              }
              at
              weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
              er.java:720)
              at
              weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
              er.java:555)
              at
              weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
              er.java:458)
              at
              weblogic.management.deploy.slave.SlaveDeployer.prepareAllStagedApplic
              ations(SlaveDeployer.java:490)
              at
              weblogic.management.deploy.slave.SlaveDeployer.initialize(SlaveDeploy
              er.java:253)
              at
              weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.initi
              alize(DeploymentManagerServerLifeCycleImpl.java:150)
              at
              weblogic.t3.srvr.ServerLifeCycleList.initialize(ServerLifeCycleList.j
              ava:54)
              at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:782)
              at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
              at weblogic.Server.main(Server.java:32)
              >