Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please help: weblogic. xml .dom .ChildCountException

 
Ravi Sathish
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers
I am literally frustrated in trying to fix this problem.
All I am trying to deploy is a simple webapp(which is running perfectly in Tomcat 5.0)
Any help will be dearly appreciated.
1> could any of you tell me what changes need to be made for path & classpath to run WLS8.1
####<Mar 13, 2004 1:28:45 AM MST> <Debug> <Deployer> <LINUXLAB14> <myserver> <ExecuteThread: '2' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149078> <Stack trace for message 149004
weblogic.management.ApplicationException:
Exception:weblogic.management.ApplicationException: Prepare failed. Task Id = 1
Module: wrcError: [HTTP:101179][HTTP] Error occurred while parsing descriptor in Web application "F:\bea\weblogic81\server\bin\applications\wrc" [Path="F:\bea\weblogic81\server\bin\applications", URI="wrc"
weblogic.xml.dom.ChildCountException: missing child ejb-ref-name 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:59)
at weblogic.servlet.internal.dd.WebAppDescriptor.<init>(WebAppDescriptor.java:258)
at weblogic.servlet.internal.dd.DescriptorLoader.initializeWebXml(DescriptorLoader.java:717)
at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:418)
at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:327)
at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:560)
at weblogic.j2ee.J2EEApplicationContainer.loadDescriptors(J2EEApplicationContainer.java:1359)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1184)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2602)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2552)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2474)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
 
Marcos Maia
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

weblogic.xml.dom.ChildCountException: missing child ejb-ref-name in ejb-ref

Hi,
it looks like you have a missing tag in the web.xml file, I don't know why tomcat didn't got it cause is mandatory on servlet spec that the deployment descriptor must be valid against the schema(servlet 2.4)or against dtd(servlet 2.3) and looks like tomcad didn't validate it(as far as it's not complaining).
You may take of the ejb-ref declaration from your web.xml or add the child element ejb-ref-name, that problably will fix this problem.
regards.
[ March 14, 2004: Message edited by: Marcos Maia ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic