DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18485>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18485 Jasper tries to write something directly to $CATALINA_HOME ------- Additional Comments From [EMAIL PROTECTED] 2003-08-13 13:19 ------- I believe I have a related problem where I can reproduce the error every time. Running 4.1.24 on Sun JVM 1.4.1 on a Linux redhat 7.2. I had a similar stack trace from the jasper compilation and found: --- Nested Exception --- java.io.FileNotFoundException: /files-1687586425 (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:176) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at java.io.FileWriter.<init>(FileWriter.java:73) at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:424) at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:81) at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:840) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317) The file seemed like a temporary one and should probably be prefixed with some temp dir or so... After a lot of head scratching and grief it seems my problem is down to the length of the pathname where tomcat is running. The paths that always breaks for me are: Using CATALINA_BASE: /mnt/test/this/is/a/very/loong/directory/name/sites/www.motogear-info.com/var/tomcat Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.1.24 Using CATALINA_TMPDIR: /mnt/test/this/is/a/very/loong/directory/name/sites/www.motogear-info.com/var/tomcat/temp Using JAVA_HOME: /usr/local/j2sdk1.4.1 If I move the exact same site dirs to something shorter like: Using CATALINA_BASE: /mnt/test/sites/www.motogear-info.com/var/tomcat Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.1.24 Using CATALINA_TMPDIR: /mnt/test/sites/www.motogear-info.com/var/tomcat/temp Using JAVA_HOME: /usr/local/j2sdk1.4.1 Then it works. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]