Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 91497 invoked by uid 500); 21 Mar 2001 12:52:08 -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 88451 invoked from network); 21 Mar 2001 12:47:31 -0000 Message-ID: <20010321124731.4783.qmail@web11303.mail.yahoo.com> Date: Wed, 21 Mar 2001 12:47:31 +0000 (GMT) From: =?iso-8859-1?q?k=20Adjei?= Subject: RE: PROBLEM WITH ANT WHEN CREATING EJB-JARS To: ant-user@jakarta.apache.org Cc: "'john.dubchak@monsanto.com'" In-Reply-To: <7DD644F73E07D4119C050008C78678C102C7C140@exchq2.cinfin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N I am currently having some problems when I jar up ejbs with ejbjar subtask in weblogic I keep getting this reading on the dos prompt can any one tell what I am doing wrong : [ejbjar] Unable to locate weblogic deployment descriptor. It was expected to be in E:\appls\win32 \weblogic5.1\examples\ejb\basic\containerManaged\ejb-weblogic-ejb-jar.xml [ejbjar] Could not load class examples.ejb.basic.containerManaged.AccountBean for super class che ck [ejbjar] building ejb.jar with 4 files [ejbc] ERROR: Error from ejbc: The JNDI name of bean containerManaged was not set [ejbc] ERROR: ejbc found errors [ejbc] Java Result: 1 [ejbjar] Unable to locate weblogic deployment descriptor. It was expected to be in E:\appls\win32 \weblogic5.1\examples\ejb\basic\containerManaged\weblogic-weblogic-ejb-jar.xml [ejbjar] building weblogic.jar with 1 files [ejbc] org.xml.sax.SAXException: Could not locate a local resource corresponding to public Id - //BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB RDBMS Persistence//EN. [ejbc] Is the XML DOCTYPE header correct? [ejbc] at weblogic.ejb.deployment.xml.EJBEntityResolver.resolveEntity(EJBEntityResolver.jav a:55) [ejbc] at com.sun.xml.parser.ExternalEntity.getInputSource(ExternalEntity.java:46) [ejbc] at com.sun.xml.parser.Parser.pushReader(Parser.java:2748) [ejbc] at com.sun.xml.parser.Parser.externalParameterEntity(Parser.java:2500) [ejbc] at com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1136) [ejbc] at com.sun.xml.parser.Parser.parseInternal(Parser.java:480) [ejbc] at com.sun.xml.parser.Parser.parse(Parser.java:283) [ejbc] at weblogic.xml.dom.SunDOMParser.getDocument(SunDOMParser.java:69) [ejbc] at weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:102) [ejbc] at weblogic.ejb.deployment.dd.DescriptorLoader.(DescriptorLoader.java:151) [ejbc] at weblogic.ejbc.runBody(ejbc.java, Compiled Code) [ejbc] at weblogic.utils.compiler.Tool.run(Tool.java:80) [ejbc] at weblogic.ejbc.main(ejbc.java:353) [ejbc] --------------- nested within: ------------------ [ejbc] Received SAXException from Sun Parser: org.xml.sax.SAXException: Could not locate a loca l resource corresponding to public Id -//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB RDBMS Persistence //EN. [ejbc] Is the XML DOCTYPE header correct? [ejbc] at weblogic.xml.dom.SunDOMParser.getDocument(SunDOMParser.java:72) [ejbc] at weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:102) [ejbc] at weblogic.ejb.deployment.dd.DescriptorLoader.(DescriptorLoader.java:151) [ejbc] at weblogic.ejbc.runBody(ejbc.java, Compiled Code) [ejbc] at weblogic.utils.compiler.Tool.run(Tool.java:80) [ejbc] at weblogic.ejbc.main(ejbc.java:353) [ejbc] ERROR: Received SAXException from Sun Parser: org.xml.sax.SAXException: Could not locate a local resource corresponding to public Id -//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB RDBMS Pers istence//EN. [ejbc] Is the XML DOCTYPE header correct? [ejbc] Java Result: 1 [ejbjar] Unable to locate weblogic deployment descriptor. It was expected to be in E:\appls\win32 \weblogic5.1\examples\ejb\basic\containerManaged\weblogic-weblogic-ejb-jar.xml [ejbjar] building weblogic.jar with 1 files [ejbc] weblogic.ejb.deployment.dd.DescriptorLoaderException: Received low-level error when proc essing DOM: message was [ejbc] "weblogic.xml.dom.ChildCountException" [ejbc] at weblogic.ejb.deployment.dd.DescriptorLoader.addDOMProcessingError(DescriptorLoade r.java:1731) [ejbc] at weblogic.ejb.deployment.dd.DescriptorLoader.createEntityBeanDescriptors(Descripto rLoader.java, Compiled Code) [ejbc] at weblogic.ejb.deployment.dd.DescriptorLoader.createDeploymentUnit(DescriptorLoader .java:259) [ejbc] at weblogic.ejbc.runBody(ejbc.java, Compiled Code) [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 proc essing DOM: message was [ejbc] "weblogic.xml.dom.ChildCountException" [ejbc] at weblogic.ejb.deployment.dd.DescriptorLoader.addDOMProcessingError(DescriptorLoade r.java:1731) [ejbc] at weblogic.ejb.deployment.dd.DescriptorLoader.createSessionBeanDescriptors(Descript orLoader.java, Compiled Code) [ejbc] at weblogic.ejb.deployment.dd.DescriptorLoader.createDeploymentUnit(DescriptorLoader .java:261) [ejbc] at weblogic.ejbc.runBody(ejbc.java, Compiled Code) [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 [ejbc] Java Result: 1 --- "Mills, Maurice" wrote: > John, > > I am working on an ejbjar subtask for JBoss. I am > using it myself right now > and it appears to be working fine. I have given it > to another user as well > for testing. > > If you are interested, I can send it to you also. > > Maury > > -----Original Message----- > From: DUBCHAK, JOHN [Non-Pharmacia/1000] > [mailto:john.dubchak@monsanto.com] > Sent: Tuesday, March 20, 2001 1:39 PM > To: 'ant-user@jakarta.apache.org' > Subject: RE: Creating an EJB jar file > > > Daniel, > > Thanks for the reply. Just for clarification > though, the EJBJAR tasks and > associated subtasks are for Weblogic only, correct? > Therefore, to jar up > something for JBoss, using this class and directory > structure: > > com/mycompany/package/HomeClass.class > com/mycompany/package/RemoteClass.class > com/mycompany/package/BeanClass.class > META-INF/ejb-jar.xml > META-INF/jboss.xml > META-INF/Manifest.mf > > would the EJBJAR task be used? Reading the > documentation still leaves this > question unclear to me. > > Thanks, > John > > -----Original Message----- > From: Daniel Hoppe [mailto:hoppe@sitewaerts.de] > Sent: Tuesday, March 20, 2001 11:38 AM > To: 'ant-user@jakarta.apache.org' > Subject: AW: Creating an EJB jar file > > > Hi John, > > check out the optional tasks, there is a great > EJBJAR task which produces > vanilla ejb jars. There are nested elements for > WebLogic 5.1, WebLogic 6.0 > and TopLink. > > Cheers, > > Daniel > > > > -----Urspr�ngliche Nachricht----- > Von: DUBCHAK, JOHN [Non-Pharmacia/1000] > [mailto:john.dubchak@monsanto.com] > Gesendet: Dienstag, 20. M�rz 2001 17:42 > An: 'ant' > Betreff: Creating an EJB jar file > > > Hi, > > Forgive me for a new comer-like question, but I was > having difficulty doing > this and thought there might be many on the list who > have done this > before... > > I have a "jar" task in my build.xml file that jar's > up all of the .class > files associated with an EJB. I want to also add > the deployment descriptor > and container specific xml file from the META-INF > directory of the project. > Is there a way to this as part of the original jar > task? > > The only solution I found was to create a zipfileset > that zips/jars the EJB > .class files and then adds the deployment > descriptors. Is this the correct > approach, or are others doing it differently? > > Thanks in advance, > John ____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie