Tomcat 5 with Apache
Hi Guys,
I know this has been discussed but I searched and cannot find the problem that I am experiencing. Ok, I just want to serve .jsp pages and that's it. So my understanding is that I can use tomcat to hook to apache and the way to do that is to use mod_jk. I have: apache 1.3.26 (work fine) java 1.4.2_05 (work fine) tomcat 5.0.28-src (broken) I've read that you can start the service after unpacking. I ran it like so: /usr/local/jakarta-tomcat-5.0.28-src/jakarta-tomcat-catalina/catalina/src/bin/startup.sh which shows: Using CATALINA_BASE: /usr/local/jakarta-tomcat-5.0.28-src Using CATALINA_HOME: /usr/local/jakarta-tomcat-5.0.28-src Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-5.0.28-src/temp Using JAVA_HOME: /usr/local/java Looks good right? no...I check the logs and I see for catalina.out: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap What does this mean? I've looked on google and haven't found an answer. My environments are: CATALINA_HOME=/usr/local/jakarta-tomcat-5.0.28-src ANT_HOME=/usr/local/apache-ant-1.6.2 CLASSPATH=$ANT_HOME:$CATALINA_HOME:$JAVA_HOME:$TOMCAT_HOME JAVA_HOME=/usr/local/java PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:$JAVA_HOME/bin:/usr/local/apache-ant-1.6.2/bin" I am so clueless at this point. Any help is greatly appreciated. Thank you! -twantrd |
It looks like you may have downloaded the source code instead of the binary that you may want... you might try again using the tomcat binary instead of the source...
|
Hi,
Yes, the binary version is a lot easier I must admit for tomcat. Tomcat works off the bat which is great but trying to get mod_jk to work....now that's a headache. I have downloaded the mod_jk.deb (forgot the actual filename...i can get that to you if you need) and installing it went well but when I try to serve .jsp pages from apache I see the jsp code which is not what I want. Hmm, is mod_jk that difficult to get it to work with apache? -twantrd |
Well, there's plenty of HOW-TOs out on the web for all sorts distros, versions of tomcat and apache...
I've posted a few times on this subject but you may be better off googling to find something specifically suited to your install... http://www.linuxquestions.org/questi...45#post1201545 |
All times are GMT -5. The time now is 09:21 AM. |