JSVC problems with Tomcat 5.0.19 Linux
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.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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSVC problems with Tomcat 5.0.19 Linux
Hi Yoav, I know that's how jsvc is supposed to run IDEALLY. However, I am having problems with it on the linux platform that I have listed in my email below. Has anyone else seen these issues ? Any solutions ? Please let me know Thanks, Ashwin. --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Well, you run jsvc as root and it the changes itself the tomcat user. Yoav Shapira Millennium Research Informatics -Original Message- From: Ashwin Desai [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 01, 2004 11:10 AM To: Tomcat Users List Subject: JSVC problems with Tomcat 5.0.19 Linux 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.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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Ashwin Desai. __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.0.5 Webapploader - Null pointer exception.
All, I am getting the following error within 10 minutes of starting Tomcat 4.0.5. 2003-01-28 12:15:51 WebappLoader[] Error tracking modifications java.lang.NullPointerException at java.util.Arrays.sort(java.lang.Object[]) (Arrays.java:1013) (pc 1) at org.apache.naming.resources.FileDirContext.list(java.io.File) (FileDirContext.java:908) (pc 23) at org.apache.naming.resources.FileDirContext.listBindings (FileDirContext.java:367) (pc 30) at org.apache.naming.resources.ProxyDirContext.listBindings(java.lang.String) (ProxyDirContext.java:487) (pc 9) at org.apache.catalina.loader.WebappClassLoader.modified (WebappClassLoader.java:809) (pc 210) at org.apache.catalina.loader.WebappLoader.run (WebappLoader.java:1274) (pc 35) at java.lang.Thread.run (Thread.java:484) (pc 11) This causes my webapplication to crash. I have the reloadable flag set to true in the server.xml file. If I set this flag to false, then I get a different error. 2003-01-28 10:33:32 HttpConnector[80] accept: java.net.SocketException: Too many open files at java.net.PlainSocketImpl.socketAccept (PlainSocketImpl.java) at java.net.PlainSocketImpl.accept (PlainSocketImpl.java:421) (pc 2) at java.net.ServerSocket.implAccept (ServerSocket.java:243) (pc 37) at java.net.ServerSocket.accept (ServerSocket.java:222) (pc 10) at org.apache.catalina.connector.http.HttpConnector.run (HttpConnector.java:993) (pc 9) at java.lang.Thread.run (Thread.java:484) (pc 11) Has anyone seen any problems like these ? Any hints would be greatly appreciated. Thanks Ashwin. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RMI Problem with Tomcat
My servlet connects to a rmi server which is running on the same machine as Tomcat 4.1. But, I get a queer exception NotBoundException at Naming.lookup. I printed out the list of servers bound in the registry using Naming.list and I can see my rmi server listed. So, I am just puzzled as to why the servlet is not able to connect. A standalone program can however connect to the server. I am not using tomcat with the -security flag turned on. I would appreciate any help in this matter. Thanks Ashwin. = Ashwin Desai. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Can I use Tomcat with a JRE ?
Hi, In my application, I use pre-compiled jsps and package the webapplication as a WAR file. I would like to use JRE 1.3.1 with Tomcat 4.0. Since I am using the JRE, there will be no jar executable available. Will Tomcat be able to extract the WAR file without the 'jar' executable ? Thanks a lot in advance Ashwin. = Ashwin Desai. __ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org