0 Replies Latest reply on Jun 9, 2005 10:38 AM by Bappa Roy

    Unable to resolve JSP compilation error

    Bappa Roy Newbie

      I am building a struts application using Eclipse 3.0 IDE and JBOSS 4.0.1. While running the application, I am receiving a JSP compilation error.

      Any help will be much appreciated.

      09:55:36,570 ERROR [Engine] StandardWrapperValve[action]: Servlet.service() for servlet action threw exception
      org.apache.jasper.JasperException: Unable to compile class for JSP

      Generated servlet error:
      E:\jboss-4.0.1sp1\server\default\work\jboss.web\localhost\BBTDelivery\org\apache\jsp\resource_jsp.java:122: _jspx_meth_html_link_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.resource_jsp cannot be applied to (org.apache.struts.taglib.logic.PresentTag,javax.servlet.jsp.PageContext)
      if (_jspx_meth_html_link_0(_jspx_th_logic_present_0, _jspx_page_context))
      ^


      Generated servlet error:
      E:\jboss-4.0.1sp1\server\default\work\jboss.web\localhost\BBTDelivery\org\apache\jsp\resource_jsp.java:125: _jspx_meth_html_link_1(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.resource_jsp cannot be applied to (org.apache.struts.taglib.logic.PresentTag,javax.servlet.jsp.PageContext)
      if (_jspx_meth_html_link_1(_jspx_th_logic_present_0, _jspx_page_context))
      ^


      Generated servlet error:
      E:\jboss-4.0.1sp1\server\default\work\jboss.web\localhost\BBTDelivery\org\apache\jsp\resource_jsp.java:128: _jspx_meth_html_link_2(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.resource_jsp cannot be applied to (org.apache.struts.taglib.logic.PresentTag,javax.servlet.jsp.PageContext)
      if (_jspx_meth_html_link_2(_jspx_th_logic_present_0, _jspx_page_context))
      ^


      Generated servlet error:
      E:\jboss-4.0.1sp1\server\default\work\jboss.web\localhost\BBTDelivery\org\apache\jsp\resource_jsp.java:131: _jspx_meth_html_link_3(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.resource_jsp cannot be applied to (org.apache.struts.taglib.logic.PresentTag,javax.servlet.jsp.PageContext)
      if (_jspx_meth_html_link_3(_jspx_th_logic_present_0, _jspx_page_context))
      ^


      Generated servlet error:
      E:\jboss-4.0.1sp1\server\default\work\jboss.web\localhost\BBTDelivery\org\apache\jsp\resource_jsp.java:134: _jspx_meth_html_errors_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.resource_jsp cannot be applied to (org.apache.struts.taglib.logic.PresentTag,javax.servlet.jsp.PageContext)
      if (_jspx_meth_html_errors_0(_jspx_th_logic_present_0, _jspx_page_context))
      ^


      Generated servlet error:
      E:\jboss-4.0.1sp1\server\default\work\jboss.web\localhost\BBTDelivery\org\apache\jsp\resource_jsp.java:156: _jspx_meth_logic_equal_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.resource_jsp cannot be applied to (org.apache.struts.taglib.logic.PresentTag,javax.servlet.jsp.PageContext)
      if (_jspx_meth_logic_equal_0(_jspx_th_logic_present_0, _jspx_page_context))
      ^


      Generated servlet error:
      E:\jboss-4.0.1sp1\server\default\work\jboss.web\localhost\BBTDelivery\org\apache\jsp\resource_jsp.java:159: _jspx_meth_logic_greaterThan_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.resource_jsp cannot be applied to (org.apache.struts.taglib.logic.PresentTag,javax.servlet.jsp.PageContext)
      if (_jspx_meth_logic_greaterThan_0(_jspx_th_logic_present_0, _jspx_page_context))
      ^


      Generated servlet error:
      E:\jboss-4.0.1sp1\server\default\work\jboss.web\localhost\BBTDelivery\org\apache\jsp\resource_jsp.java:203: _jspx_meth_bean_write_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.resource_jsp cannot be applied to (org.apache.struts.taglib.logic.IterateTag,javax.servlet.jsp.PageContext)
      if (_jspx_meth_bean_write_0(_jspx_th_logic_iterate_0, _jspx_page_context))
      ^


      Generated servlet error:
      E:\jboss-4.0.1sp1\server\default\work\jboss.web\localhost\BBTDelivery\org\apache\jsp\resource_jsp.java:207: _jspx_meth_bean_write_1(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.resource_jsp cannot be applied to (org.apache.struts.taglib.logic.IterateTag,javax.servlet.jsp.PageContext)
      if (_jspx_meth_bean_write_1(_jspx_th_logic_iterate_0, _jspx_page_context))
      ^


      Generated servlet error:
      E:\jboss-4.0.1sp1\server\default\work\jboss.web\localhost\BBTDelivery\org\apache\jsp\resource_jsp.java:211: _jspx_meth_bean_write_2(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.resource_jsp cannot be applied to (org.apache.struts.taglib.logic.IterateTag,javax.servlet.jsp.PageContext)
      if (_jspx_meth_bean_write_2(_jspx_th_logic_iterate_0, _jspx_page_context))
      ^


      Generated servlet error:
      E:\jboss-4.0.1sp1\server\default\work\jboss.web\localhost\BBTDelivery\org\apache\jsp\resource_jsp.java:215: _jspx_meth_bean_write_3(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.resource_jsp cannot be applied to (org.apache.struts.taglib.logic.IterateTag,javax.servlet.jsp.PageContext)
      if (_jspx_meth_bean_write_3(_jspx_th_logic_iterate_0, _jspx_page_context))
      ^


      Generated servlet error:
      E:\jboss-4.0.1sp1\server\default\work\jboss.web\localhost\BBTDelivery\org\apache\jsp\resource_jsp.java:219: _jspx_meth_bean_write_4(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.resource_jsp cannot be applied to (org.apache.struts.taglib.logic.IterateTag,javax.servlet.jsp.PageContext)
      if (_jspx_meth_bean_write_4(_jspx_th_logic_iterate_0, _jspx_page_context))
      ^


      Generated servlet error:
      E:\jboss-4.0.1sp1\server\default\work\jboss.web\localhost\BBTDelivery\org\apache\jsp\resource_jsp.java:223: _jspx_meth_bean_write_5(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.resource_jsp cannot be applied to (org.apache.struts.taglib.logic.IterateTag,javax.servlet.jsp.PageContext)
      if (_jspx_meth_bean_write_5(_jspx_th_logic_iterate_0, _jspx_page_context))
      ^


      Generated servlet error:
      E:\jboss-4.0.1sp1\server\default\work\jboss.web\localhost\BBTDelivery\org\apache\jsp\resource_jsp.java:227: _jspx_meth_bean_write_6(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.resource_jsp cannot be applied to (org.apache.struts.taglib.logic.IterateTag,javax.servlet.jsp.PageContext)
      if (_jspx_meth_bean_write_6(_jspx_th_logic_iterate_0, _jspx_page_context))
      ^


      Generated servlet error:
      E:\jboss-4.0.1sp1\server\default\work\jboss.web\localhost\BBTDelivery\org\apache\jsp\resource_jsp.java:233: _jspx_meth_html_link_4(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.resource_jsp cannot be applied to (org.apache.struts.taglib.logic.IterateTag,javax.servlet.jsp.PageContext)
      if (_jspx_meth_html_link_4(_jspx_th_logic_iterate_0, _jspx_page_context))
      ^


      Generated servlet error:
      E:\jboss-4.0.1sp1\server\default\work\jboss.web\localhost\BBTDelivery\org\apache\jsp\resource_jsp.java:238: _jspx_meth_html_link_5(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.resource_jsp cannot be applied to (org.apache.struts.taglib.logic.IterateTag,javax.servlet.jsp.PageContext)
      if (_jspx_meth_html_link_5(_jspx_th_logic_iterate_0, _jspx_page_context))
      ^


      Generated servlet error:
      E:\jboss-4.0.1sp1\server\default\work\jboss.web\localhost\BBTDelivery\org\apache\jsp\resource_jsp.java:268: _jspx_meth_html_link_6(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.resource_jsp cannot be applied to (org.apache.struts.taglib.logic.PresentTag,javax.servlet.jsp.PageContext)
      if (_jspx_meth_html_link_6(_jspx_th_logic_present_0, _jspx_page_context))
      ^
      17 errors



      at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
      at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
      at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
      at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
      at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
      at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
      at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:150)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
      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)