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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.3.28
    • 2.3.29, 2.5.1
    • Plugin - Tiles
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: