DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10094>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10094

Apparent problem with all tags in a TLD if one of the tags has an invalid configuration

           Summary: Apparent problem with all tags in a TLD if one of the
                    tags has an invalid configuration
           Product: Tomcat 4
           Version: 4.1.3
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Jasper 2
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Here is a case :
in a TLD - MyTLD.tld we have two tags:
<tag>
 <tag-class>foo</tag-class>
 <tei-class>fooTagExtraInfo</tei-class>

  <variable> .... </variable>
</tag>

<tag>
 <tag-class>bar</variable>
 

  <variable>... </variable>
</tag>

In case tag bar is accesed in a JSP , then a comilation error is thrown , that 
says:

org.apache.jasper.JasperException: Unable to compile class for JSP
        at org.apache.jasper.JspEngineContext.compile(JspEngineContext.java:388)
        at org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:157)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:289)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
        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.invokeNex
t(StandardPipeline.java:646)
        at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:483)
        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.invokeNex
t(StandardPipeline.java:646)
        at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:483)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at org.apache.catalina.core.StandardContext.invoke
(StandardContext.java:2349)
        at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:180)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex
t(StandardPipeline.java:646)
        at org.apache.catalina.valves.ErrorDispatcherValve.invoke
(ErrorDispatcherValve.java:170)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex
t(StandardPipeline.java:644)
        at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:171)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex
t(StandardPipeline.java:644)
        at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:483)
        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.invokeNex
t(StandardPipeline.java:646)
        at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:483)
        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:405)
        at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnectio
n(Http11Protocol.java:376)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:508)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:518)
        at java.lang.Thread.run(Thread.java:536)


root cause 

org.apache.jasper.JasperException: null(-1,-1) variable subelement defined in 
tld when TagExtraInfo class tlelementvar.TagWithVarExtraInfo is non-null
        at org.apache.jasper.compiler.DefaultErrorHandler.jspError
(DefaultErrorHandler.java:94)
        at org.apache.jasper.compiler.ErrorDispatcher.dispatch
(ErrorDispatcher.java:417)
        at org.apache.jasper.compiler.ErrorDispatcher.jspError
(ErrorDispatcher.java:154)
        at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo
(TagLibraryInfoImpl.java:386)
        at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD
(TagLibraryInfoImpl.java:273)
        at org.apache.jasper.compiler.TagLibraryInfoImpl.
(TagLibraryInfoImpl.java:183)
        at org.apache.jasper.compiler.Parser.parseTaglibDirective
(Parser.java:354)
        at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:381)
        at org.apache.jasper.compiler.Parser.parseElements(Parser.java:790)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
        at org.apache.jasper.compiler.ParserController.parse
(ParserController.java:199)
        at org.apache.jasper.compiler.ParserController.parse
(ParserController.java:153)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:219)
        at org.apache.jasper.JspEngineContext.compile(JspEngineContext.java:385)
        at org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:157)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:289)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
        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.invokeNex
t(StandardPipeline.java:646)
        at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:483)
        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.invokeNex
t(StandardPipeline.java:646)
        at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:483)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at org.apache.catalina.core.StandardContext.invoke
(StandardContext.java:2349)
        at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:180)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex
t(StandardPipeline.java:646)
        at org.apache.catalina.valves.ErrorDispatcherValve.invoke
(ErrorDispatcherValve.java:170)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex
t(StandardPipeline.java:644)
        at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:171)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex
t(StandardPipeline.java:644)
        at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:483)
        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.invokeNex
t(StandardPipeline.java:646)
        at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:483)
        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:405)
        at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnectio
n(Http11Protocol.java:376)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:508)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:518)
        at java.lang.Thread.run(Thread.java:536)



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

Apache Tomcat/4.1.3

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to