Markus Fischer created WW-5419:
----------------------------------

             Summary: Autoloading of tiles.xml fails in Struts-6.4.0
                 Key: WW-5419
                 URL: https://issues.apache.org/jira/browse/WW-5419
             Project: Struts 2
          Issue Type: Bug
          Components: Plugin - Tiles
    Affects Versions: 6.4.0
            Reporter: Markus Fischer
             Fix For: 6.5.0


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 without a 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:

 

[https://github.com/apache/struts/pull/896/commits/c7ae614824b4c158b9998575294d94fe9a746c41|https://github.com/apache/struts/pull/896/commits/c7ae614824b4c158b9998575294d94fe9a746c41]

 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to