The fix is http://svn.apache.org/viewvc?view=rev&revision=685715 The catalina.sh change is the only one you need to apply. Pavel
On Fri, 2008-10-10 at 15:16 -0400, Christopher Schultz wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > All, > > I've been running multiple TC 4.1 and 5.5 instances using CATALINA_BASE > for years, and I'm starting to play with TC 6.x. I use ant to run > bin/startup.sh (actually, I usually go right for "catalina.sh start", > but I went to using startup.sh just to simplify things a bit) and it > does not seem to be working for me. > > Here are the steps I went through: > > 0. I'm using Sun JDK 1.5.0_13-b05 on Gentoo Linux kernel 2.6. > > 1. Installed the tar.gz version of TC 6.0.18 directly from the TC site > (installed into /usr/local/apache-tomcat-6.0.18) > > 2. Created a deployment directory (/home/chris/app/connector-test/8785) > and installed the following directories and files: > /home/chris/app/connector-test/ > /home/chris/app/connector-test/8785 > /home/chris/app/connector-test/8785/conf > /home/chris/app/connector-test/8785/conf/web.xml > /home/chris/app/connector-test/8785/conf/server.xml > /home/chris/app/connector-test/8785/webapps > /home/chris/app/connector-test/8785/logs > /home/chris/app/connector-test/8785/temp > > web.xml and server.xml are identical to the config files from the > distro. All files and directories are owned and writable/executable by > the user who will be launching Tomcat. > > 3. Started tomcat using my ant "tomcat-start" target: > > <echo>=============== > Starting Tomcat > =============== > JAVA_HOME is ${app.java-home} > CATALINA_BASE is ${app.home.dir} > </echo> > > <exec os="Linux" executable="${app.tomcat-home}/bin/startup.sh"> > <env key="JAVA_HOME" value="${app.java-home}" /> > <env key="CATALINA_BASE" value="${app.home.dir}" /> > </exec> > > I added some 'echo' statements to catalina.sh to display the command > ultimately being run, and this is the output: > > tomcat-start: > [echo] =============== > [echo] Starting Tomcat > [echo] =============== > [echo] JAVA_HOME is /usr > [echo] CATALINA_BASE is /home/chris/app/connector-test/8785 > [exec] running command: /usr/bin/java > - -Djava.endorsed.dirs=/usr/local/apache-tomcat-6.0.18/endorsed -classpath > :/usr/local/apache-tomcat-6.0.18/bin/bootstrap.jar > - -Dcatalina.base=/home/chris/app/connector-test/8785 > - -Dcatalina.home=/usr/local/apache-tomcat-6.0.18 > - -Djava.io.tmpdir=/home/chris/app/connector-test/8785/temp > org.apache.catalina.startup.Bootstrap start >> > /home/chris/app/connector-test/8785/logs/catalina.out 2>&1 & > > BUILD SUCCESSFUL > Total time: 1 second > > All the paths are correct and the command looks good to me. > > The result is that I get this and only this in > /home/chris/app/connector-test/8785/logs/catalina.out: > Exception in thread "main" java.lang.NoClassDefFoundError: > > That's right: no exception stack trace. No nothing. Just that one line > of output, and the process dies. > > When running directly from the deployment directory (i.e. NOT using > CATALINA_BASE), startup works as expected. Here is the output from the > standard launch: > Using CATALINA_BASE: /usr/local/apache-tomcat-6.0.18 > Using CATALINA_HOME: /usr/local/apache-tomcat-6.0.18 > Using CATALINA_TMPDIR: /usr/local/apache-tomcat-6.0.18/temp > Using JRE_HOME: /etc/java-config-2/current-system-vm > running command: /etc/java-config-2/current-system-vm/bin/java > - -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager > - > -Djava.util.logging.config.file=/usr/local/apache-tomcat-6.0.18/conf/logging.properties > - -Djava.endorsed.dirs=/usr/local/apache-tomcat-6.0.18/endorsed -classpath > :/usr/local/apache-tomcat-6.0.18/bin/bootstrap.jar > - -Dcatalina.base=/usr/local/apache-tomcat-6.0.18 > - -Dcatalina.home=/usr/local/apache-tomcat-6.0.18 > - -Djava.io.tmpdir=/usr/local/apache-tomcat-6.0.18/temp > org.apache.catalina.startup.Bootstrap start >> > /usr/local/apache-tomcat-6.0.18/logs/catalina.out 2>&1 & > > Obviously there are some differences, here. First, JAVA_HOME is set > differently, but that does not seem to be a problem since they actually > point to the same place (Gentoo has some very configurable Java > installation options). > > Also, the logging configuration looks different. catalina.sh sniffs for > $CATALINA_BASE/conf/logging.properties and adds configuration as > necessary. Since I have no logging.properties, this is also no surprise. > > catalina.base, catalina.home, and the classpath all look correct and > there appear to be no obvious problems. > > Does anyone have any suggestions? > > Thanks, > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iEYEARECAAYFAkjvqhcACgkQ9CaO5/Lv0PDiEQCeMptOzf9KLvvxplUQin1TBAq8 > N10An3gvFy7bIgIetrMS6Wi0dRamjRHd > =ihJl > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]