Building Tomcat
Hi! I just tried to compile Tomcat on my Fedora 4 box w/o happiness. (using the network download build.xml, jdk1.4_09 and tried jdk5) $ ant ... BUILD FAILED /home/bob/Desktop/t2/build.xml:50: The following error occurred while executing this line: /home/bob/Desktop/t2/jakarta-tomcat-5/build.xml:796: The following error occurred while executing this line: /home/bob/Desktop/t2/jakarta-tomcat-catalina/webapps/docs/build.xml:84: java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.TraXLiaison Before I start digging more, does this ring bells? Thanks! -bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building Tomcat
First time building tomcat ( in a while.) I was following this page, http://tomcat.apache.org/tomcat-5.0-doc/building.html since it recommends ant 1.5, perhaps ant 1.6 has some incompatible changes This is also in the stack, [style] DEPRECATED - xalan processor is deprecated. Use trax instead. [style] DEPRECATED - xslp processor is deprecated. Use trax instead. [style] java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.XslpLiaison I'm focused on 5.0 since 1.4 is what our project runs... but perhaps 5.5 with the compatiblity libs would be a better target if I can get it building. Cheers -bob Marsh David W Maj AFIT/ENG wrote: First time building it, I assume? I had problems as well. Hopefully this helps. __ Make sure you: download/unzip the source code from http://tomcat.apache.org/download-55.cgi (this'll be in your ${tomcat-source} directory), install Subversion via http://subversion.tigris.org/project_packages.html, and follow the directions at http://tomcat.apache.org/tomcat-5.5-doc/building.html, Also the ant build may fail when it gets to jasper because the unzipped code puts the necessary files in the .../jasper/jasper2 directory. Move the code up a directory or change the ant script at line 1419 of ${tomcat.source}/build/build.xml from 1418 1419 to 1418 1419 I don't know the implications of this change versus moving the files. David -Original Message- From: Bob Herrmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 2:08 PM To: dev@tomcat.apache.org Subject: Building Tomcat Hi! I just tried to compile Tomcat on my Fedora 4 box w/o happiness. (using the network download build.xml, jdk1.4_09 and tried jdk5) $ ant ... BUILD FAILED /home/bob/Desktop/t2/build.xml:50: The following error occurred while executing this line: /home/bob/Desktop/t2/jakarta-tomcat-5/build.xml:796: The following error occurred while executing this line: /home/bob/Desktop/t2/jakarta-tomcat-catalina/webapps/docs/build.xml:84: java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.TraXLiaison Before I start digging more, does this ring bells? Thanks! -bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building Tomcat
seems you need both "ant1.5" and "ant1.5" to compile tomcat 5.0 If you first run "ant1.5" (from a clean setup) you will get this error, jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ant/BaseRedirectorHelperTask.java:28: cannot resolve symbol If you first run "ant1.6" (from a clean setup) you will get this error, java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.XslpLiaison The easiest way to get a BUILD_SUCCESS, is to "run ant1.6" until it fails, then "run ant.15" to build success. Although it looks like somebody should try and get tc 5.0 to compile all with either all 1.5 or 1.6 and recommend that on the building.html [1] page. Cheers -bob [1] http://tomcat.apache.org/tomcat-5.0-doc/building.html Bob Herrmann wrote: First time building tomcat ( in a while.) I was following this page, http://tomcat.apache.org/tomcat-5.0-doc/building.html since it recommends ant 1.5, perhaps ant 1.6 has some incompatible changes This is also in the stack, [style] DEPRECATED - xalan processor is deprecated. Use trax instead. [style] DEPRECATED - xslp processor is deprecated. Use trax instead. [style] java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.XslpLiaison I'm focused on 5.0 since 1.4 is what our project runs... but perhaps 5.5 with the compatiblity libs would be a better target if I can get it building. Cheers -bob Marsh David W Maj AFIT/ENG wrote: First time building it, I assume? I had problems as well. Hopefully this helps. __ Make sure you: download/unzip the source code from http://tomcat.apache.org/download-55.cgi (this'll be in your ${tomcat-source} directory), install Subversion via http://subversion.tigris.org/project_packages.html, and follow the directions at http://tomcat.apache.org/tomcat-5.5-doc/building.html, Also the ant build may fail when it gets to jasper because the unzipped code puts the necessary files in the .../jasper/jasper2 directory. Move the code up a directory or change the ant script at line 1419 of ${tomcat.source}/build/build.xml from 1418 1419 to 1418 1419 I don't know the implications of this change versus moving the files. David -Original Message- From: Bob Herrmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 2:08 PM To: dev@tomcat.apache.org Subject: Building Tomcat Hi! I just tried to compile Tomcat on my Fedora 4 box w/o happiness. (using the network download build.xml, jdk1.4_09 and tried jdk5) $ ant ... BUILD FAILED /home/bob/Desktop/t2/build.xml:50: The following error occurred while executing this line: /home/bob/Desktop/t2/jakarta-tomcat-5/build.xml:796: The following error occurred while executing this line: /home/bob/Desktop/t2/jakarta-tomcat-catalina/webapps/docs/build.xml:84: java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.TraXLiaison Before I start digging more, does this ring bells? Thanks! -bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building Tomcat
Thanks Henri. It turns out it might have been an issue related to jpackage.org. Namely that on Linux I expected, export ANT_HOME=/tmp/apache-ant-1.6.5 export PATH=$ANT_HOME/bin:$PATH would run the right version of ant. Alas ant seems to also use this file "/etc/ant.conf" (presumably only on Linux) which ignores the set ANT_HOME and overrides it, unless you run it like this, $ ant --noconfig This kinda blows my mind. And it is unlike the JDK (when you set JAVA_HOME, and add the right one to your path, you get the one you wanted.) -bob Henri Gomez wrote: Did you take a look at jpackage projet www.jpackage.org for prebuild tomcat 5 Rpms ? http://www.jpackage.org/rpm.php?id=2772 2006/1/31, Mladen Turk <[EMAIL PROTECTED]>: Bob Herrmann wrote: seems you need both "ant1.5" and "ant1.5" to compile tomcat 5.0 Come one :) I think you have a serious problems with your setup. If you first run "ant1.5" (from a clean setup) you will get this error, Well, lots of us are building Tomcat on a daily basis, so I would guess that you've tried something no-one ever anticipated. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building Tomcat
yea, I might be bonkers.Now I can't even seem to get to the cvs repo. I vaguely recall an effort to get everything on svn... is this a part of that? $ cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login Logging in to :pserver:[EMAIL PROTECTED]:2401/home/cvspublic CVS password: anoncvs Fatal error, aborting. anoncvs: no such user Mladen Turk wrote: Bob Herrmann wrote: seems you need both "ant1.6" and "ant1.5" to compile tomcat 5.0 Come one :) I think you have a serious problems with your setup. If you first run "ant1.5" (from a clean setup) you will get this error, Well, lots of us are building Tomcat on a daily basis, so I would guess that you've tried something no-one ever anticipated. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building Tomcat
Ok, Is 5.0 a valid build target, or is its usage discouraged? I was following the build instructions for building tomcat 5.0 http://tomcat.apache.org/tomcat-5.0-doc/building.html the build.xml that it provides use CVS tags to extract the 5.0 bits. -bob Mark Thomas wrote: Bob Herrmann wrote: yea, I might be bonkers.Now I can't even seem to get to the cvs repo. I vaguely recall an effort to get everything on svn... is this a part of that? $ cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login Logging in to :pserver:[EMAIL PROTECTED]:2401/home/cvspublic CVS password: anoncvs Fatal error, aborting. anoncvs: no such user cvs has been switched off. Details for accessing svn are on the tomcat website. http://tomcat.apache.org/svn.html Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building Tomcat
Humm. Since the instructions on the page are broken (cvs and not subversion, the build.properties.defaults include sites and urls that are out of date), perhaps the page should be removed. Or a disclaimer should be added to the page saying that the 5.0 series is not actively maintained and that developers should persue the 5.5 line. -bob Mark Thomas wrote: Bob Herrmann wrote: Ok, Is 5.0 a valid build target, or is its usage discouraged? I was following the build instructions for building tomcat 5.0 http://tomcat.apache.org/tomcat-5.0-doc/building.html the build.xml that it provides use CVS tags to extract the 5.0 bits. -bob You can build 5.0 if you need to. You'll just need to modify the build.xml a bit. If you have the choice, go for 5.5. Very little has happened on 5.0 for a while - the focus is on 5.5 and starting 6.0 Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building Tomcat
Thanks! I felt I had it a time or two, but the build script that I use (I'm trying to build a pristine copy) downloads stuff from sourceforge and kept getting into trouble downloading the mx4j bits. Seems like they dropped the mx4j 2.1.0 and you can only get mx4j 2.1.1 - making a truly pristine (ie. md5sum verifyable) version of 5.0 might be very challenging in the future if enough bits rot on the vine. I'm still tinkering with it, should have it working in a few days. I'm planning on posting my patches so they can be used to update the building tomcat 5.0 page. Cheers -bob > Hi! > > Are you still interessted in version 5.0? I've collected all the missing > files manually. There is only a problem when ant is trying to build it. > Perhaps you can solve it. > > build-catalina-core: > [javac] Compiling 326 source files to O:\Diplomarbeit\Tomcat > 5.0.30\jakarta- > tomcat-5.0.30-src\jakarta-tomcat-5\build\classes > [javac] O:\Diplomarbeit\Tomcat > 5.0.30\jakarta-tomcat-5.0.30-src\jakarta-tomc > at-catalina\catalina\src\share\org\apache\catalina\Container.java:23: > cannot > acc > ess javax.servlet.ServletException > [javac] bad class file: O:\Diplomarbeit\Tomcat > 5.0.30\java\servlet-api-2.4\l > ib\servlet-api.jar(javax/servlet/ServletException.class) > [javac] class file has wrong version 49.0, should be 48.0 > [javac] Please remove or make sure it appears in the correct > subdirectory of > the classpath. > [javac] import javax.servlet.ServletException; > [javac] ^ > [javac] 1 error > > BUILD FAILED > O:\Diplomarbeit\Tomcat 5.0.30\jakarta-tomcat-5.0.30-src\build.xml:50: The > follow > ing error occurred while executing this line: > O:\Diplomarbeit\Tomcat > 5.0.30\jakarta-tomcat-5.0.30-src\jakarta-tomcat-5\build.x > ml:447: The following error occurred while executing this line: > O:\Diplomarbeit\Tomcat > 5.0.30\jakarta-tomcat-5.0.30-src\jakarta-tomcat-5\build.x > ml:411: The following error occurred while executing this line: > O:\Diplomarbeit\Tomcat > 5.0.30\jakarta-tomcat-5.0.30-src\jakarta-tomcat-catalina\ > catalina\build.xml:594: Compile failed; see the compiler error output for > detail > s. > > > André > > > > > - Original Message - > From: "Bob Herrmann" <[EMAIL PROTECTED]> > To: "Tomcat Developers List" > Sent: Saturday, February 04, 2006 2:53 AM > Subject: Re: Building Tomcat > > >> >> Humm. Since the instructions on the page are broken (cvs and not >> subversion, the build.properties.defaults include sites and urls that >> are >> out of date), perhaps the page should be removed. Or a disclaimer >> should >> be added to the page saying that the 5.0 series is not actively >> maintained >> and that developers should persue the 5.5 line. >> >> -bob >> >> Mark Thomas wrote: >> >>>Bob Herrmann wrote: >>> >>>>Ok, Is 5.0 a valid build target, or is its usage discouraged? >>>> >>>>I was following the build instructions for building tomcat 5.0 >>>> http://tomcat.apache.org/tomcat-5.0-doc/building.html >>>>the build.xml that it provides use CVS tags to extract the 5.0 bits. >>>> >>>>-bob >>>> >>> >>>You can build 5.0 if you need to. You'll just need to modify the >>>build.xml a bit. If you have the choice, go for 5.5. Very little has >>>happened on 5.0 for a while - the focus is on 5.5 and starting 6.0 >>> >>>Mark >>> >>> >>>- >>>To unsubscribe, e-mail: [EMAIL PROTECTED] >>>For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building Tomcat 5.0
I'm trying to update the build script for 5.0 Has anyone seen this, it seems the 'get' in ant downloads a corrupt file, while the browser or command line tools get it right. ie. $ ant -f b.xml -Dsrc=http://easynews.dl.sourceforge.net/sourceforge/mx4j/mx4j-2.1.1.tar.gz b $ cksum mx4j-2.1.1.tar.gz 768509745 4585483 mx4j-2.1.1.tar.gz $ cksum cksum mx4j-2.1.1.tar.gz-firefox 552602649 4587837 mx4j-2.1.1.tar.gz-mozilla Why do I always get the edge cases? -bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Building Tomcat 5.0 - SUCCESS
I believe I finally got Tomcat 5.0 to build cleanly Fedora 4. I used these 4 files; mktc - drives the whole thing (including blowing away any local copies) build.xml - from the building tomcat 5 page, but modified to use svn not cvs. ( http://tomcat.apache.org/tomcat-5.0-doc/build.xml ) build.properties - to override the default java package base (since Fedora has a full copy of different stuff in /usr/share/java ) build.properties.default - to override sourceforge site, jmx version, struts version Perhaps this can be used to update the "Building Tomcat 5 Page." If I still have commit access ([EMAIL PROTECTED]) I could take a crack at it. I'm kind of surprised that their aren't automated nightly builds (ideally with a watchdog report) for each tomcat version. Cheers -bob base.path=/tmp/share/java #base-sf.loc=http://telia.dl.sourceforge.net/sourceforge base-sf.loc=http://easynews.dl.sourceforge.net/sourceforge # jmx.home=${base.path}/mx4j-2.1.0 jmx.home=${base.path}/mx4j-2.1.1 # jmx.loc=${base-sf.loc}/mx4j/mx4j-2.1.0.tar.gz jmx.loc=${base-sf.loc}/mx4j/mx4j-2.1.1.tar.gz # struts.loc=${base-jakarta.loc}/struts/binaries/jakarta-struts-1.2.4.tar.gz struts.loc=http://archive.apache.org/dist/struts/binaries/jakarta-struts-1.2.4.tar.gz http://svn.apache.org/repos/asf/"; /> http://svn.apache.org/repos/asf/tomcat/servletapi/branches/other/servlet2.4-jsp2.0-tc5.x/TOMCAT_5_0 servletapi"/> http://svn.apache.org/repos/asf/tomcat/build/branches/tc5.0.x/ jakarta-tomcat-5"/> http://svn.apache.org/repos/asf/tomcat/servletapi/branches/other/servlet2.4-jsp2.0-tc5.x/TOMCAT_5_0 jakarta-servletapi-5"/> http://svn.apache.org/repos/asf/tomcat/container/branches/tc5.0.x/ jakarta-tomcat-catalina"/> http://svn.apache.org/repos/asf/tomcat/connectors/branches/tc5.0.x jakarta-tomcat-connectors"/> http://svn.apache.org/repos/asf/tomcat/jasper/branches/tc5.0.x jakarta-tomcat-jasper"/> rm -rf /tmp/share/java rm -rf jakar* servletapi rm -f LICENSE mkdir /tmp/share/java export ANT_HOME=/ul/apache-ant-1.6.5 export PATH=$ANT_HOME/bin:$PATH ant --noconfig build - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]