Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 43296 invoked by uid 500); 30 Aug 2001 12:34:56 -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 42859 invoked from network); 30 Aug 2001 12:34:41 -0000 Message-ID: From: Sachin Shah To: ant-user@jakarta.apache.org Subject: RE: Using EJB Task Date: Thu, 30 Aug 2001 18:07:53 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C13150.CD897CF0" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C13150.CD897CF0 Content-Type: text/plain; charset="iso-8859-1" hi again, i tried adding the dtd nested element to specify the location of the dtd file as follow but i m getting the following errror when i run the build. build.ejb: [ejbjar] 1 deployment descriptors located. [ejbjar] Unable to locate weblogic deployment descriptor. It was expected to be in C:\ant1.3\projects\testANT\testANT\src\java\checkAirline\ejb-weblogic-ejb- jar.xml [ejbjar] Could not load class CheckAirlineBean for super class check [ejbjar] Could not load class CheckAirline for super class check [ejbjar] Could not load class CheckAirlineHome for super class check [ejbjar] building ejb.jar with 4 files [ejbjar] adding file 'CheckAirlineBean.class' [ejbjar] adding file 'META-INF/ejb-jar.xml' [ejbjar] adding file 'CheckAirline.class' [ejbjar] adding file 'CheckAirlineHome.class' [ejbjar] Calling weblogic.ejbc for C:\ant1.3\projects\testANT\testANT\src\jav a\ejb-generic.jar [ejbc] Forking java weblogic.ejbc C:\ant1.3\projects\testANT\testANT\src\ja va\ejb-generic.jar C:\ant1.3\projects\testANT\testANT\src\java\ejb.jar [ejbc] ERROR: Error from ejbc: The JNDI name of bean CheckAirlineBean was n ot set [ejbc] ERROR: Error from ejbc: No JNDI name set for the referenced resource factory for reference jdbc/oraclePool of type javax.sql.DataSource [ejbc] ERROR: ejbc found errors [ejbc] Java Result: 1 [ejbjar] deleting generic jar C:\ant1.3\projects\testANT\testANT\src\java\ejb -generic.jar build: BUILD SUCCESSFUL As you might have noticed there is not mapping message being displayed and it's not able to find the CheckAirline even if it is present in ${javac.dest} directory. The jndi name is also mentioned in the DD. Attaching the xml file for your reference. -----Original Message----- From: Conor MacNeill [mailto:conor@cortexebusiness.com.au] Sent: Tuesday, August 28, 2001 7:46 PM To: ant-user@jakarta.apache.org Subject: Re: Using EJB Task Have you read the documentation? Try here http://jakarta.apache.org/ant/manual/OptionalTasks/ejb.html That is the 1.3 documentation. You can also download the 1.4 Beta (Beta 2) and check out a few changes. Finally, the zip file here http://jakarta.apache.org/~conor/ejb-naming.zip has examples of the naming conventions which you can use with ejb-jar task. As to your specific problem, you should be using the nested elements to tell where to find you local DTDs so it doesn't try to find them over the net. Conor ----- Original Message ----- From: "Sachin Shah" To: Sent: Wednesday, August 29, 2001 12:08 AM Subject: Using EJB Task > Hi , > > Can anyone guide me as to how to go about using EJBTasks for > creating EJB jars. I tried compiling the same, but it is giving me external > entity could not be found for the DTD reference made to weblogic site. I > don't want to change my Deployment Descriptors. > > Thanks > Sachin > ------_=_NextPart_000_01C13150.CD897CF0 Content-Type: application/octet-stream; name="weblogic-ejb-jar.xml" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="weblogic-ejb-jar.xml" CheckAirlineBean jdbc/oraclePool weblogic.jdbc.jts.oraclePool =09 checkAirline =09 ------_=_NextPart_000_01C13150.CD897CF0--