Bob, It sounds like a permissions problem. Check the settings in the context for "workdir=......." If you have set this, then you must ensure that your tomcat user has rights to that directory also.
Read through the following to see if you missed anything in your setup: http://marc.theaimsgroup.com/?l=tomcat-user&m=108373546715111&w=2 If all else fails, run TC as root, search for the temp directory and check the permissions on the parent directory. Set it and the temp directory to tomcat owner. Doug www.parsonstechnical.com ----- Original Message ----- From: "Bob White" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 20, 2004 2:08 AM Subject: running Tomcat from jsvc daemon under Linux as user tomcat > I am running Tomcat (under Linux) from jsvc daemon as user "tomcat". When I do > this, Tomcat fails to run JSPs because Tomcat cannot create java files in the > work directories and subsequently cannot compile them (cuz they're not there). > > When I run Tomcat using startup.sh as user "root" I have no problems. > > When I run Tomcat using startup.sh as user "tomcat", I can compile at least > some of the java files, but there's another problem with one particular app > which uses css stylesheets and the stylesheets don't get made properly. I'll > worry about that later. > > Of course, the quick solution is to simply invoke startup.sh as root from my > /etc/init.d/tomcat script. But according to instructions > on the Apache site, I'm supposed to be able to run Tomcat as daemon using jsvc. > > But something's amiss. I installed Tomcat as user "tomcat" and user "tomcat" > owns the entire directory tree (ie. /usr/local/tomcat5/...). I put user > "tomcat" into group "tomcat" and group "root" and tried putting the entire > directory tree into both the "tomcat" group and the "root" group. No > difference. > > Any ideas? > > BTW, the exact error message I am getting is: > > java.io.FileNotFoundException: > /usr/local/tomcat5/work/Catalina/localhost/AHEMSS/org/apache/jsp/ahess/ess0_ jsp.java > at java.io.FileOutputStream.open(Native Method) > at java.io.FileOutputStream.(FileOutputStream.java:179) > at java.io.FileOutputStream.(FileOutputStream.java:70) > at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:223) > ... etc.... > > ..Bob. > > ===== > --Bob White-- home:727-490-7363, cell:727-463-6061 > New (popup free!) photos of Polina: http://polina.70kg.com/ > > Everything that irritates us about others can lead us to an understanding of ourselves. - Carl Jung > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
