Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C955119E1C for ; Wed, 6 Apr 2016 16:44:26 +0000 (UTC) Received: (qmail 35329 invoked by uid 500); 6 Apr 2016 16:44:25 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 35250 invoked by uid 500); 6 Apr 2016 16:44:25 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 35006 invoked by uid 99); 6 Apr 2016 16:44:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Apr 2016 16:44:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 892342C1F61 for ; Wed, 6 Apr 2016 16:44:25 +0000 (UTC) Date: Wed, 6 Apr 2016 16:44:25 +0000 (UTC) From: "Aleksandr Mashchenko (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (WW-4622) [struts2-tiles-plugin] [2.3.28] [StrutsWildcardServletTilesApplicationContext] getRealPath MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-4622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15225807#comment-15225807 ] Aleksandr Mashchenko edited comment on WW-4622 at 4/6/16 4:43 PM: ------------------------------------------------------------------ (y) Looks good. I think it is ok if: 1) w/o {{DEFINITIONS_CONFIG}} - {{StrutsWildcardServletTilesApplicationContext}} will load only from {{/WEB-INF}} (no sub-folders) all {{tiles*}} 2) with {{DEFINITIONS_CONFIG}} - load all specified files -And both ways should work even if {{getRealPath()}} returns null.- was (Author: aleksandr-m): (y) Looks good. I think it is ok if: 1) w/o {{DEFINITIONS_CONFIG}} - {{StrutsWildcardServletTilesApplicationContext}} will load only from {{/WEB-INF}} (no sub-folders) all {{tiles*}} 2) with {{DEFINITIONS_CONFIG}} - load all specified files And both ways should work even if {{getRealPath()}} returns null. > [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)