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: | Jasper | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 7.0.72 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Attachments: | Test Case |
8.0.x onwards not affected. Fixed in: - 7.0.x for 7.0.74 onwards - 6.0.x for 6.0.49 onwards |
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> <html> <head> <title>Example of tagx file with self reference packaged in jar</title> </head> <body> <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> </body> </html> You don't see this issue if the tagx is not recursive.