File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Running tomcat in linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Running tomcat in linux" Watch "Running tomcat in linux" New topic

Running tomcat in linux

abhijeet srivastava

Joined: Aug 22, 2006
Posts: 26
Hi all!

I have Fedora 6 and apache-tomcat-5.5.25 installed in /usr/local. and jdk1.5.0_09 in same /usr/local. I have set jdk path in etc/profile and is showing correctly.
I have set JAVA_HOME as /usr/local/jdk1.5.0_09.

but when I am starting tomcat by command-
su - tomcat -c /usr/local/apache-tomcat-5.5.25/bin/

it is showing following error-
Using CATALINA_BASE: /usr/local/apache-tomcat-5.5.25
Using CATALINA_HOME: /usr/local/apache-tomcat-5.5.25
Using CATALINA_TMPDIR: /usr/local/apache-tomcat-5.5.25/temp
Using JRE_HOME: /usr/local/jdk1.5.0_09
touch: cannot touch `/usr/local/apache-tomcat-5.5.25/logs/catalina.out': Permission denied
/usr/local/apache-tomcat-5.5.25/bin/ line 273: /usr/local/apache-tomcat-5.5.25/logs/catalina.out: Permission denied

Whats wrong??
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

It looks like your tomcat user doesn't have permission to write to tomcat/logs.
Tomcat needs to be able to write to tomcat/logs and tomcat/work in order to function.
[ September 14, 2007: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Also, we have a Tomcat forum for Tomcat questions.
I'll move this thread there for you.
I agree. Here's the link:
subject: Running tomcat in linux
It's not a secret anymore!