Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 59713 invoked from network); 5 Jul 2006 01:12:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jul 2006 01:12:31 -0000 Received: (qmail 38990 invoked by uid 500); 5 Jul 2006 01:12:28 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 38392 invoked by uid 500); 5 Jul 2006 01:12:26 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 38381 invoked by uid 99); 5 Jul 2006 01:12:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jul 2006 18:12:26 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of carej@us.ibm.com designates 32.97.110.150 as permitted sender) Received: from [32.97.110.150] (HELO e32.co.us.ibm.com) (32.97.110.150) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jul 2006 18:12:25 -0700 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e32.co.us.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k651C3HZ011536 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Tue, 4 Jul 2006 21:12:03 -0400 Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by westrelay02.boulder.ibm.com (8.13.6/NCO/VER7.0) with ESMTP id k651BMer296242 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 4 Jul 2006 19:11:22 -0600 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k651C3tN018186 for ; Tue, 4 Jul 2006 19:12:03 -0600 Received: from d03nm119.boulder.ibm.com (d03nm119.boulder.ibm.com [9.17.195.145]) by d03av03.boulder.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k651C3nC018183 for ; Tue, 4 Jul 2006 19:12:03 -0600 In-Reply-To: <15958916.1152053688429.JavaMail.root@centrmwml02.mgt.cox.net> To: "Ant Users List" Subject: Re: classpath problem using the java task MIME-Version: 1.0 X-Mailer: Lotus Notes Release 7.0 HF85 November 04, 2005 From: Jeffrey E Care Message-ID: Date: Tue, 4 Jul 2006 21:16:29 -0400 X-MIMETrack: Serialize by Router on D03NM119/03/M/IBM(Release 7.0.1HF123 | April 14, 2006) at 07/04/2006 19:16:43, Serialize complete at 07/04/2006 19:16:43 Content-Type: multipart/related; boundary="=_related 0006947F852571A2_=" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --=_related 0006947F852571A2_= Content-Type: multipart/alternative; boundary="=_alternative 00069481852571A2_=" --=_alternative 00069481852571A2_= Content-Type: text/plain; charset="US-ASCII" Check out your property definition for appserver-home. ____________________________________________________________________________________________ Jeffrey E. (Jeff) Care carej@us.ibm.com IBM WebSphere Application Server Development WAS Pyxis Lead Release Engineer Douglas Dunn wrote on 07/04/2006 06:54:48 PM: > Like many programmers, I pride myself in no wasting other > programmer's time by always making a best effort to find my own > answers. BUT, I have just spend almost the entire Forth of July > trying to find out why this VERY BASIC ant project fails. The > problem is that ant cannot find the j2ee.jar extension delivered in > the Java EE 5 (i.e. not part of the core API). I've tried absolutely > everything after hours and hours of exhaustive Internet research. > Many, many times it appeared I found the answer, but it would not work. > > So, here I am. Your help would be greatly appreciated. > > HERE IS THE ANT CODE. NOTHING FOLLOWS; PLEASE EMAIL ME IF YOU WOULD > LIKE TO HELP AND HAVE SOME IDEA. I CANNOT LIST EVERYTHING I HAVE > TRIED, BUT BELIEVE ME I HAVE TRIED EVERYTHING I COULD FIND WHILE > RESEARCHING THE PROBLEM ON THE INTERNET. I EVEN WOULD BE GREATFUL > FOR SOME IDEA HOW TO PRINT THE CLASSPATH THE java TASK IS USING. I > FOUND MANY WAYS TO DO THIS, BUT NONE, NONE OF THEM WORKED FOR ME. > THIS HAS BEEN A REALLY UGLY DAY, AND ON TOP OF IT I READ SOME REALLY > DISTURBING REPLIES FROM THE DEVELOPER'S AT ANT, REPLIES TO OTHER > PEOPLE HAVING SIMILAR PROBLEMS. MANY THANKS IN ADVANCE. > > > > > > > > > > > > > > > > > > > > > > > > > > description="Compiles all .java files in the src directory" > > > > compiler="javac1.5"/> > > > > > description="Copies resource files in the src directory to the > classes directory in preparation for archiving" > > > > > > > > > > description="archive the .class files and other resources > found in the src directory, and create the manifest file" > > > > basedir="build/classes"> > > > > > > > > > > description="Executes main(String[] args) to test build" > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > --=_alternative 00069481852571A2_= Content-Type: text/html; charset="US-ASCII"
Check out your property definition for appserver-home.
____________________________________________________________________________________________
Jeffrey E. (Jeff) Care
IBM WebSphere Application Server Development
WAS Pyxis Lead Release Engineer
WebSphere Mosiac
WebSphere Brandmark



