Compile fails with error: org.apache.jasper.JasperException: JSPG0059E: Unable to compile class for JSP
 Technote (FAQ)
 
Problem
A JavaServer Pages™ (JSP™) file fails to compile with the following error:
org.apache.jasper.JasperException: JSPG0059E: Unable to compile class for JSP.
 
Solution
To assist you with resolving your problem, click Mustgather Document: http://www-1.ibm.com/support/docview.wss?rs=180&uid=swg21054036

and complete steps 1-10. Step #10 will link you back to this document to proceed with the following steps.

To debug a compile problem with a JSP file, perform the following steps:

  1. Collect system information about the node:
    1. Operating system and patch level.
    2. The product.xml file from the following directory:

      install_root\properties\com\ibm\websphere
  2. Stop the Enterprise Application
  3. Delete the contents of the directory:

    install_root\temp\<node name>\<appserver>\<enterprise app>

    where:
    install_root is the directory that WebSphere Application Server is installed
    <node name> is the host name of the machine.
    <appserver> is the name of the appserver.
    <enterprise app> is the name of the enterprise application that contains the JSP file.

  4. Start the Enterprise Application.
  5. Run the following command:

    For UNIX®:
    ./JspBatchCompiler.sh -enterpriseApp [enterprise app] -webModule [war] -keepgenerated true >JspBatchCompiler_stderr_stdout.out 2>&1

    For Windows®:
    JspBatchCompiler -enterpriseApp [enterprise app] -webModule [war] -keepgenerated true >JspBatchCompiler_stderr_stdout.out

    To determine the proper enterpriseApp name, use the following steps:
    1. In the Administrative Console, click on the plus ("+") sign next to Enterprise Applications.
    2. Select the enterprise application that you want to BatchCompile JSP files.
    3. Use the name in enterprise application name field of the General tab for the -enterpriseApp option.

To determine the proper webModule name, use the following steps:
  1. In the administrative console, click on the plus ("+") sign next to enterprise applications.
  2. Click on the plus ("+") sign next to the enterprise application that you want to BatchCompile JSP files.
  3. Click on the Web Modules folder.
  4. Use the name in the Module name field of the General tab for the -webModule option.

If your problem is not resolved, click Mustgather Document: http://www-1.ibm.com/support/docview.wss?rs=180&uid=swg21054036 and continue to Step #11.
 
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > JSP
Operating system(s): HP-UX
Software version: 4.0
Software edition:
Reference #: 1066851
IBM Group: Software Group
Modified date: Feb 28, 2005