Summary: | jsp compiler fails on windows if context docbase is too long | ||
---|---|---|---|
Product: | Tomcat 4 | Reporter: | Pablo Casado <pcasado> |
Component: | Jasper | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | notifications |
Priority: | P3 | ||
Version: | 4.1.24 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All |
Description
Pablo Casado
2003-05-07 12:58:15 UTC
I assume it happens when the command line sent to the compiler gets too long. You could try switching to the in process compiler mode (see the fork init-param of Jasper). In any case, it a limitation introduced by either Ant (which is used as the Java compiler), the OS, or javac, so it cannot be fixed by Tomcat. I can confirm that this is a problem with long paths. I have experienced this and have tracked it down to a problem in Ant. It is triggered by (a) a long javac command line, usually caused by long paths to a lib directory with lots of jars in it, combined with (b) spaces in the path to the Tomcat directory (more specifically to the work directory within the Tomcat directory). The problem is documented in Ant bug 10499. As Joe Boon said, this might in fact be caused by the bug 10499 in ant. the next ant nightly build (http://cvs.apache.org/builds/ant/nightly/2003-06-04) contains a fix for the bug 10499 see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10499 This might solve this issue too. Individual users might want to patch their ant.jar or replace it with the one of the nightly build if they are affected by this problem. |