https://bz.apache.org/bugzilla/show_bug.cgi?id=63076
Bug ID: 63076 Summary: Jasper (from Ant) throws FileNotFoundException exceptions when building JSPs in subdirectories. Product: Tomcat 9 Version: 9.0.14 Hardware: PC OS: Linux Status: NEW Severity: regression Priority: P2 Component: Jasper Assignee: dev@tomcat.apache.org Reporter: z...@callear.org Target Milestone: ----- When: * The following "build.xml" is used, simplified from that documented at https://tomcat.apache.org/tomcat-9.0-doc/api/org/apache/jasper/JspC.html : ``` <project name="Webapp Precompilation" default="all" basedir="."> <import file="/usr/share/tomcat9/bin/catalina-tasks.xml"/> <target name="jspc"> <jasper failOnError="false" validateXml="false" package="_jsp" uriroot="jsps" outputDir="output"/> </target> <target name="all" depends="jspc"></target> </project> ``` * Some JSP files are inside subdirectories within the "uriroot" ("jsps" in example) directory. * Ant is ran as "ant" (no arguments) from the same directory as the "build.xml" file and the "jsps" directory. Then, for each JSP file inside a subdirectory, Ant logs a FileNotFoundException, where the subdirectory of the JSP file is duplicated in the exception message. For example, if a JSP file is located at "jsps/foo/Bar.jsp", Ant logs "[jasper] SEVERE: org.apache.jasper.JasperException: java.io.FileNotFoundException: File [/foo/foo/Bar.jsp] not found". With the same example JSP file, empty directories are created at "output/_jsp/foo" and "output/_jsp/foo/foo". JSP files not in subdirectories of the "uriroot" work as expected (end up directly inside "output/_jsp"). This works properly in Tomcat 9.0.13. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org