aspose file tools*
The moose likes Tomcat and the fly likes Tomcat error: org.apache.jasper.JasperException: Unable to compile class for JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat error: org.apache.jasper.JasperException: Unable to compile class for JSP" Watch "Tomcat error: org.apache.jasper.JasperException: Unable to compile class for JSP" New topic
Author

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

vaibhav more
Greenhorn

Joined: Mar 31, 2010
Posts: 10
Hello all,
I am using a jsp which takes path of an image from an html as a parameter. Further this JSP then displays the given image...
But while clicking on the link of image (in a html page) i am redirected to the following error.


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
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:439)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:497)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

Compile failed; see the compiler error output for details.
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:938)
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:407)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:497)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the Apache Tomcat/5.0.30 logs.

---------------------------------------------------------------------------------------------------------------------------------


when i checked my CATALINA.out file i got the following log details

==========================================================================



Feb 5, 2011 11:50:49 AM org.apache.jasper.compiler.Compiler generateClass
SEVERE: Env: Compile: javaFileName=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/work/Catalina/localhost/LC//org/apache/jsp/data/pc/ERCLC_005fdocs/new_005ftnb/Bajaj_0020GC_0020Max/Bajaj_0020GC_0020Max_005fGroup_0020photo/i_jsp.java
classpath=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/classes/:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/activation.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/classes111.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/classes111_g.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/classes12.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/classes12_g.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/classes12dms.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/classes12dms_g.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/commons-fileupload-1.1.1.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/cos.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/fileupload.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/mail.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/nls_charset11.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/nls_charset12.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/ocrs12.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/ojdbc14.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/ojdbc14_g.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/struts.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/uploadbean.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/work/Catalina/localhost/LC:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/classes/:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/activation.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/classes111.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/classes111_g.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/classes12.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/classes12_g.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/classes12dms.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/classes12dms_g.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/commons-fileupload-1.1.1.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/cos.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/fileupload.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/mail.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/nls_charset11.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/nls_charset12.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/ocrs12.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/ojdbc14.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/ojdbc14_g.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/struts.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/uploadbean.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/shared/classes/:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/classes/:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/endorsed/xercesImpl.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/endorsed/xml-apis.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/ant-launcher.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/ant.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/commons-collections-3.1.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/commons-dbcp-1.2.1.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/commons-el.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/commons-pool-1.2.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/jasper-compiler.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/jasper-runtime.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/jsp-api.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/naming-common.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/naming-factory.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/naming-java.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/naming-resources.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/servlet-api.jar:/usr/java/j2sdk1.4.2_09/lib/tools.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/bin/bootstrap.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/bin/commons-logging-api.jar:/usr/java/j2sdk1.4.2_09/jre/lib/ext/dnsns.jar:/usr/java/j2sdk1.4.2_09/jre/lib/ext/ldapsec.jar:/usr/java/j2sdk1.4.2_09/jre/lib/ext/sunjce_provider.jar:/usr/java/j2sdk1.4.2_09/jre/lib/ext/localedata.jar
cp=/usr/java/j2sdk1.4.2_09/lib/tools.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/bin/bootstrap.jar:/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/bin/commons-logging-api.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/classes
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/activation.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/classes111.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/classes111_g.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/classes12.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/classes12_g.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/classes12dms.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/classes12dms_g.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/commons-fileupload-1.1.1.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/cos.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/fileupload.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/mail.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/nls_charset11.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/nls_charset12.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/ocrs12.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/ojdbc14.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/ojdbc14_g.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/struts.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/uploadbean.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/work/Catalina/localhost/LC
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/classes
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/activation.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/classes111.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/classes111_g.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/classes12.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/classes12_g.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/classes12dms.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/classes12dms_g.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/commons-fileupload-1.1.1.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/cos.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/fileupload.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/mail.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/nls_charset11.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/nls_charset12.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/ocrs12.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/ojdbc14.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/ojdbc14_g.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/struts.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/webapps/LC/WEB-INF/lib/uploadbean.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/shared/classes
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/classes
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/endorsed/xercesImpl.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/endorsed/xml-apis.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/ant-launcher.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/ant.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/commons-collections-3.1.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/commons-dbcp-1.2.1.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/commons-el.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/commons-pool-1.2.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/jasper-compiler.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/jasper-runtime.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/jsp-api.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/naming-common.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/naming-factory.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/naming-java.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/naming-resources.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/common/lib/servlet-api.jar
cp=/usr/java/j2sdk1.4.2_09/lib/tools.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/bin/bootstrap.jar
cp=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/bin/commons-logging-api.jar
cp=/usr/java/j2sdk1.4.2_09/jre/lib/ext/dnsns.jar
cp=/usr/java/j2sdk1.4.2_09/jre/lib/ext/ldapsec.jar
cp=/usr/java/j2sdk1.4.2_09/jre/lib/ext/sunjce_provider.jar
cp=/usr/java/j2sdk1.4.2_09/jre/lib/ext/localedata.jar
work dir=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/work/Catalina/localhost/LC
extension dir=/usr/java/j2sdk1.4.2_09/jre/lib/ext
srcDir=/dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/work/Catalina/localhost/LC
compilerTargetVM=1.3
compilerSourceVM=1.3
include=org/apache/jsp/data/pc/ERCLC_005fdocs/new_005ftnb/Bajaj_0020GC_0020Max/Bajaj_0020GC_0020Max_005fGroup_0020photo/i_jsp.java

Feb 5, 2011 11:50:50 AM org.apache.jasper.compiler.Compiler generateClass
SEVERE: Error compiling file: /dmf_vol1/people/erclc/Tomcat/jakarta-tomcat-5.0.30/work/Catalina/localhost/LC//org/apache/jsp/data/pc/ERCLC_005fdocs/new_005ftnb/Bajaj_0020GC_0020Max/Bajaj_0020GC_0020Max_005fGroup_0020photo/i_jsp.java
[javac] Compiling 1 source file



The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError



======================================================================================


Please guide me through this error...
I am not resolve this error since last 2 days TOMCAT ERROR


Vebster:-)
Nothing is "I M Possible"
amit punekar
Ranch Hand

Joined: May 14, 2004
Posts: 512
Hi,
Try using an image that is of smaller size.

regds,
Amit
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat error: org.apache.jasper.JasperException: Unable to compile class for JSP