Error like this:-
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.

Sol.:-
To increase the heap memory size of java JVM for a tomcat server we have to follow the procedure

a) Edit /usr/sbin/starttomcat

b) Add Xms and Xmx entries as
system(“./jsvc”,
“-user”,”tomcat”,
“-Xms512m”,
“-Xmx512m”,
“-cp”,”./bootstrap.jar”,
“-Djava.endorsed.dirs=../common/endorsed”,
“-debug”,”-outfile”,”../logs/catalina.out”,
“-errfile”,”../logs/catalina.err”,”-verbose”,
“org.apache.catalina.startup.Bootstrap”,”-security”,
“$options”);

c) restart tomcat

 

Leave a Reply