Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 12-02-2005, 01:26 PM   #1
Registered: Mar 2004
Posts: 47

Rep: Reputation: 15

I am running slackware 10.2,apache 1.33 and php 4. I was interested in putting Tomcat on the server as well. in looking at this tutorial
it mentioned apache 2 as well as the assumption that you are not running virtual hosts.
Are there major difference in how to setup Tomcat since I am using a different apache version and NEED to run virtual servers?
Old 12-02-2005, 02:06 PM   #2
Senior Member
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,778

Rep: Reputation: 210Reputation: 210Reputation: 210
Unfortunately I can't answer your question. I have done what you intend to do on SuSE and other distributions, but it can be a nightmare. The problem is that the connection interface between Apache HTTPD and Apache Jakarta/Tomcat changes too frequently. That means that if you once learned how to do it, it might not help you with the next version. And in my experience not all combinations of Tomcat versions and Apache HTTPD versions are stable.

That's why I switched to Jetty, which has a much friendlier community, a cleaner architecture and much lower footprint. It just lacks the lobby of Tomcat, which is backed by biggies like Sun and IBM. But don't get me wrong: Tomcat itself is not bad. It's just the surroundings and the "politics" that bothered me.

Now, if it has to be Tomcat for you, I'd like to point you to a project that might be of great interest to you (sorry, German only, but just approach the authors for an English version --- they are *very* gentle and helpful!):

Having said that I'd suggest that you ask this question on Tomcat or Apache related forum. This forum is about Slackware, but there's nothing Slackware specific in running Tomcat and Apache HTTPD. Sorry, I just don't remember a URL I could recommend for this.

Good luck!

Old 12-02-2005, 03:20 PM   #3
Registered: Mar 2004
Posts: 47

Original Poster
Rep: Reputation: 15
maybe you can help with this. when i try and run Tomcat i get this but am confused because it does look like i have it set fine

root@hostname:/# su - tomcat -c /usr/local/tomcat/bin/
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program

root@hostname:/# echo $JAVA_HOME

Last edited by kkiedrowski; 12-02-2005 at 03:27 PM.
Old 12-02-2005, 03:23 PM   #4
Senior Member
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
Try leaving out the dash after su, i.e. " su tomcat -c /usr/local/tomcat/bin/"
Old 12-02-2005, 03:25 PM   #5
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 52
Probably tomcat user doesn't have that variable set.
Try this:
su - tomcat -c 'JAVA_HOME=/opt/jdk1.5.0_05/ /usr/local/tomcat/bin/'
Old 12-02-2005, 03:32 PM   #6
Registered: Mar 2004
Posts: 47

Original Poster
Rep: Reputation: 15
ok that was it
i thought i had it set in global variables thought?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
help regarding tomcat farhank Linux - Software 2 03-24-2008 07:00 AM
is it possible for tomcat wangjinyi Programming 3 05-24-2005 01:59 PM
Tomcat 4 simplyrahul Linux - Software 10 10-29-2004 02:31 PM
TOMCAT init script not working on startup -- tomcat 4.x / Mandrake Linux 8.0 jmartinph Mandriva 0 03-08-2004 01:31 AM
Why use Apache with Tomcat rather than just Tomcat itself? davee Linux - Software 1 08-21-2003 09:47 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration