Uploaded image for project: 'Tiles'
  1. Tiles
  2. TILES-335

struts2 + tiles + jdk 1.4, tiles do not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.0.4
    • None
    • None
    • None
    • jdk1.4.2, websphere 5.1, struts2.0.4, tiles2.0.4

    • Important

    Description

      Hello,
      I have to use struts2 + tiles in jdk1.4.2.
      But tiles can't work.
      struts2-tiles-plugin and tiles jars were transfered for jdk1.4 by using RetroTranslator.
      Below is my exception:
      [11/28/08 14:45:40:546 CST] 4c844c84 WebGroup E SRVE0026E: [Servlet
      Error]-[]: java.lang.NullPointerException
      at java.lang.Throwable.<init>(Throwable.java)
      at java.lang.Throwable.<init>(Throwable.java)
      at
      java.lang.NullPointerException.<init>(NullPointerException.java:60)
      at
      org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java)
      at
      org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSuppor
      t.java:178)
      at
      com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionI
      nvocation.java:348)
      at
      com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
      on.java:253)
      at
      com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(D
      efaultWorkflowInterceptor.java:221)

      Below is org.apache.struts2.views.tiles.TilesResult.doExecute java code:
      public void doExecute(String location, ActionInvocation invocation) throws Exception

      { setLocation(location); ServletContext servletContext = ServletActionContext.getServletContext(); TilesContainer container = TilesAccess.getContainer(servletContext); HttpServletRequest request = ServletActionContext.getRequest(); HttpServletResponse response = ServletActionContext.getResponse(); container.render(location, request, response); }

      I debugged and fund that "container" is null, a exception will be thrown when launch this code:
      container.render(location, request, response);

      why container is null?
      I found that "org.apache.struts2.tiles.StrutsTilesListener" is not run when web application start!

      My application can run smoothly in jdk1.5, but tiles can't work in jdk1.4.2

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lcllcl987 lichunlei
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: