You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by R4IDER <ra...@hotmail.com> on 2011/09/23 22:26:18 UTC

Unable to compile class for JSP

Hi,

Does anyone know how to go about fixing the error below; I have spent a good
12 hours trying to work it out.


HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

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


An error occurred at line: 18 in the generated java file
The return type is incompatible with JspSourceDependent.getDependants()

Stacktrace:

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
	org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:451)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:319)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:321)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:257)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

com.jenkov.servlet.multipart.MultipartFilter.doFilter(MultipartFilter.java:93)

note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.33 logs.
Apache Tomcat/6.0.33
-- 
View this message in context: http://old.nabble.com/Unable-to-compile-class-for-JSP-tp32503887p32503887.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: Unable to compile class for JSP

Posted by Konstantin Kolinko <kn...@gmail.com>.
2011/9/24 R4IDER <ra...@hotmail.com>:
>
> Hi,
>
> Does anyone know how to go about fixing the error below; I have spent a good
> 12 hours trying to work it out.
>
>
> HTTP Status 500 -
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
>
> exception
>
> org.apache.jasper.JasperException: Unable to compile class for JSP:
>
>
> An error occurred at line: 18 in the generated java file
> The return type is incompatible with JspSourceDependent.getDependants()
>
(...)

1. If you are using precompiled jsp or tag files, you should compile
them with exact the same x.y.z version of Tomcat where you deploy
them.

2. Stop Tomcat and clear everything from the /work subdirectory of
CATALINA_BASE. That is, there might be *.class files compiled with
some other version of Tomcat.

Best regards,
Konstantin Kolinko

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