tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 60356] New: Compiling tagx using JspC as ant task fails when tagx recursive and packaged in jar
Date Thu, 10 Nov 2016 04:03:16 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=60356

            Bug ID: 60356
           Summary: Compiling tagx using JspC as ant task fails when tagx
                    recursive and packaged in jar
           Product: Tomcat 7
           Version: 7.0.72
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
          Assignee: dev@tomcat.apache.org
          Reporter: evan.greensmith@exari.com
  Target Milestone: ---

Created attachment 34433
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34433&action=edit
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message