tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Jasper Compiling Error -> return type incompatible with JspSourceDependent.getDependants
Date Thu, 27 Jan 2011 22:13:49 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thomas,

On 1/27/2011 3:09 AM, Kupper ext-FA, Thomas wrote:
> It fails to compile a simple index.jsp on the productive server
> because the generated index_jsp.java files differs.
> 
> Version information:
> 
> Server version: Apache Tomcat/5.5.23

[snip]

> the automatically generated index_jsp.java diffiers in the following lines:
> 
> ------------------------------------------------------------------------------
> --- index_jsp.java_not-compiling 2011-01-27 08:38:46.000000000 +0100
> +++ index_jsp.java_compiling-fine	2011-01-27 08:38:41.000000000 +0100
> @@ -7,9 +7,9 @@
>  public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
>      implements org.apache.jasper.runtime.JspSourceDependent {
>  
> -  private static java.util.Vector _jspx_dependants;
> +  private static java.util.List _jspx_dependants;
>  
> -  public java.util.List getDependants() {
> +  public Object getDependants() {
>      return _jspx_dependants;
>    }
> ------------------------------------------------------------------------------

Did you upgrade recently? This is an internal API that is subject to
change, and might have changed during an upgrade that left files in your
"work" directory.

Try stopping Tomcat, removing Tomcat's "work" directory, and then
re-starting. Your JSPs should re-compile and work fine after that.

If you are precompiling your JSPs, you'll need to re-precompile your
JSPs with your current Tomcat version.

Also, your version of Tomcat is very old. If you are using a
package-managed version of Tomcat, you may be stuck with an ancient
version. Consider using the canonical Apache version to stay up-to-date.

Hope that helps,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1B7h0ACgkQ9CaO5/Lv0PCQZACfdbSR9T5SmUa9Q4Sw70EBPdHF
AwAAoLq3eEVWR1D1U21cdHEz6Ws3PsOX
=o/Sz
-----END PGP SIGNATURE-----

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


Mime
View raw message