struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Meyn" <>
Subject deprecation error moving from Tomcat 4.0.4 to 4.1.18?
Date Tue, 25 Mar 2003 21:33:46 GMT
Hi all,

Code that has worked fine under Struts 1.1 rc1 in Tomcat 4.0.4 is now
failing in 4.1.18 (j2sdk1.4.1_02).  Other servlets made the switch ok, but
when I try to <jsp:include page="<%= a bean value %>" /> the page fails with
a somewhat cryptic error as below:

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

An error occurred at line: 39 in the jsp file: /data/statistics.jsp

Generated servlet error:
    [javac] Compiling 1 source file

Response,java.lang.String,javax.servlet.jsp.JspWriter,boolean) in
org.apache.jasper.runtime.JspRuntimeLibrary cannot be applied to
          JspRuntimeLibrary.include(request, response,  includePage , out,
An error occurred at line: 39 in the jsp file: /data/statistics.jsp
Generated servlet error:
Note: C:\jakarta-tomcat-4.1.18\<removed>\data\ uses or
overrides a deprecated API.
Note: Recompile with -deprecation for details.
1 error

This is the code that generates it:
<logic:present name="statsNavBean">
	<bean:define id="includePage" name="statsNavBean" property="bodyPage" />
	<jsp:include page="<%= includePage %>" flush="true" />

The bean:define line is #39 referenced in the error, but I think it must be
miscounting since if I remove the jsp:include line it works fine (well,
compiles fine).

Any ideas on what's causing this?  Is there a newer version of some spec I
should be writing to for 4.1.18 as opposed to 4.0.4?

I know the includePage is coming back correctly because just printing it out
shows that it is correct.  One of the possibilities for includePage is a
trivial Coming Soon page, and if I define some variable foo =
"comingsoon.jsp" (same as passed back) and place it in the include instead
of includePage, it _works fine_.  This must be something in the interaction
of the bean and the include, but I can't figure it out.

Hoping it's something obvious,

ps same error on Linux/Apache

Oliver Meyn
"Things should be made as simple as possible, but no simpler." - Albert

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message