tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 53032] New: Ant Jasper task fails to run when using XML namespaces; no output; no errors
Date Tue, 03 Apr 2012 21:41:35 GMT

             Bug #: 53032
           Summary: Ant Jasper task fails to run when using XML
                    namespaces; no output; no errors
           Product: Tomcat 6
           Version: 6.0.35
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
    Classification: Unclassified

One way to use bulk task definitions in Ant is to use XML namespaces:

<project name="teamcity"


    <path id="tomcat.6.ant.classpath">
        <fileset dir="${}/tomcat-6.0.35">
            <include name="*.jar" />
        <path refid="my.path.compile.jsp" />

    <typedef resource="org/apache/catalina/ant/antlib.xml"
             classpathref="tomcat.6.ant.classpath" />


        <tomcat6:list ... />
        <tomcat6:deploy ... />


This works great for list, deploy, etc. In fact, it works great for every other
Ant task as far as I can tell. But it doesn't work for the jasper/jasper2 tasks
(which both point to the same class).

<tomcat6:jasper ... />

This does nothing. And by “nothing” I mean that I use `ant -verbose` when
running Ant, verbose=”1” within the Jasper task, and there’s no output from the
Jasper task, not a single line of output/logging, and the build completes in 0
seconds with no compiled JSPs output.

However, if I define the Jasper task explicitly, using the exact same paths (as
you can clearly see):

    <taskdef classname="org.apache.jasper.JspC" name="tomcat6-jsp-compile">
            <path refid="tomcat.6.ant.classpath" />

And call the Jasper task using the exact same options:

<tomcat6-jsp-compile ... />

Everything works. It compiles 2,487 JSPs in 275s, and outputs exactly what I
expect, including 2,487 compiled JSPs and two logging messages. From what I
understand about Ant, there should be absolutely no difference, and yet there
apparently is, because they behave differently.

The jasper task should support namespaces like the other Tomcat Ant tasks, and
like other Ant tasks in general.

(Note: I have confirmed at that a separate
classloader IS used for the taskdef, and that Jspc will not have access to
conflicting classes loaded by other namespaces.)

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message