0 Replies Latest reply on Jan 30, 2007 12:16 PM by mleite

    WAR as JBOSS Context root app but using Struts

    mleite

      Hi,
      I have a simple web app as a WAR file. It was developed using Struts and Tiles. My index JSP is composed by some calls to Tiles tags like this:

      <tiles:insert attribute="header"/>

      The app works well. But when i defined it as the Jboss context root app it stops to work. I've just see my config files like struts-config.xml, web.xml, tiles-defs.xml and jboss-web.xml and this is OK.

      Should i do some special configuration on any of this files?

      This is the error:

      org.apache.jasper.JasperException: Exception in JSP: /index.jsp:14

      11:
      12:
      13:
      14: <tiles:insert attribute="header"/>
      15:
      16:
      17:


      Stacktrace:
      org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      root cause

      java.lang.NullPointerException
      org.apache.struts.taglib.tiles.InsertTag.processAttribute(InsertTag.java:689)
      org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:489)
      org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:451)
      org.apache.jsp.index_jsp._jspx_meth_tiles_insert_0(index_jsp.java:186)
      org.apache.jsp.index_jsp._jspx_meth_html_html_0(index_jsp.java:109)
      org.apache.jsp.index_jsp._jspService(index_jsp.java:69)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      Can you help me?

      Regards