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

[struts2-tiles-plugin] [2.3.28] [StrutsWildcardServletTilesApplicationContext] getRealPath

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.3.28
    • Fix Version/s: 2.3.29, 2.5.1
    • Component/s: Plugin - Tiles
    • Labels:
      None

      Description

      Hi,

      Since version 2.3.28, the "struts2-tiles-plugin" API introduce a new listener (StrutsWildcardServletTilesApplicationContext).

      This listener make a call to ServletContext.getRealPath method.
      However this method can't be used with a tomcat "unpackWARs=false" deployment scheme (https://wiki.apache.org/tomcat/RemoveUnpackWARs).

      Cause when war file is not exploded, this method return always "null".
      So i get a NullPointerException during context loading !

      Could you restore a classpath context loading ? As in the previous version ?

      thanks

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sebastien_leboucher Sebastien Leboucher
              • Votes:
                1 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: