wood burning stoves 2.0*
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


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Running tomcat in linux" Watch "Running tomcat in linux" New topic
Author

Running tomcat in linux

abhijeet srivastava
Greenhorn

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/startup.sh

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/catalina.sh: line 273: /usr/local/apache-tomcat-5.5.25/logs/catalina.out: Permission denied

Whats wrong??
Ben Souther
Sheriff

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
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Also, we have a Tomcat forum for Tomcat questions.
I'll move this thread there for you.
 
GeeCON Prague 2014
 
subject: Running tomcat in linux