Yes, tomcat:tomcat is the owner:group of the entire tree
I touched as tomcat and works ok.
I modified to 751 the entire tree.
Same results.
*********************This is my tomcatd*************************
#!/bin/sh
# Sartup script for the Jakarta Tomcat Java Servlets and JSP server
#
# chkconfig: - 85 15
# description: Jakarta Tomcat Java Servlets and JSP server
# processname: tomcat
# pidfile: /var/run/tomcat.pid
# config:
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
# Set Tomcat environment.
export
CLASSPATH=.:/usr/java/jdk1.5.0_08/lib/tools.jar:/usr/java/jdk1.5.0_08/jr
e/lib/rt.jar
export CATALINA_HOME=/usr/tomcat
export CATALINA_OPTS="-server -Xms64m -Xmx512m
-Dbuild.compiler.emacs=true"
export JAVA_HOME=/usr/java/jdk1.5.0_08
[ -f /usr/tomcat/bin/startup.sh ] || exit 0
[ -f /usr/tomcat/bin/shutdown.sh ] || exit 0
export PATH=$PATH:/usr/bin:/usr/local/bin
# See how we were called.
case "$1" in
start)
# Start daemon.
echo -n "Starting Tomcat: "
su tomcat -c /usr/tomcat/bin/startup.sh
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch /var/lock/subsys/tomcat
;;
stop)
# Stop daemons.
echo -n "Shutting down Tomcat: "
su tomcat -c /usr/tomcat/bin/shutdown.sh
RETVAL=$?
echo
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/tomcat
;;
restart)
$0 stop
$0 start
;;
condrestart)
[ -e /var/lock/subsys/tomcat ] && $0 restart
;;
status)
status tomcat
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
esac
exit 0
******************This is my log*******************
[EMAIL PROTECTED] logs]# cat localhost.2006-10-18.log
Oct 18, 2006 1:41:02 PM org.apache.catalina.core.StandardContext
loadOnStartup
SEVERE: Servlet /MCS threw load() exception
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:850)
at
com.gvr.fms.core.util.FileUtils.createFile(FileUtils.java:168)
at
com.gvr.fms.core.util.FileUtils.createIfNotExists(FileUtils.java:176)
at com.gvr.fms.core.io.XFile.openForWrite(XFile.java:44)
at com.gvr.fms.core.io.XFile.openForWrite(XFile.java:28)
at
com.gvr.fms.core.util.logging.FilePublisher.createCurrentFile(FilePublis
her.java:79)
at
com.gvr.fms.core.util.logging.FilePublisher.open(FilePublisher.java:42)
at
com.gvr.fms.core.util.logging.Logger.configure(Logger.java:33)
at
com.gvr.fms.core.application.Application.configLogger(Application.java:1
25)
at
com.gvr.fms.core.application.Application.startup(Application.java:99)
at
com.gvr.fms.core.application.Application.startupWebApplication(Applicati
on.java:37)
at
com.gvr.fms.core.web.CentricServlet.startApplication(CentricServlet.java
:70)
at
com.gvr.fms.core.web.CentricServlet.init(CentricServlet.java:41)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:1105)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3917)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4201
)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:759)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
608)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
:535)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31
0)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:119)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
-----Original Message-----
From: Nelson, Tracy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 18, 2006 1:14 PM
To: Tomcat Users List
Subject: RE: cannot write to disk
Is the owner:group of your logs directory also tomcat:tomcat? You might
want to try to su to tomcat and touch(1) a file in the logs directory.
You might also want to chmod 751 on the whole tomcat tree, it could save
you from more troubleshooting later.
---
Tracy Nelson / Nelnet Business Solutions
402 / 617-9449
| -----Original Message-----
| From: Asensio, Rodrigo [mailto:[EMAIL PROTECTED]
| Sent: Wednesday, 18 October, 2006 10:21
| To: Tomcat Users List
| Subject: cannot write to disk
|
| hi guys
| I have a
| Fedora 5
| Tomcat 5517
| JDK Sun 1508
|
| my tomcat is running as daemon as tomcat user
|
| the owner of my tomcat installation folders is tomcat:tomcat but when
| my servlet starts he want to write to tomcat/logs (my own
logs)
| and seems that I do not have permission.
|
| any clue ?
|
|
| -------------------------------------------------------------------
| Rodrigo Asensio
| Fuel Management Services
| Gilbarco Veeder Root
| phone: +1 336 547 5023
| email: [EMAIL PROTECTED]
| <mailto:[EMAIL PROTECTED]>
|
|
|
| This message (including any attachments) contains confidential and/or
| proprietary information intended only for the addressee.
| Any unauthorized disclosure, copying, distribution or reliance on the
| contents of this information is strictly prohibited and may constitute
| a violation of law. If you are not the intended recipient, please
| notify the sender immediately by responding to this e-mail, and delete
| the message from your system. If you have any questions about this
| e-mail please notify the sender immediately.
The information contained in this message is confidential
proprietary property of FACTS/Nelnet Business Solutions. Any
reproduction,
forwarding, or copying without the express
permission of FACTS/Nelnet Business Solutions is strictly prohibited. If
you have
received this communication in error, please notify us
immediately by replying to this e-mail.
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected] To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This message (including any attachments) contains confidential
and/or proprietary information intended only for the addressee.
Any unauthorized disclosure, copying, distribution or reliance on
the contents of this information is strictly prohibited and may
constitute a violation of law. If you are not the intended
recipient, please notify the sender immediately by responding to
this e-mail, and delete the message from your system. If you
have any questions about this e-mail please notify the sender
immediately.
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]