You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "victorsosa (JIRA)" <ji...@apache.org> on 2016/04/01 14:46:25 UTC

[jira] [Comment Edited] (WW-4622) [struts2-tiles-plugin] [2.3.28] [StrutsWildcardServletTilesApplicationContext] getRealPath

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

victorsosa edited comment on WW-4622 at 4/1/16 12:45 PM:
---------------------------------------------------------

[~aleksandr-m] You just proof my point; This is a container issue and not a Struts issue.

"This method returns null if the servlet container cannot translate the virtual path to a real path for any reason (such as when the content is being made available from a .war archive)."

We can't change that API - [ServletContext.getRealPath(String path)|http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContext.html#getRealPath(java.lang.String)]




was (Author: victorsosa):
[~aleksandr-m] You just proof my point; This is a container issue and not a Struts issue.

We can't change that API - [ServletContext.getRealPath(String path)|http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContext.html#getRealPath(java.lang.String)]



> [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
>
> 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)