You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/01/30 00:26:46 UTC

DO NOT REPLY [Bug 16572] New: - Compile error when invoking tag file that uses JSTL

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16572>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16572

Compile error when invoking tag file that uses JSTL

           Summary: Compile error when invoking tag file that uses JSTL
           Product: Tomcat 5
           Version: Nightly Build
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Jasper2
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: hans@gefionsoftware.com


A simple JSP page:

  <%@ taglib prefix="my" tagdir="/WEB-INF/tags/mytags" %>
  <my:test/>

invoking a simple tag file:
  <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
  <jsp:useBean id="now" class="java.util.Date" />
  <c:out value="${now}" />

Results in:
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:



	at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120)
	at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:307)
	at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:405)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:429)
	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:572)
	at
org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrapper.java:215)
	at
org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor.java:446)
	at org.apache.jasper.compiler.TagFileProcessor.access$000(TagFileProcessor.java:84)
	at
org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:488)
	at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1033)
	at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1700)
        [...]

If I change the tag file to not use <c:out>, everything works fine:

  <jsp:useBean id="now" class="java.util.Date" />
  ${now}

Since I've seen the same error with other JSTL (1.0.1) actions, I assume there's
a problem with JSTL (or custom actions in general) in tag files.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org