Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

error while compiling  RSS feed

 
gaurav chhabra
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello sir

i am doing JSTL and i have written the JSP file , .TLD file and one tag handler file but when i am trying to run it it is giving the following error

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file

please tell me that what to do

thank you
gaurav
 
Sarath Mohan
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are trying to access some methods of an object which is null
Put the complete errorlog.

regards
 
gaurav chhabra
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you sir for your response

the error is -------


HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file

C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\t2_final_jsp.java:82: cannot resolve symbol
symbol : class t2
location: class org.apache.jsp.t2_final_jsp
t2 _jspx_th_ram_sita_0 = (t2) _jspx_tagPool_ram_sita_nobody.get(t2.class);
^
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\t2_final_jsp.java:82: cannot resolve symbol
symbol : class t2
location: class org.apache.jsp.t2_final_jsp
t2 _jspx_th_ram_sita_0 = (t2) _jspx_tagPool_ram_sita_nobody.get(t2.class);
^
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\t2_final_jsp.java:82: cannot resolve symbol
symbol : class t2
location: class org.apache.jsp.t2_final_jsp
t2 _jspx_th_ram_sita_0 = (t2) _jspx_tagPool_ram_sita_nobody.get(t2.class);
^
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\t2_final_jsp.java:96: cannot resolve symbol
symbol : class t2
location: class org.apache.jsp.t2_final_jsp
t2 _jspx_th_ram_sita_1 = (t2) _jspx_tagPool_ram_sita_nobody.get(t2.class);
^
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\t2_final_jsp.java:96: cannot resolve symbol
symbol : class t2
location: class org.apache.jsp.t2_final_jsp
t2 _jspx_th_ram_sita_1 = (t2) _jspx_tagPool_ram_sita_nobody.get(t2.class);
^
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\t2_final_jsp.java:96: cannot resolve symbol
symbol : class t2
location: class org.apache.jsp.t2_final_jsp
t2 _jspx_th_ram_sita_1 = (t2) _jspx_tagPool_ram_sita_nobody.get(t2.class);
^
6 errors


at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:248)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:315)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:328)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)



--------------------------------------------------------------------------------

Apache Tomcat/4.1.31
 
Sarath Mohan
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\t2_final_jsp.java:82: cannot resolve symbol
symbol : class t2


You missed to define the class t2

Regards
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!