[ 
https://issues.apache.org/jira/browse/WW-4622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15223796#comment-15223796
 ] 

Lukasz Lenart commented on WW-4622:
-----------------------------------

First:
[~sebastien_leboucher] you should be able to use the previous version of plugin 
with Struts 2.3.28 - just to get security fixes

Secondly:
I have already discovered such problem in restricted environment e.g. Google 
AppEngine and solved it as 
[follow|https://github.com/apache/struts/commit/6770b35ce78f89f16646f15d303cddb46c8de34a]
 in Struts 2.5, so it's a fallback to the old behaviour if user specified Tiles 
definitions via {{DEFINITIONS_CONFIG}}.

Based on your discussion and problems defined in WW-4624 my idea is as follow:
- port my solution from Struts 2.5 to use static resource loading as a fallback
- define dedicated {{<init-param/>}} that will allow define custom patterns to 
be used in {{StrutsWildcardServletTilesApplicationContext}}
- add Victor's solution with loading multiple definitions and new default 
pattern i.e. {{**/tiles*.xml}}

> [struts2-tiles-plugin] [2.3.28] 
> [StrutsWildcardServletTilesApplicationContext] getRealPath
> ------------------------------------------------------------------------------------------
>
>                 Key: WW-4622
>                 URL: https://issues.apache.org/jira/browse/WW-4622
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tiles
>    Affects Versions: 2.3.28
>            Reporter: Sebastien Leboucher
>            Priority: Blocker
>             Fix For: 2.3.29
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to