Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 95646 invoked by uid 500); 12 Oct 2001 21:31:26 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 95607 invoked from network); 12 Oct 2001 21:31:21 -0000 Message-ID: From: "Murray, Tom" To: "'ant-user@jakarta.apache.org'" Subject: ejbjar and weblogic errors Date: Fri, 12 Oct 2001 17:24:29 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I am using the Weblogic 5.10 sp9 application server. I am trying to use ant 1.4 to build the EJB deploy jar file. Unfortunately, I can keep getting an error when the ejbjar section of the build.xml file is executed. The specific error is: [ejbc] ERROR: Error from ejbc: Bean "DHCP" specified in weblogic-ejb-jar.xml was not found in ejb-jar.xml (Below is the complete ant -debug output) I believe the problem may be with my build.xml file. Essentially, the build.xml creates a build directory, creates build/META-INF, copy *.xml to build/META-INF, compiles the *.java into the build directory and runs the ejbjar section. I am enclosing the contents of the build.xml, weblogic-ejb-jar.xml, ejb-jar.xml and the ant -debug output for the ejbjar section. Any help would be greatly appreciated! Thanks in advance for you help. Tom. I have the following setup: Current directory # ls DHCP.java DHCPBean.java DHCPBeanHome.java DHCPBeanPK.java DHCP-rdbms.xml weblogic-ejb-jar.xml ejb-jar.xml build.xml ####################### # Contents of build.xml ####################### ############################################ CONTENTS of the weblogic-ejb-jar.xml file: ############################################ DHCP 20 0 100 10 Read-Write isModified WebLogic_CMP_RDBMS 5.1.0 META-INF/DHCP-rdbms.xml WebLogic_CMP_RDBMS 5.1.0 DHCPBeanHome #################################### CONTENTS of the ejb-jar.xml file: #################################### DHCP com.uunet.seceng.icq.entity.DHCPBeanHome com.uunet.seceng.icq.entity.DHCP com.uunet.seceng.icq.entity.DHCPBean Container com.uunet.seceng.icq.entity.DHCPBeanPK False dhcpid interfaceid poolname network DHCP Remote * Required ############################### # ant -debug (ejbjar section) ############################### dist: FileSet: Setup file scanner in dir /export/home/murray/ICQ/com/uunet/seceng/icq/entity/build/META-INF with patternSet{ includes: [**/*-ejb-jar.xml] excludes: [**/*-weblogic-ejb-jar.xml] } [ejbjar] 1 deployment descriptors located. [ejbjar] Mapped publicId -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN to resource /weblogic/ejb/deployment/xml/ejb-jar.dtd [ejbjar] Could not resolve ( publicId: -//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN, systemId: http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd) to a local entity FileSet: Setup file scanner in dir /export/home/murray/ICQ/com/uunet/seceng/icq/entity/build with patternSet{ includes: [] excludes: [] } [ejbjar] Mapped publicId -//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN to resource /weblogic/ejb/deployment/xml/weblogic-ejb-jar.dtd [ejbjar] Resolved -//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN to local resource /weblogic/ejb/deployment/xml/weblogic-ejb-jar.dtd Class com.uunet.seceng.icq.entity.DHCPBeanHome loaded from parent loader [ejbjar] looking at interface com.uunet.seceng.icq.entity.DHCPBeanHome [ejbjar] implements javax.ejb.EJBHome Class com.uunet.seceng.icq.entity.DHCPBeanPK loaded from parent loader [ejbjar] looking at class com.uunet.seceng.icq.entity.DHCPBeanPK Class com.uunet.seceng.icq.entity.DHCPBean loaded from parent loader [ejbjar] looking at class com.uunet.seceng.icq.entity.DHCPBean Class com.uunet.seceng.icq.entity.DHCP loaded from parent loader [ejbjar] looking at interface com.uunet.seceng.icq.entity.DHCP [ejbjar] implements javax.ejb.EJBObject [ejbjar] building TESTICQ.jar with 7 files [ejbjar] adding file 'com/uunet/seceng/icq/entity/DHCPBeanHome.class' [ejbjar] adding file 'com/uunet/seceng/icq/entity/DHCPBeanPK.class' [ejbjar] adding file 'com/uunet/seceng/icq/entity/DHCPBean.class' [ejbjar] adding file 'META-INF/ejb-jar.xml' [ejbjar] adding file 'com/uunet/seceng/icq/entity/DHCP.class' [ejbjar] adding file 'META-INF/weblogic-ejb-jar.xml' [ejbjar] adding file 'META-INF/DHCP-rdbms.xml' +Task: java [ejbjar] Unrecognized publicId -//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN - using EJB 1.1 compiler [ejbjar] Calling weblogic.ejbc for /export/home/murray/ICQ/com/uunet/seceng/icq/entity/deploy/TESTICQ-generic.j ar [ejbc] Forking /opt/j2sdk1_3_0_02/jre/../bin/java weblogic.ejbc /export/home/murray/ICQ/com/uunet/seceng/icq/entity/deploy/TESTICQ-generic.j ar /export/home/murray/ICQ/com/uunet/seceng/icq/entity/deploy/TESTICQ.jar Execute:Java13CommandLauncher: /opt/j2sdk1_3_0_02/jre/../bin/java weblogic.ejbc /export/home/murray/ICQ/com/uunet/seceng/icq/entity/deploy/TESTICQ-generic.j ar /export/home/murray/ICQ/com/uunet/seceng/icq/entity/deploy/TESTICQ.jar [ejbc] weblogic.ejb.deployment.dd.DescriptorLoaderException: Received low-level error when processing DOM: message was [ejbc] "weblogic.xml.dom.ChildCountException" [ejbc] at weblogic.ejb.deployment.dd.DescriptorLoader.addDOMProcessingError(Descriptor Loader.java:1731) [ejbc] at weblogic.ejb.deployment.dd.DescriptorLoader.createEntityBeanDescriptors(Desc riptorLoader.java:924) [ejbc] at weblogic.ejb.deployment.dd.DescriptorLoader.createDeploymentUnit(DescriptorL oader.java:259) [ejbc] at weblogic.ejbc.runBody(ejbc.java:299) [ejbc] at weblogic.utils.compiler.Tool.run(Tool.java:80) [ejbc] at weblogic.ejbc.main(ejbc.java:353) [ejbc] weblogic.ejb.deployment.dd.DescriptorLoaderException: Received low-level error when processing DOM: message was [ejbc] "weblogic.xml.dom.ChildCountException" [ejbc] at weblogic.ejb.deployment.dd.DescriptorLoader.addDOMProcessingError(Descriptor Loader.java:1731) [ejbc] at weblogic.ejb.deployment.dd.DescriptorLoader.createSessionBeanDescriptors(Des criptorLoader.java:1078) [ejbc] at weblogic.ejb.deployment.dd.DescriptorLoader.createDeploymentUnit(DescriptorL oader.java:261) [ejbc] at weblogic.ejbc.runBody(ejbc.java:299) [ejbc] at weblogic.utils.compiler.Tool.run(Tool.java:80) [ejbc] at weblogic.ejbc.main(ejbc.java:353) [ejbc] ERROR: Error from ejbc: Received low-level error when processing DOM: message was [ejbc] "weblogic.xml.dom.ChildCountException" [ejbc] ERROR: Error from ejbc: Received low-level error when processing DOM: message was [ejbc] "weblogic.xml.dom.ChildCountException" [ejbc] ERROR: Error from ejbc: Bean "DHCP" specified in weblogic-ejb-jar.xml was not found in [ejbc] ejb-jar.xml [ejbc] ERROR: ejbc found errors