Women in Technology

Hear us Roar



Article:
  Designing JSP Custom Tag Libraries
Subject:   what goes where?
Date:   2003-03-02 13:03:52
From:   ahuimanu
I am working through one of James Goodwill's examples and can't, for the life of me, figure out EXACTLY what goes where:


1) the .class file for the tag
2) the .tld file
3) the JSP


In fact, I get the following HTTP 500 error right now:


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:\tomcat\work\Standalone\localhost\babb\welcome_jsp.java:96: cannot resolve symbol
symbol : class HelloTag
location: class org.apache.jsp.welcome_jsp
HelloTag _jspx_th_babb_hello_0 = (HelloTag) _jspx_tagPool_babb_hello.get(HelloTag.class);
^
C:\tomcat\work\Standalone\localhost\babb\welcome_jsp.java:96: cannot resolve symbol
symbol : class HelloTag
location: class org.apache.jsp.welcome_jsp
HelloTag _jspx_th_babb_hello_0 = (HelloTag) _jspx_tagPool_babb_hello.get(HelloTag.class);
^
C:\tomcat\work\Standalone\localhost\babb\welcome_jsp.java:96: cannot resolve symbol
symbol : class HelloTag
location: class org.apache.jsp.welcome_jsp
HelloTag _jspx_th_babb_hello_0 = (HelloTag) _jspx_tagPool_babb_hello.get(HelloTag.class);
^
3 errors



at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
at login.doPost(login.java:48)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
at java.lang.Thread.run(Thread.java:536)




Any thoughts?


J

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • what goes where?
    2003-06-17 08:33:40  anonymous2 [View]

    Hi

    Did you solve your problem. Because I've the same problem error at line -1 in jsp file: null
    and I don't know how to solve it.