Summary: | ArrayIndexOutOfBoundsException | ||
---|---|---|---|
Product: | Tomcat 4 | Reporter: | Tracy Pleasant <tracy.pleasant> |
Component: | Jasper | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | major | ||
Priority: | P3 | ||
Version: | 4.1.27 | ||
Target Milestone: | --- | ||
Hardware: | Sun | ||
OS: | other |
Description
Tracy Pleasant
2003-12-17 17:59:35 UTC
There are no issues I am aware of. Without any steps to reproduce the issue, my best guess from looking at the code is the command you are using is somehow malformed. I would suggest that the tomcat-user mailing list is the best place to seek further help. The exception occurs when calling the jspc ant target with a srcdir without a WEB-INF root considering the following directory structure: c: - src - myapp - web - src - build with a simple .jsp file in the web dir. The following ant target wil generate the exception <target name="jsp-compile-test"> <property name="app-dir" value="c:\src\myapp"/> <property name="genjsp" value="${app-dir}/build/gensrc" /> <property name="web" value="${app-dir}/web"/> <delete dir="${genjsp}" failonerror="false"/> <mkdir dir="${genjsp}"/> <jspc destdir="${genjsp}" verbose="1" srcdir="${web}" compiler="jasper41" classpathref="jasper.classpath"> <include name="**/*.jsp"/> </jspc> </target> However, if the dir WEB-INF exists it works fine. Granted, it makes sense that the WEB-INF dir must exist, but a more userfriendly error message would be nice. OS : WinXP Pro sp2 JDK : Sun 1.4.2_08 TOMCAT : 4.1.31 This has been fixed in CVS and will be included in 4.1.32+ |