org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: [14] in the generated java file: [E:\work\workspace\common-insurance\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\admin\org\apache\jsp\static_\plugins\ueditor\jsp\controller_jsp.java] Only a type can be imported. com.baidu.ueditor.ActionEnter resolves to a package An error occurred at line: 12 in the jsp file: /static/plugins/ueditor/jsp/controller.jsp ActionEnter cannot be resolved to a type 9: 10: String rootPath = application.getRealPath( "/" ); 11: 12: out.write( new ActionEnter( request, rootPath ).exec() ); 13: 14: %> Stacktrace:

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • # 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) # Start up the portal # Go to the default page (x) *Experienced behavior:* The following error message is displayed in the log: {code} 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 (x) Reproduced on branch commit e4fcbbfdaddb1c316dc3bb4e00b113a0e966effb ---- (on) *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.
    via by Uğurcan Çetin,
  • tomcat fail to compile jsp
    via Stack Overflow by user2130951
    ,
  • GlassFish not launching with NetBeans
    via Stack Overflow by yoz1k
    ,
  • Error compiling JSP on tomcat8 and java8
    via Stack Overflow by user1247412
    ,
    • org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: [14] in the generated java file: [E:\work\workspace\common-insurance\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\admin\org\apache\jsp\static_\plugins\ueditor\jsp\controller_jsp.java] Only a type can be imported. com.baidu.ueditor.ActionEnter resolves to a package An error occurred at line: 12 in the jsp file: /static/plugins/ueditor/jsp/controller.jsp ActionEnter cannot be resolved to a type 9: 10: String rootPath = application.getRealPath( "/" ); 11: 12: out.write( new ActionEnter( request, rootPath ).exec() ); 13: 14: %> 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)

    Users with the same issue

    Unknown visitor2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    72 more bugmates