Bug 60356 - Compiling tagx using JspC as ant task fails when tagx recursive and packaged in jar
Summary: Compiling tagx using JspC as ant task fails when tagx recursive and packaged ...
Alias: None
Product: Tomcat 7
Classification: Unclassified
Component: Jasper (show other bugs)
Version: 7.0.72
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2016-11-10 04:03 UTC by Evan Greensmith
Modified: 2016-11-24 20:08 UTC (History)
0 users

Test Case (362.95 KB, application/x-zip-compressed)
2016-11-10 04:03 UTC, Evan Greensmith

Note You need to log in before you can comment on or make changes to this bug.
Description Evan Greensmith 2016-11-10 04:03:16 UTC
Created attachment 34433 [details]
Test Case

We recently changed the way we distribute out tag libraries, and now package them within a jar file. We have a nightly deploy and test. After this change the deployed server was working fine, but the test compilation of the tag library now fails.

Attached is a cut-down test case that shows the issue. If you run

ant -Dtomcat.dir=PATH_TO_TOMCAT7

you will see the error:
build.xml:38: org.apache.jasper.JasperException: java.io.FileNotFoundException: /META-INF/tags/listitems.tagx

If you take the same war file and deploy it, you can view the welcome page and the tag works as expected. You should see:

<!DOCTYPE html>
    <title>Example of tagx file with self reference packaged in jar</title>
    <p>A list of my favourite things</p>
    <ul><li>raindrops on roses</li><li>whiskers on kittens</li><li>bright copper kettles</li><li>warm wollen mittens</li><li>brown paper packages tied up with string</li></ul>

You don't see this issue if the tagx is not recursive.
Comment 1 Mark Thomas 2016-11-15 14:19:00 UTC
8.0.x onwards not affected.
Comment 2 Mark Thomas 2016-11-24 20:08:38 UTC
Fixed in:
- 7.0.x for 7.0.74 onwards
- 6.0.x for 6.0.49 onwards