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:

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by liuhuan543539666
, 1 year ago
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
via Stack Overflow by surya kant Bansal
, 2 years ago
Unable to compile class for JSP: An error occurred at line: [42] in the generated java file: [/home/tomgenso/tomcat/work/Catalina/tomgensoft.com/ROOT/org/apache/jsp/home_jsp.java] The method getDispatcherType() is undefined for the type HttpServletRequest Stacktrace:
via liferay.com by Unknown author, 2 years ago
Impossible de co mpiler la classe pour la JSP: An error occurred at line: 27 in the generated java file Only a type can be imported. com.portlet.annuaire.service.DemandeLocalServiceUti l resolves to a package An error occurred at line: 28 in the generated java file Only a type can be imported. com.portlet.annuaire.model.Demande resolves to a pa ckage Stacktrace:
via liferay.com by Unknown author, 2 years ago
Impossible de co mpiler la classe pour la JSP: An error occurred at line: 27 in the generated java file Only a type can be imported. com.portlet.annuaire.service.DemandeLocalServiceUti l resolves to a package An error occurred at line: 28 in the generated java file Only a type can be imported. com.portlet.annuaire.model.Demande resolves to a pa ckage Stacktrace:
via Stack Overflow by user2130951
, 2 years ago
Unable to compile class for JSP: An error occurred at line: 1 in the generated java file The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files Stacktrace:
via Coderanch by Ramna Reddy, 11 months ago
Unable to compile class for JSP Generated servlet error: The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit..
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)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.