Re: Tomcat install errors
I'm iafraind I don't understand. Where should the line be? I've done the following mkdir dir=${tomcat-dbcp.home}/src/java/org/apache/tomcat/dbcp / move todir=${tomcat-dbcp.home}/src/java/org/apache/tomcat/dbcp fileset dir=${tomcat-dbcp.home}/src/java/org/apache/commons/ fileset dir=${tomcat-dbcp.home}/src/java/org/apache/commons/ include name=**/*.java / /fileset /move But this is the result: BUILD FAILED /home/tomcat/build.xml:49: The following error occurred while executing this line: /home/tomcat/jakarta-tomcat-5/build.xml:1901: The following error occurred while executing this line: /home/tomcat/jakarta-tomcat-5/build.xml:670: The following error occurred while executing this line: /home/tomcat/jakarta-tomcat-5/build.xml:682: The following error occurred while executing this line: /home/tomcat/jakarta-tomcat-5/build.xml:718: Cannot replace directory /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/dbcp with directory /usr/share/java/tomcat-deps/src/java/org/apache/commons Total time: 8 seconds [EMAIL PROTECTED]:/home/tomcat# On 5/8/05, Kent R. Spillner [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, FL- I just encountered the same problem building tomcat that you reported on tomcat-user@ last week. In my case, I'm trying to install tomcat 5.5.9 on Mac OS X 10.4, using darwinports. Personally, I think removing both the mkdir move tasks is risky; tomcat-dbcp obviously wants the commons source code to be relocated to an org.apache.tomcat.dbcp subpackage. I would be worried that while this might allow tomcat to build, it will cause breakage during normal use. Instead, add an explicit include to the fileset inside the problematic move task, i.e.: fileset dir=${tomcat-dbcp.home}/src/java/org/ apache/commons/ include name=**/*.java / /fileset HTH, Kent socrates:~ sl4mmy$ uname -a Darwin socrates.local 8.0.0 Darwin Kernel Version 8.0.0: Sat Mar 26 14:15:22 PST 2005; root:xnu-792.obj~1/RELEASE_PPC Power Macintosh powerpc socrates:~ sl4mmy$ java -version java version 1.5.0_02 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-56) Java HotSpot(TM) Client VM (build 1.5.0_02-36, mixed mode, sharing) socrates:~ sl4mmy$ ant -version Apache Ant version 1.6.3 compiled on April 28 2005 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFCfn/R2DzcNcFR0iwRAk01AJ9S+f02D10AVeAdB6dCox69ACj+RACgjJhr gCS3ihcRGhEXhDaZ47dvoBw= =/WEP -END PGP SIGNATURE-
Re: Tomcat install errors
Attempting to put the include inside the move element, one has the following error: BUILD FAILED /home/tomcat/build.xml:49: The following error occurred while executing this line: /home/tomcat/jakarta-tomcat-5/build.xml:1896: The following error occurred while executing this line: /home/tomcat/jakarta-tomcat-5/build.xml:670: The following error occurred while executing this line: /home/tomcat/jakarta-tomcat-5/build.xml:682: The following error occurred while executing this line: /home/tomcat/jakarta-tomcat-5/build.xml:718: The move type doesn't support the nested include element. On 5/8/05, FL [EMAIL PROTECTED] wrote: I'm iafraind I don't understand. Where should the line be? I've done the following mkdir dir=${tomcat-dbcp.home}/src/java/org/apache/tomcat/dbcp / move todir=${tomcat-dbcp.home}/src/java/org/apache/tomcat/dbcp fileset dir=${tomcat-dbcp.home}/src/java/org/apache/commons/ fileset dir=${tomcat-dbcp.home}/src/java/org/apache/commons/ include name=**/*.java / /fileset /move But this is the result: BUILD FAILED /home/tomcat/build.xml:49: The following error occurred while executing this line: /home/tomcat/jakarta-tomcat-5/build.xml:1901: The following error occurred while executing this line: /home/tomcat/jakarta-tomcat-5/build.xml:670: The following error occurred while executing this line: /home/tomcat/jakarta-tomcat-5/build.xml:682: The following error occurred while executing this line: /home/tomcat/jakarta-tomcat-5/build.xml:718: Cannot replace directory /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/dbcp with directory /usr/share/java/tomcat-deps/src/java/org/apache/commons Total time: 8 seconds [EMAIL PROTECTED]:/home/tomcat# On 5/8/05, Kent R. Spillner [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, FL- I just encountered the same problem building tomcat that you reported on tomcat-user@ last week. In my case, I'm trying to install tomcat 5.5.9 on Mac OS X 10.4, using darwinports. Personally, I think removing both the mkdir move tasks is risky; tomcat-dbcp obviously wants the commons source code to be relocated to an org.apache.tomcat.dbcp subpackage. I would be worried that while this might allow tomcat to build, it will cause breakage during normal use. Instead, add an explicit include to the fileset inside the problematic move task, i.e.: fileset dir=${tomcat-dbcp.home}/src/java/org/ apache/commons/ include name=**/*.java / /fileset HTH, Kent socrates:~ sl4mmy$ uname -a Darwin socrates.local 8.0.0 Darwin Kernel Version 8.0.0: Sat Mar 26 14:15:22 PST 2005; root:xnu-792.obj~1/RELEASE_PPC Power Macintosh powerpc socrates:~ sl4mmy$ java -version java version 1.5.0_02 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-56) Java HotSpot(TM) Client VM (build 1.5.0_02-36, mixed mode, sharing) socrates:~ sl4mmy$ ant -version Apache Ant version 1.6.3 compiled on April 28 2005 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFCfn/R2DzcNcFR0iwRAk01AJ9S+f02D10AVeAdB6dCox69ACj+RACgjJhr gCS3ihcRGhEXhDaZ47dvoBw= =/WEP -END PGP SIGNATURE-
Re: Tomcat install errors
Problem solved: On 5/8/05, Kent R. Spillner [EMAIL PROTECTED] wrote: - - - -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, FL- On May 8, 2005, at 5:09 PM, FL wrote: I'm afraid I don't understand. Where should the line be? Doh; sorry. I should have been more clear. I've done the following mkdir dir=${tomcat-dbcp.home}/src/java/org/apache/tomcat/ dbcp / move todir=${tomcat-dbcp.home}/src/java/org/apache/tomcat/ dbcp fileset dir=${tomcat-dbcp.home}/src/java/org/ apache/commons/ fileset dir=${tomcat-dbcp.home}/src/java/org/apache/commons/ include name=**/*.java / /fileset /move You're on the right track, but you don't want to keep the first fileset. An oversight... So, this: mkdir dir=${tomcat-dbcp.home}/src/java/org/apache/tomcat/dbcp / move todir=${tomcat-dbcp.home}/src/java/org/apache/tomcat/dbcp fileset dir=${tomcat-dbcp.home}/src/java/org/apache/commons / /move Becomes this: mkdir dir=${tomcat-dbcp.home}/src/java/org/apache/tomcat/dbcp / move todir=${tomcat-dbcp.home}/src/java/org/apache/tomcat/dbcp fileset dir=${tomcat-dbcp.home}/src/java/org/apache/commons include name=**/*.java / /fileset /move It's that first, empty fileset that is causing the problems; could be a bug in ant? Aha: that works. I did try it that way (without the /fileset) and the empty fileset did cause trouble. Thank you! Let me know if you need any more help with this! Best, Kent - - - -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFCfpY62DzcNcFR0iwRAiqyAKCqT6Z0YsQ4Vpi5S8dIwey0VG+2FACdGjoA ZjKLrS+tDz/dNuK7AuKBdLA= =j1ji - - - -END PGP SIGNATURE-