Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-70778

"org.apache.jasper.JasperException: Unable to compile class for JSP" html\common\themes\portlet.jsp when you deploy Liferay 6.2 to Tomcat 7.0.75

    Details

      Description

      1. Deploy Liferay 6.2 to Tomcat 7.0.75
        (Note: when using 62x, make sure jsp.precompile is disabled otherwise you won't get the error)
      2. Start up the portal
      3. Go to the default page

      Experienced behavior: The following error message is displayed in the log:

      org.apache.jasper.JasperException: Unable to compile class for JSP:
      
      An error occurred at line: [430] in the generated java file: [C:\liferay\bundles\62x\apache-tomcat-7.0.75\work\Catalina\localhost\_\org\apache\jsp\html\common\themes\portlet_jsp.java]
      The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit
      
      Stacktrace:
              at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
              at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
              at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:490)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:379)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
              at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:662)
              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:364)
              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
              at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:117)
              at 
      

      Expected behavior: After starting up the portal the above exceptions shouldn't be thrown
      Reproduced on branch commit e4fcbbfdaddb1c316dc3bb4e00b113a0e966effb


      Workaround Replace tomcat-7.0.75/lib/jasper.jar with an older version of jasper.jar (for example, copy from tomcat-7.0.62). This recent change in Jasper (first shipped with tomcat-7.0.75) might be related: http://bz.apache.org/bugzilla/show_bug.cgi?id=60356.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 23 weeks, 5 days ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.X EE