The path separator character in linux is : not ; which is why you couldn't find any standard utilities. In linux the ; is a *command* separator character eg
[EMAIL PROTECTED]:~$ cd somedir ; ls
excutes the cd and then the ls



Also, it is much better practice to go PATH=$PATH:$JAVA_HOME - your normal paths will be searched first. Remember that if your JAVA_HOME has spaces embedded in the path name (not a good idea) you should quote it when using it in an expression as above.

Probably the best place to put such things as JAVA_HOME is in the file
$TOMCAT_HOME/bin/setenv.sh - don't forget to make setenv.sh executable by doing a 'chmod u+x setenv.sh' in the bin directory.

If you look at the file $TOMCAT_HOME/bin/startup.sh you will see it checks for the existence of setenv.sh - I put my configuration specific variables there.

Hope that helps

Alan




cuco2772 wrote:
Mary,

When I did something similar to this PATH=$JAVA_HOME/bin;$PATH, editing my
my .bashrc file for my root account and my username account (ubuntu feisty)
the bash shell couldn't find basic
programs such as ls or vim. The only thing that saved this from being a real
nightmare was that I had
multiple terminal windows open as root and was able to edit those back to
having PATH come before
$JAVA_HOME. I'm still having basic setup problems with when I try to access
my localhost:8080/HelloServlet tomcat doesnt find it even though tomcat is
up and running. I've been looking at tomcat configuration but am wondering now if I need to
go back and look at some of these other things youre talking about. I have
mod-jk installed, by the way.
I was wondering if trying resetting the PATH using export, would be a good
idea, without putting it in
my .bashrc files.  I was also thinking of editing my /etc/environment and
putting my classpath for Java
in there. It's very time consuming to guess about these things, though. I
wish there was a way to get
better info. I'm willing to try just about anything now, I've spent a lot of
time on this already.
Any ideas on what I could try ? Thanks



Mary Joseph wrote:
http://wiki.apache.org/tomcat/FAQ/Connectors  -> this would answer your
first question http://mrtextminer.wordpress.com/2007/09/11/installation-of-apache-224-and-tomcat-6014-on-debian-etch/ -> explains how to do the same in linux.
Mary

"Abel MacAdam" <[EMAIL PROTECTED]> 12/17/07 2:05 PM >>>
Hi,

I saw a mail requesting "simple instructions on gettting Tomcat and Apache
working together." The answer is printed out and ready to be processed.
But
I have some follow ups on that mail:
- Why should one connect Tomcat to Apache?
- Should you connect Tomcat 6.0.14 to Apache 2.2.6? (Or is that done
automagically, as I seem not to find the appropriate mod_jk for these
versions)

TIA,
Abel





---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to