Douglas Dunn <dkdunn@cox.net> wrote on 07/04/2006 06:54:48 PM:

> Like many programmers, I pride myself in no wasting other
> programmer's time by always making a best effort to find my own
> answers. BUT, I have just spend almost the entire Forth of July
> trying to find out why this VERY BASIC ant project fails. The
> problem is that ant cannot find the j2ee.jar extension delivered in
> the Java EE 5 (i.e. not part of the core API). I've tried absolutely
> everything after hours and hours of exhaustive Internet research.
> Many, many times it appeared I found the answer, but it would not work.
>
> So, here I am. Your help would be greatly appreciated.
>
> HERE IS THE ANT CODE. NOTHING FOLLOWS; PLEASE EMAIL ME IF YOU WOULD
> LIKE TO HELP AND HAVE SOME IDEA. I CANNOT LIST EVERYTHING I HAVE
> TRIED, BUT BELIEVE ME I HAVE TRIED EVERYTHING I COULD FIND WHILE
> RESEARCHING THE PROBLEM ON THE INTERNET. I EVEN WOULD BE GREATFUL
> FOR SOME IDEA HOW TO PRINT THE CLASSPATH THE java TASK IS USING. I
> FOUND MANY WAYS TO DO THIS, BUT NONE, NONE OF THEM WORKED FOR ME.
> THIS HAS BEEN A REALLY UGLY DAY, AND ON TOP OF IT I READ SOME REALLY
> DISTURBING REPLIES FROM THE DEVELOPER'S AT ANT, REPLIES TO OTHER
> PEOPLE HAVING SIMILAR PROBLEMS. MANY THANKS IN ADVANCE.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project name="TestHttpServlet"  basedir="." default="run">
>
>     <!-- property names for directories -->
>     <property name="src.dir"     value="src"/>
>     <property name="build.dir"   value="build"/>
>     <property name="classes.dir" value="${build.dir}/classes"/>
>     <property name="jar.dir"     value="${build.dir}/jar"/>
>    
>     <!-- property name for the Main-Class in a JAR manifest -->
>     <property name="main-class"  value="TestHttpServlet"/>    
>    
>     <!-- AS Home -->
>     <property name="appserver-home"  value="c:SunAppServer"/>
>    
>
>
>     <!-- CLEAN -->
>     <target name="clean" description="Delete all generated files">
>          <delete dir="${build.dir}" failonerror="false" />
>     </target>
>    
>
>     <!-- COMPILE -->
>     <target name="compile" depends="clean"
>      description="Compiles all .java files in the src directory"
>     >
>         <mkdir dir="${classes.dir}"/>
>         <javac srcdir="${src.dir}" destdir="${classes.dir}"
> compiler="javac1.5"/>
>     </target>    
>    
>
>     <!-- COPY RESOURCES -->
>     <target name="copy" depends="compile"
>      description="Copies resource files in the src directory to the
> classes directory in preparation for archiving"
>     >
>         <copy todir="${classes.dir}">
>         <fileset dir="${src.dir}" excludes="**/*.java"/>
>         </copy>
>     </target>
>    
>
>     <!-- ARCHIVE -->
>     <target name="jar" depends="copy"
>        description="archive the .class files and other resources
> found in the src directory, and create the manifest file"
>     >
>             <mkdir dir="${jar.dir}"/>
>             <jar destfile="${jar.dir}/${ant.project.name}.jar"
> basedir="build/classes">
>             <manifest>
>                 <attribute name="Main-Class" value="${main-class}"/>
>             </manifest>
>         </jar>
>     </target>
>    
>
>     <!-- TEST -->
>     <!-- NOTE: fork="true" MUST BE used when executing a .jar file -->
>     <target name="run" depends="jar"    
>        description="Executes main(String[] args) to test build"
>     >
>        <java jar="${jar.dir}/${ant.project.name}.jar" fork="true">
>           <classpath>
>              <pathelement location="${appserver.home}/lib/j2ee.jar"/>
>           </classpath>
>        </java>
>    </target>
>    
> </project>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
--=_alternative 00069481852571A2_=-- --=_related 0006947F852571A2_=--