Meaningless Drivel is fun!
The moose likes BEA/Weblogic and the fly likes Please help: weblogic. xml .dom .ChildCountException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Please help: weblogic. xml .dom .ChildCountException" Watch "Please help: weblogic. xml .dom .ChildCountException" New topic

Please help: weblogic. xml .dom .ChildCountException

Ravi Sathish
Ranch Hand

Joined: Feb 26, 2002
Posts: 131
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 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(
at weblogic.xml.dom.DOMUtils.getValueByTagName(
at weblogic.servlet.internal.dd.EJBReference.<init>(
at weblogic.servlet.internal.dd.WebAppDescriptor.<init>(
at weblogic.servlet.internal.dd.DescriptorLoader.initializeWebXml(
at weblogic.servlet.internal.dd.DescriptorLoader.<init>(
at weblogic.servlet.internal.dd.DescriptorLoader.<init>(
at weblogic.servlet.internal.WebAppModule.loadDescriptor(
at weblogic.j2ee.J2EEApplicationContainer.loadDescriptors(
at weblogic.j2ee.J2EEApplicationContainer.prepare(
at weblogic.j2ee.J2EEApplicationContainer.prepare(
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(
at weblogic.kernel.ExecuteThread.execute(
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977

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

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.
[ March 14, 2004: Message edited by: Marcos Maia ]
I agree. Here's the link:
subject: Please help: weblogic. xml .dom .ChildCountException
It's not a secret anymore!