Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 44547 invoked from network); 17 Dec 2003 01:11:50 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 17 Dec 2003 01:11:50 -0000 Received: (qmail 22218 invoked by uid 500); 17 Dec 2003 01:11:27 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 21977 invoked by uid 500); 17 Dec 2003 01:11:26 -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 21964 invoked from network); 17 Dec 2003 01:11:25 -0000 Received: from unknown (HELO kant.arcus.com.au) (203.59.8.104) by daedalus.apache.org with SMTP; 17 Dec 2003 01:11:25 -0000 Received: by kant.arcus.com.au with Internet Mail Service (5.5.2650.21) id ; Wed, 17 Dec 2003 09:11:24 +0800 Message-ID: <312522824861D111ABF50000E8D98F1F1A01D7@kant.arcus.com.au> From: Manuel Mall To: 'Ant Users List' Subject: RE: NoClassDefFoundError exception on when is invoked a second time Date: Wed, 17 Dec 2003 09:11:14 +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 Just to close this "sort of" off. I haven't found the source of the problem although I tried to step through it with a Java debugger. In the end it was a native JVM call that returned the "NoClassDefFoundError" error. But why??? Any way, the workaround I used is to remove the definition from the and instead added those classes to the CLASSPATH in the shell script that calls ant. Not nice but solved my problem. Manuel -----Original Message----- From: Manuel Mall [mailto:MM@arcus.com.au] Sent: Thursday, 11 December 2003 17:06 To: 'Ant Users List' Subject: RE: NoClassDefFoundError exception on when is invoked a second time Phillipe, I sent the stack trace in a previous post. Here is a.xml: ... And here is b.xml: ... ... ... -----Original Message----- From: Philippe Valle [mailto:pvalle@eprocess.fr] ... when you do : ant -v a.xml what kind error did you have exactly ? For debug send me a.xml , b.xml and logs. Manuel Mall wrote: >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 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org