org.apache.jasper.JasperException: Unable to compile class for JSPE:\e-data\tomcat40\bin\..\work\localhost\examples\jsp\SimpleJSPBean_jsp.java:59: Undefined variable or class name: counter out.print( counter.getCounter() ); ^ 1 error

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 Oracle Community by 843810, 1 year ago
Unable to compile class for JSPE:\e-data\tomcat40\bin\..\work\localhost\examples\jsp\SimpleJSPBean_jsp.java:59: Undefined variable or class name: counter out.print( counter.getCounter() ); ^ 1 error
via Oracle Community by 807594, 1 year ago
Unable to compile class for JSPE:\e-data\tomcat40\bin\..\work\localhost\examples\jsp\SimpleJSPBean_jsp.java:59: Undefined variable or class name: counter out.print( counter.getCounter() ); ^ 1 error
via Oracle Community by 843835, 1 year ago
Unable to compile class for JSPE:\e-data\tomcat40\bin\..\work\localhost\examples\jsp\SimpleJSPBean_jsp.java:59: Undefined variable or class name: counter out.print( counter.getCounter() ); ^ 1 error
via Oracle Community by 843835, 1 year ago
Unable to compile class for JSP An error occurred at line: 1 in the jsp file: /beans.jsp Generated servlet error: D:\jakarta-tomcat-4.0\work\localhost\JSPExamples\beans$jsp.java:56: Class org.apache.jsp.LanguageBean not found. LanguageBean
via Oracle Community by 843833, 1 year ago
Unable to compile class for JSP An error occured between lines: 4 and 6 in the jsp file: /TestBean.jsp Generated servlet error: C:\jakarta-tomcat-4.0\work\localhost\test\TestBean$jsp.java:60: Class org.apache.jsp.TestBean not found. TestBean tb
via Oracle Community by 843833, 1 year ago
Unable to compile class for JSP An error occured between lines: 4 and 6 in the jsp file: /TestBean.jsp Generated servlet error: C:\jakarta-tomcat-4.0\work\localhost\test\TestBean$jsp.java:60: Class org.apache.jsp.TestBean not found. TestBean tb
org.apache.jasper.JasperException: Unable to compile class for JSPE:\e-data\tomcat40\bin\..\work\localhost\examples\jsp\SimpleJSPBean_jsp.java:59: Undefined variable or class name: counter out.print( counter.getCounter() ); ^ 1 error
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:523)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:175)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:187)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:254)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:194)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:255)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:225)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2252)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:875)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:952)
at java.lang.Thread.run(Thread.java:484)

Users with the same issue

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

Write tip

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