Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-5419

Autoloading of tiles.xml fails in Struts-6.4.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 6.4.0
    • 6.6.0
    • Plugin - Tiles
    • None

    Description

      Starting in 6.4.0 a tiles definition in /WEB-INF/tiles.xml is not found automatically anymore. The problem arises only, if the definition in web.xml contains no param section:

      <listener>
         <listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>
      </listener>
      

       
      The workaround is to specify the specific location:

      <listener>
         <listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>
      </listener>
      
       <context-param>
           <param-name>org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG</param-name>
          <param-value>
                  /WEB-INF/tiles.xml
          </param-value>
      </context-param> 
      

       
      The issue has been introduced by this change

      Attachments

        Issue Links

          Activity

            People

              lukaszlenart Lukasz Lenart
              flyingfischer Markus Fischer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m