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

Upgrade from struts2-tiles3-plugin to struts2-tiles-plugin gives a NoSuchDefinitionException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.10
    • Fix Version/s: 2.5.12
    • Component/s: Plugin - Tiles
    • Labels:
      None
    • Environment:
      • Java 8
      • Tested with Tomcat Versions 6.0.47, 7.0.72 and 9.0.0.M13
      • Windows 10

      Description

      When upgrading from struts2-tiles3-plugin to struts2-tiles-plugin
      (corresponding to https://struts.apache.org/docs/tiles-plugin.html)
      tiles3 is not working anymore. It provides a NoSuchDefinitionException.
      This behaviour only appears on Windows-Systems. On Linux the same Application (same sourcecode, same Java, same Tomcat) is just working fine.

      Workaround:
      There is an easy workaround. On Windows 10 the struts2-tiles-plugin is working fine when defining the config by hand.

      <context-param>
      <param-bame>org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG</param-name>
      <param-value>
      /WEB-INF/tiles-1.xml,
      /WEB-INF/tiles-2.xml,
      /WEB-INF/tiles-3.xml,
      /WEB-INF/tiles-4.xml
      </param-value>
      </context-param>
      

        Attachments

          Activity

            People

            • Assignee:
              lukaszlenart Lukasz Lenart
              Reporter:
              raw Ralph Wetter
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: