Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 43779 invoked by uid 500); 6 Sep 2001 12:45:21 -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 43767 invoked from network); 6 Sep 2001 12:45:19 -0000 Message-ID: From: Sachin Shah To: ant-user@jakarta.apache.org Subject: RE: Some one Please help me Date: Thu, 6 Sep 2001 18:21:06 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thanks micheal, =09 you were right but after i set the weblogic.home directory the exception was as follows. Notice the name of the xml file it is looking = for . The DD are named as ejb-jar.xml and weblogic-ejb-jar.xml does this = needs to be changed. [javac] Compiling 3 source files to C:\ant1.4\projects\testANT\testANT\dist\ classes build.ejb: [echo] d:\weblogic [ejbjar] Unable to locate weblogic deployment descriptor. It was = expected to be in C:\ant1.4\projects\testANT\testANT\src\java\checkAirline\dd\weblogic-web= lo gic-ejb-jar.xml [ejbjar] building weblogic.jar with 1 files [ejbjar] Unrecognized publicId -//BEA Systems, Inc.//DTD WebLogic = 5.1.0 EJB// EN - using EJB 1.1 compiler [ejbc] weblogic.ejb.deployment.dd.DescriptorLoaderException: = Received low-l evel error when processing DOM: message was [ejbc] "weblogic.xml.dom.ChildCountException" [ejbc] at weblogic.ejb.deployment.dd.DescriptorLoader.addDOMProcessingE rror(DescriptorLoader.java:1731) [ejbc] at weblogic.ejb.deployment.dd.DescriptorLoader.createEntityBeanD escriptors(DescriptorLoader.java:924) [ejbc] at weblogic.ejb.deployment.dd.DescriptorLoader.createDeploymentU nit(DescriptorLoader.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-l evel error when processing DOM: message was [ejbc] "weblogic.xml.dom.ChildCountException" [ejbc] at weblogic.ejb.deployment.dd.DescriptorLoader.addDOMProcessingE rror(DescriptorLoader.java:1731) [ejbc] at weblogic.ejb.deployment.dd.DescriptorLoader.createSessionBean Descriptors(DescriptorLoader.java:1078) [ejbc] at weblogic.ejb.deployment.dd.DescriptorLoader.createDeploymentU nit(DescriptorLoader.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: ejbc found errors BUILD FAILED C:\ant1.4\projects\testANT\build.xml:104: Exception while calling weblogic.ejbc. Details: Ejbc reported an error -----Original Message----- From: Michael Grindel [mailto:michael.grindel@t-systems.de] Sent: Thursday, September 06, 2001 5:28 PM To: ant-user@jakarta.apache.org Subject: AW: Some one Please help me Sachin, it seems to me that ${weblogic.home} doesn't map to d:\weblogic you may test this by replacing "${weblogic.home}" by "d:\weblogic" michael > -----Urspr=FCngliche Nachricht----- > Von: Sachin Shah [mailto:Sachin_Shah@kaleconsultants.com] > Gesendet am: Donnerstag, 6. September 2001 13:21 > An: ant-user@jakarta.apache.org > Betreff: Some one Please help me > > Hi, > > This is for the 3rd time i m asking the same que. But > sorry but i > couldn't get the thing right. I m trying to build the ejb jar > from the DD > but continueously it is giving the same error even after > using the nested > dtd element as below in ant 1.4 > > > descriptordir=3D"${java.source.dir}/checkAirline/dd"> > 5.1.0 EJB//EN" > > location=3D"${weblogic.home}/classes/weblogic/ejb/deployment/xml > /weblogic-ejb- > jar.dtd"/> > Enterprise JavaBeans > 1.1//EN" > > location=3D"${weblogic.home}/classes/weblogic/ejb/deployment/xml > /ejb-jar.dtd"/ > > > classpath=3D"${weblogic.home}"/> > > > where weblogic.home is d:\weblogic i m running the app in c:\ > > When i try and run the same build file without weblogic > nested element then > it creates the ejb-generic.jar (with classfile and ejb-jar.xml) and > weblogic-generic.jar (without classfile and ejb-jar.xml but not > weblogic-ejb-jar.xml. I get the output as follows. > > C:\ant1.4\projects\testANT>ant > Buildfile: build.xml > > init: > > build.core: > [javac] Compiling 3 source files to > C:\ant1.4\projects\testANT\testANT\dist\ > classes > > build.ejb: > [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 > > BUILD FAILED > > C:\ant1.4\projects\testANT\build.xml:101: SAXException while parsing > 'weblogic-e > jb-jar.xml'. This probably indicates badly-formed XML. > Details: External > entity > not found: "http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd". Total time: 11 seconds if any one has sample it would be useful. Please i m in need of this thing to work out Thanks in advance