Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 15557 invoked from network); 1 Nov 2001 21:38:52 -0000 Received: from unknown (HELO osaka.betaversion.org) (192.18.49.133) by daedalus.apache.org with SMTP; 1 Nov 2001 21:38:52 -0000 Received: (qmail 21976 invoked from network); 1 Nov 2001 21:41:11 -0000 Received: from nagoya.betaversion.org (192.18.49.131) by osaka.betaversion.org with SMTP; 1 Nov 2001 21:41:11 -0000 Received: (qmail 3947 invoked by uid 97); 1 Nov 2001 21:38:40 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 3918 invoked by uid 97); 1 Nov 2001 21:38:39 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 3907 invoked from network); 1 Nov 2001 21:38:38 -0000 X-Originating-IP: [65.201.130.3] From: "Todd Chambery" To: "Ant Users List" References: <20011101210349.52501.qmail@web21003.mail.yahoo.com> Subject: Re: Ant & EJB Date: Thu, 1 Nov 2001 16:38:46 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: X-OriginalArrivalTime: 01 Nov 2001 21:38:39.0195 (UTC) FILETIME=[91A75AB0:01C1631D] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I believe your problem lies in the nested tag: The refid has to refer to the string literal name of the id of a (class)path tag. Ex. ... ... ... hope that helps Todd ----- Original Message ----- From: "Andrew Close" To: "Ant Users List" Sent: Thursday, November 01, 2001 4:03 PM Subject: RE: Ant & EJB > i'm currently getting the following error: > > build_ejb_jar: > > BUILD FAILED > > D:\Development\Marketing\build.xml:69: Reference > D:\java\lib\j2ee.jar;D:\WebGain\Bea\wlserver6.1lib\weblogic.jar;.;D:\Develop ment\Build\Marketing\Deployment\com > not found. > > using the build.xml down below. i'm not sure if i > have my references(classpath and such) set up > correctly. i did try running the build.xml without > the weblogic classpath tag and ejbc actually ran, but > it failed because it couldn't load superclasses. if > the classpath variable is set then ant doesn't seem to > find anything in it... any help would be appreciated. > and if you find i'm doing something grossly wrong or > just weird elsewhere in the script please feel free to > point it out to me. :) i'm always interested in > learning new and better ways to do things. thanks > again. > > andy > > > > build.xml: > > basedir="."> > > > value="D:\Development\Build\Marketing" /> > value="${src.dir}\Deployment" /> > value="${src.dir}\Deployment\WebApp\WEB-INF\classes" > /> > value="D:\java\lib\j2ee.jar;D:\WebGain\Bea\wlserver6.1\lib\weblogic.jar;." > /> > > > value="D:\Program Files\Microsoft Visual > Studio\VSS\win32" /> > value="D:\WebGain\Bea\wlserver6.1\config\mydomain\applications" > /> > > > > > > > > > > > > > > > > recursive="true" > login="LocalBuild, LocalBuild" > vsspath="/MKTG" > ssdir="${source.safe.dir}" > writable="false"/> > > > > includes="com\**" > excludes="WebApp\**,WebAppClasses\**" > destdir="${output_com}" > > debug="on" > /> > > > > > depends="compile_com"> > includes="WebAppClasses\**" > excludes="com\**,WebApp\**" > destdir="${output_webappclasses}" > debug="on" > /> > > > > depends="compile_webappclasses"> > > > > > > > > > > descriptordir="${output_com}\META-INF" > srcdir="${output_com}\com" > destdir="${output_com}\Ear" > basejarname="ejb_mkt"> > destdir="${output_com}\Ear" > newCMP="true" > noEJBC="false"> > refid="${project.classpath};${output_com}\com" /> > > > > > > > > webxml="${src.dir}\Deployment\WebApp\Web-inf\web.xml"> > dir="${src.dir}\deployment\WebApp"/> > > > > > basedir="${dist}\ear\" > /> > > > > > > > > > > > > > > --- "Mercado, Tony" wrote: > > Andrew, > > > > The following example successfully builds a number > > of EJB's using ejbjar (I > > changed actual names we use in our project): > > > > > > > > > > > descriptordir="${src.dir}/xml/META-INF" > > srcdir="${dev.classes.dir}" > > destdir="${dev.ejb.dir}" > > basejarname="serviceEJB"> > > > newCMP="true"> > > > > > > > > > > > > > > > > > > > > This small snippet of ant assumes that you have two > > files in > > ${src.dir}/xml/META-INF. Specifically, ejb-jar.xml > > & weblogic-ejb-jar.xml. > > Note that I am also using a number of other > > "references" in this example: > > project.classpath, as well as the references to the > > directories. These > > "references" need to be set prior to their use. > > > > Good Luck! > > > > Tony Mercado > > KMV, LLC > > 415.352.3046 > > mercado@kmv.com > > > > > > __________________________________________________ > Do You Yahoo!? > Make a great connection at Yahoo! Personals. > http://personals.yahoo.com > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > -- To unsubscribe, e-mail: For additional commands, e-mail: