tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: TOmcat5.5.17 - jasper-runtime.jar ERROR
Date Mon, 04 Sep 2006 14:46:46 GMT
There *was* an outstanding bug where someone tried to cast a Vector to List
and then to solve the org.apache.jasper.runtime.JspSourceDependent.getDependants() 
method signature was then downcasted to return Object (instead of the original List)

More info is available at
http://issues.apache.org/bugzilla/show_bug.cgi?id=33594

I would suggest following up on the bug 

Thanks
M-

*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



----- Original Message ----- 
From: "Sarath G -X (sarag - Infosys at Cisco)" <sarag@cisco.com>
To: <users@tomcat.apache.org>
Sent: Monday, September 04, 2006 2:22 AM
Subject: TOmcat5.5.17 - jasper-runtime.jar ERROR


Hi,

 

We have recently migrated from Tomcat 5.0.28 to Tomcat 5.5.17

 

In our component build we pre-compile all jsp files. 

However after changing to Tomcat5.5 the Jsp Pre-Compilation fails and
throws the following ERROR:

 

[javac]
/view/sarag-latest-cct-ccm/vob/ccm/Projects/car/jsp_files/MAMgrSearch_js
p.java:16: org.apache.jsp.MAMgrSearch_jsp is not abstract and does not
override abstract method getDependants() in
org.apache.jasper.runtime.JspSourceDependent

    [javac] public final class MAMgrSearch_jsp extends
com.cisco.ccm.car.userinterface.JSPReportBase

    [javac]              ^

    [javac]
/view/sarag-latest-cct-ccm/vob/ccm/Projects/car/jsp_files/MAMgrSearch_js
p.java:29: getDependants() in org.apache.jsp.MAMgrSearch_jsp cannot
implement getDependants() in
org.apache.jasper.runtime.JspSourceDependent; attempting to use
incompatible return type

    [javac] found   : java.lang.Object

    [javac] required: java.util.List

    [javac]   public Object getDependants() {

    [javac]                 ^

    [javac] Note: Some input files use unchecked or unsafe operations.

    [javac] Note: Recompile with -Xlint:unchecked for details.

    [javac] 100 errors

 

It looks like the XXX_jsp.java files generated using JspC from
jasper-compile.jar is generating getDependants() method with signature:

List getDependants();

 

However the new jasper-runtime.jar expects a signature of the type:

Object getDependants();

 

Jasper-compiler.jar & jasper-runtime.jar are included in the class path
while compiling.

 

Is this a know issue? If yes, is there a work around for the same. 

Any help would be appreciated.

 

Thanks & Regards

Sarath.G

 

Mime
View raw message