Bug 60356

Summary: Compiling tagx using JspC as ant task fails when tagx recursive and packaged in jar
Product: Tomcat 7 Reporter: Evan Greensmith <evan.greensmith>
Component: JasperAssignee: Tomcat Developers Mailing List <dev>
Severity: normal    
Priority: P2    
Version: 7.0.72   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: Test Case

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