tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Intermittent "ServletException - Unable to compile class for JSP" for a struts-1.3.10 web-app with Tomcat 7.0.26/7.0.27
Date Wed, 11 Apr 2012 19:59:20 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ashima,

On 4/11/12 11:05 AM, Ashima Sharma wrote:
> We just did a tomcat upgrade (from 6.0.36 to 7.0.26) for a legacy 
> struts-1.3.10 app on Windows 2008 R2 (64-bit). Ever since, there's
> been an intermittent occurence of the following 2 exceptions (for
> random jsps) -
> 
> *2012-04-10 18:27:45,751 ERROR
> [org.apache.struts.tiles.taglib.InsertTag] - ServletException in
> '/WEB-INF/pages/registration/registration.jsp': Unable to compile
> class for JSP: * *An error occurred at line: 49 in the generated
> java file* *This method must return a result of type
> Map<String,Long>*

So, what's on line 49 in regstration_jsp.java?

The JSP compiler is fairly good at reporting information about the
original JSP source, too. Did it give you any clue what the problem was?

When you say "intermittent", do you mean that sometimes the JSP
compiles without a problem and other times it fails? Or, are you
saying that only some of these JSPs have the problem, but it's consistent?

> 2012-04-10 18:36:58,501 ERROR
> [org.apache.struts.tiles.taglib.InsertTag] - ServletException in
> '/WEB-INF/pages/registration/registration.jsp': classFile.delete()
> failed org.apache.jasper.JasperException: Unable to compile class
> for JSP

Full stack trace?

Have you tried tracking-down the problem on line 49 of that file?
Maybe your underlying code changed and the JSP needs to be updated?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+F4pgACgkQ9CaO5/Lv0PAbEwCfTft4iExSXIDNNj5kkBCGDhbj
/fIAn2X/tqJ3GIez2E0mmUPTJlv+mCke
=Z2Xx
-----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