Operating System - HP-UX
1833692 Members
5205 Online
110062 Solutions
New Discussion

Re: tomcat deamon doesn't be started

 
???_185
Regular Advisor

tomcat deamon doesn't be started

$ ls
bootstrap.jar digest.sh setclasspath.sh tomcat-jni.jar
catalina.bat jasper.bat setenv.sh tool-wrapper.bat
catalina.sh jasper.sh shutdown.bat tool-wrapper.sh
commons-daemon.jar jspc.bat shutdown.sh
cpappend.bat jspc.sh startup.bat
digest.bat setclasspath.bat startup.sh
$ ./startup.sh
Error: User starting Tomcat is not www.
Please start Tomcat as www or change permissions on
/opt/hpws/tomcat/logs,
/opt/hpws/tomcat/webappss and
/opt/hpws/tomcat/work directories.
(for more information see tomcat.user.guide)

how can I fix this?

thanks
5 REPLIES 5
Alex Lavrov.
Honored Contributor

Re: tomcat deamon doesn't be started

Do exactly what it says to do. Your tomcat is configured to start as user "www", so only this user should start it. Or, probably your tomcat directories are not "www".

If you don't want it to run as "www", configure it to use another user in tomcat's config files and change the permissions of the directories.

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Vibhor Kumar Agarwal
Esteemed Contributor

Re: tomcat deamon doesn't be started

Change the ownership of directories to www.
Vibhor Kumar Agarwal
???_185
Regular Advisor

Re: tomcat deamon doesn't be started

when I started tomcat start daemon, it failed.
what is the problem?

www@biz:/]# id
uid=30(www) gid=1(other)
www@biz:/]# cd opt/hpws/tomcat/bin
www@biz:/opt/hpws/tomcat/bin]# ./startup.sh
Using CATALINA_BASE: /opt/hpws/tomcat
Using CATALINA_HOME: /opt/hpws/tomcat
Using CATALINA_TMPDIR: /opt/hpws/tomcat/temp
Using JAVA_HOME: /opt/java1.3/jre
touch: cannot change times on /opt/hpws/tomcat/logs/catalina.out
./catalina.sh[207]: /opt/hpws/tomcat/logs/catalina.out: Cannot create the specified file.
RAC_1
Honored Contributor

Re: tomcat deamon doesn't be started

Again, check the perms on files/dirs. tomcat is not able to create a certain file.
There is no substitute to HARDWORK
Alex Lavrov.
Honored Contributor

Re: tomcat deamon doesn't be started

Paste the output of:

ls -l /opt/hpws/tomcat/logs/catalina.out
I don't give a damn for a man that can only spell a word one way. (M. Twain)