tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50066] New: Cannot compile recursive tag with ant if it uses a class from the webapp
Date Sat, 09 Oct 2010 13:49:36 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50066

           Summary: Cannot compile recursive tag with ant if it uses a
                    class from the webapp
           Product: Tomcat 6
           Version: 6.0.29
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Jasper
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: sylvain.laurent@gmail.com


The following simple tag file cannot be compiled with the jspc ant task (or the
jpsc maven plugin) :

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>

Hello world !
<c:if test="${false}" >
    <tags:recursive />
</c:if>

The error is 
org.apache.jasper.JasperException: /WEB-INF/tags/recursive.tag(21,0) Unable to
load tag handler class "org.apache.taglibs.standard.tag.rt.core.IfTag" for tag
"c:if"

It's OK when the compilation is done "online", when the first jsp that uses
this tag is called with a http request.

The problem is that japer's TagFileProcessor does not set the correct
classloader when compiling recursive tags. It works in online mode because the
parent classloader of the jsp classloader is the webapp classloader.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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