  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | JSVC problems with Tomcat 5.0.19 & Linux | JSVC problems with Tomcat 5.0.19 & Linux 2004-06-01 - By Ashwin Desai
Back Hi,
I am trying to get Tomcat 5.0.19 to run as a non-root user using commons daemon - jsvc on a linux machine.
uname -a Linux rx2600 2.4.20-cgl-1 (See http://cgl-1.ora-code.com).12-mckinley-smp #1 SMP Tue Sep 23 09:21:46 MDT 2003 ia64 unknown
I got the following error in the log file
syscall failed in set_caps service exits with a value of 4
After looking at a few solutions on the internet, I commented out the set_caps(CAPS) & set_caps(CAPSMIN) lines from jsvc-unix.c and tried again.
Now, tomcat started properrly but had problems binding to port 80 (java.net.BindException )
It looks like these set_caps() calls are needed to get the proper permissions to bind to port 80.
/* set capabilities enough for binding port 80 setuid/getuid */ if (set_caps(CAPS)!=0) return(-1);
Anyone else has seen this problem before. Any suggestions/solutions ??
Thanks a lot in advance.
Ashwin.
===== Ashwin Desai.
__ ____ ____ ____ ____ ____ ______ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected) For additional commands, e-mail: tomcat-user-help@(protected)
|
|
 |