[Bug 63076] New: Jasper (from Ant) throws FileNotFoundException exceptions when building JSPs in subdirectories.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 63076] New: Jasper (from Ant) throws FileNotFoundException exceptions when building JSPs in subdirectories.

Bugzilla from bugzilla@apache.org
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: [hidden email]
          Reporter: [hidden email]
  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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63076] Jasper (from Ant) throws FileNotFoundException exceptions when building JSPs in subdirectories.

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63076

Zach Callear <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63076] Jasper (from Ant) throws FileNotFoundException exceptions when building JSPs in subdirectories.

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63076

Mark Thomas <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #1 from Mark Thomas <[hidden email]> ---


*** This bug has been marked as a duplicate of bug 63056 ***

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]