Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 99139 invoked from network); 11 Dec 2003 08:30:43 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 11 Dec 2003 08:30:43 -0000 Received: (qmail 60805 invoked by uid 500); 11 Dec 2003 08:30:10 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 60734 invoked by uid 500); 11 Dec 2003 08:30:09 -0000 Mailing-List: contact user-help@ant.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 user@ant.apache.org Received: (qmail 60663 invoked from network); 11 Dec 2003 08:30:08 -0000 Received: from unknown (HELO kant.arcus.com.au) (203.59.8.104) by daedalus.apache.org with SMTP; 11 Dec 2003 08:30:08 -0000 Received: by kant.arcus.com.au with Internet Mail Service (5.5.2650.21) id ; Thu, 11 Dec 2003 16:30:13 +0800 Message-ID: <312522824861D111ABF50000E8D98F1F1A01BF@kant.arcus.com.au> From: Manuel Mall To: 'Ant Users List' Subject: RE: NoClassDefFoundError exception on when is invoked a second time Date: Thu, 11 Dec 2003 16:30:10 +0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Philippe, this is exactly what's puzzling me. How can it be a classpath error when it works the first time around? Manuel -----Original Message----- From: Philippe Valle [mailto:pvalle@eprocess.fr] ... This is an classpath error. Check your classpath Manuel Mall wrote: >I have a buildfile a.xml which calls b.xml through an task a >number of times. b.xml contains a which contains a nested >. > >On the first invocation of b.xml through the task in a.xml >everything works fine. However, the second time around I get a >NoClassDefFoundError exception on the in b.xml. > >I am not sure what I might be doing wrong here. > >Manuel > >Some more info: >=============== >I am using ant 1.5.4.. > >The abbreviated ant output is: >... >jspc: <-- this is the first invocation of b.xml > [echo] Precompiling application internet from >/data01/oscar/internet/htdocs using tomcat in >/usr/local/jakarta-tomcat >... > [javac] Compiling 103 source files to >/data01/oscar/internet/htdocs/WEB-INF/src >... >jspc: <-- this is the second invocation of b.xml > [echo] Precompiling application intranet from >/data01/oscar/intranet/htdocs using tomcat in >/usr/local/jakarta-tomcat > >BUILD FAILED >file:/home/mm/oscar/build_current/b.xml:37: Could not create task of >type: jasper2 due to java.lang.NoClassDefFoundError > >--- > >The taskdef in b.xml looks like: > > > > location="${java.home}/../lib/tools.jar"/> > > > > > > > > > > > > >--- > >I also tried using the latest ant 1.6 beta 3 and it fails the >following error on the second invocation of b.xml: > >BUILD FAILED >/home/mm/oscar/build_current/a.xml:19: Following error occured while >executing this line >java.lang.ExceptionInInitializerError > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org > > > > -- Philippe VALLE Server Project Manager - e'process Tel: +33 (0)4 67 13 84 65 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org