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 2005/09/02 01:52:12 UTC
DO NOT REPLY [Bug 36469] New: -
Jasper unable to compile struts tags (but it seems spuradic)
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36469>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=36469
Summary: Jasper unable to compile struts tags (but it seems
spuradic)
Product: Tomcat 5
Version: 5.5.9
Platform: PC
OS/Version: Windows 2000
Status: NEW
Severity: normal
Priority: P2
Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: cbrak1@hotmail.com
Jasper error:
------------------------------------------------------------------------------
18:38:46,640 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
The method _jspx_meth_template_put_0(JspTag, PageContext) in the type whoson_jsp
is not applicable for the arguments (InsertTag, PageContext)
Generated servlet error:
The method _jspx_meth_template_put_1(JspTag, PageContext) in the type whoson_jsp
is not applicable for the arguments (InsertTag, PageContext)
Generated servlet error:
The method _jspx_meth_template_put_2(JspTag, PageContext) in the type whoson_jsp
is not applicable for the arguments (InsertTag, PageContext)
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErro
rHandler.java:84)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher
.java:328)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java
:397)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext
.java:556)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:293)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
14)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
--------------------------------------------------------------------------------
code:
################################################################################
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %>
<template:insert template='template1.jsp'>
<template:put name='header' content='header.jsp' />
<template:put name='content' content='whosoncontent.jsp' />
<template:put name='footer' content='footer.jsp' />
</template:insert>
################################################################################
I have to assume this is a class loading issue, but I am just not sure. What I
am unable to figure out is if I call another page that looks the same with
different content attributes, it works fine. This bug (if it is a bug) seems
spuradic...not spuradic in that if I call whoson.jsp and the exception is
thrown one time, it won't be thrown on a different call to whoson.jsp, but
rather the fact that calling whoson.jsp throws the exception whereas
profile.jsp (exact duplicate in terms of tags) does not.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org