struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksandr Mashchenko (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4622) [struts2-tiles-plugin] [2.3.28] [StrutsWildcardServletTilesApplicationContext] getRealPath
Date Wed, 06 Apr 2016 16:55:25 GMT

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

Aleksandr Mashchenko commented on WW-4622:
------------------------------------------

Tried a few things, but seems like your assumption is correct -> isn't possible.

But besides defining {{DEFINITIONS_CONFIG}}, there is a second way. To move tiles definitions
into {{resources}} in that way they should be loaded via {{getClass().getClassLoader().getResources("/")}}.

[Commited|https://github.com/apache/struts/commit/b6a7a0e38a71707523517fa33570955c182e7bdc]
NPE check to make it possible and also ported whole thing to 2.3.x.

Does it resolves WW-4622, WW-4623, WW-4624? WDYT?

> [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.5, 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)

Mime
View raw message