Re: Tomcat 6.0.16 on Linux installation and setup

2008-07-01 Thread kjwchu
Thanks, it works now after I get sudo privilege. The catalina log shows below, but any one tell me if this line "INFO: JK: ajp13 listening on /0.0.0.0:8009" metters? Why does it not show my IP address? Thanks! Jul 1, 2008 11:30:15 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializ

Re: Tomcat 6.0.16 on Linux installation and setup

2008-07-01 Thread Agile Aspect
It should be in the file jsvc.tar.gz which should be in the ./bin directory of Tomcat. If not, then download it again from Apache. Also, there's a switch for jsvc -user to run as another user. Type jsvc --help for other options. Also, read the documentation at http://tomcat.apach

Re: Tomcat 6.0.16 on Linux installation and setup

2008-07-01 Thread Agile Aspect
Sorry, I meant if you're NOT working as root you'll have trouble since writing to system directories requires root privileges. kjwchu wrote: Thanks for the reply. My account is not root account. Now I placed " -pidfile $CATALINA_HOME/temp/jsvc.pid "; but still the same error. [apache-tomcat-6.0

Re: Tomcat 6.0.16 on Linux installation and setup

2008-07-01 Thread kjwchu
I found the link below. It says we should modify jsvc_unix.c and recompile; but I don't have jsvc_unix.c under my CATALINA_HOME. https://issues.apache.org/jira/browse/DAEMON-24?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466233 Agile Aspect wrote: > > If

Re: Tomcat 6.0.16 on Linux installation and setup

2008-07-01 Thread Ole Ersoy
I would try running as root to make sure it's a directory ownership/permission issue. If it runs fine as root, I would download and untar a fresh instance of tomcat (To make sure that Tomcat can read all files it created during the first boot - I think only log files and the pid). Rebuild jsv

Re: Tomcat 6.0.16 on Linux installation and setup

2008-07-01 Thread kjwchu
Thanks for the reply. My account is not root account. Now I placed " -pidfile $CATALINA_HOME/temp/jsvc.pid "; but still the same error. [apache-tomcat-6.0.16]$ ./bin/jsvc -cp ./bin/bootstrap.jar -outfile ./logs/catalina.out -errfile ./logs/catalina.err -pidfile $CATALINA_HOME/temp/jsvc.pid org.ap

Re: Tomcat 6.0.16 on Linux installation and setup

2008-07-01 Thread kjwchu
My account is not root. Now I am getting the syscall failed in set_caps. $ ./bin/jsvc -cp ./bin/bootstrap.jar -outfile ./logs/catalina.out -errfile ./logs/catalina.err -pidfile /tmp/jsvc.pid org.apache.catalina.startup.Bootstrap [EMAIL PROTECTED] apache-tomcat-6.0.16]$ more ./logs/catalina.err 0

Re: Tomcat 6.0.16 on Linux installation and setup

2008-06-30 Thread Bear Giles
You definitely don't want to run tomcat as root! Ideally create a new user and group, e.g., 'tomcat6', and run tomcat as that user. You'll want to change ownership of $CATALINA_HOME and everything it contains to tomcat6. I think debian puts the pid in $CATALINA_HOME/temp/tomcat6.pid. I don'

Re: Tomcat 6.0.16 on Linux installation and setup

2008-06-30 Thread Agile Aspect
If you're working as root, then you don't permission to write into /var/run. Add a flag for pid file to write somewhere where you have permission to write, e.g., /tmp -pidfile /tmp/jsvc.pid kjwchu wrote: Tomcat 6.0.16 on Linux installation and setup My Linux version is:(gcc version 3.4