org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: Only a type can be imported. ars.login.login resolves to a package An error occurred at line: 40 in the jsp file: /calendar/calendar.jsp Generated servlet error: login cannot be resolved to a type An error occurred at line: 40 in the jsp file: /calendar/calendar.jsp Generated servlet error: login cannot be resolved to a type

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

Solutions on the web

via Oracle Community by 843802, 1 year ago
Unable to compile class for JSP Generated servlet error: Only a type can be imported. ars.login.login resolves to a package An error occurred at line: 40 in the jsp file: /calendar/calendar.jsp Generated servlet error: login cannot be resolved to a
via Stack Overflow by anujin
, 2 years ago
Unable to compile class for JSP: An error occurred at line: 32 <%out.print(session.getAttribute( "theName" ));
via YouTrack by Unknown author, 1 year ago
Unable to compile class for JSP: An error occurred at line: 6 in the generated java file Only a type can be imported. com.caculatorRemote resolves to a package An error occurred at line: 27 in the jsp file: /WebClient.jsp caculatorRemote cannot be resolved to a type Stacktrace:
via Coderanch by jyothi babu, 11 months ago
Unable to compile class for JSP: An error occurred at line: 8 in the generated java file Only a type can be imported. org.hibernate.cfg.Configuration resolves to a package An error occurred at line: 9 in the generated java file Only a type can be
via Stack Overflow by Skibrit
, 7 months ago
Unable to compile class for JSP: An error occurred at line: 1 in the generated java file The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files Stacktrace:
via Stack Overflow by mantelinga r
, 2 months ago
Unable to compile class for JSP: An error occurred at line: 1 in the generated java file The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files Stacktrace:
org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: Only a type can be imported. ars.login.login resolves to a package An error occurred at line: 40 in the jsp file: /calendar/calendar.jsp Generated servlet error: login cannot be resolved to a type An error occurred at line: 40 in the jsp file: /calendar/calendar.jsp Generated servlet error: login cannot be resolved to a type
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:409)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:744)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:674)
at java.lang.Thread.run(Unknown Source)

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, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
75 more bugmates

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