Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2CE39200C5A for ; Tue, 18 Apr 2017 17:41:47 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2B815160BA1; Tue, 18 Apr 2017 15:41:47 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 73932160B90 for ; Tue, 18 Apr 2017 17:41:46 +0200 (CEST) Received: (qmail 54726 invoked by uid 500); 18 Apr 2017 15:41:45 -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 54716 invoked by uid 99); 18 Apr 2017 15:41:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Apr 2017 15:41:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 1223E1AA2C5 for ; Tue, 18 Apr 2017 15:41:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id MF0MkCDy3ix2 for ; Tue, 18 Apr 2017 15:41:42 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 7E7AB60DB8 for ; Tue, 18 Apr 2017 15:41:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 0D8ECE04FE for ; Tue, 18 Apr 2017 15:41:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id BEE5921B46 for ; Tue, 18 Apr 2017 15:41:41 +0000 (UTC) Date: Tue, 18 Apr 2017 15:41:41 +0000 (UTC) From: "Ralph Wetter (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (WW-4786) Upgrade from struts2-tiles3-plugin to struts2-tiles-plugin gives a NoSuchDefinitionException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 18 Apr 2017 15:41:47 -0000 [ https://issues.apache.org/jira/browse/WW-4786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15972933#comment-15972933 ] Ralph Wetter edited comment on WW-4786 at 4/18/17 3:41 PM: ----------------------------------------------------------- Bingo! That's the issue. The test without a space in the path is successfull (see log). So the "wildcard-feature" is only working when there is no space in the path. If you have a space in the path, defining the config by hand is needed. I also checked that behaviour in linux. And I'm happy to say that also on linux the NoSuchDefinitionException is thrown when there is a space in the path. :) was (Author: raw): Bingo! That's the issue. The test without a space in the path is successfull (see log). So the "wildcard-feature" is only working whten there is no space in the path. If you have a space in the path, defining the config by hand is needed. I also checked that behaviour in linux. And I'm happy to say that also on linux the NoSuchDefinitionException is thrown when there is a space in the path. :) > Upgrade from struts2-tiles3-plugin to struts2-tiles-plugin gives a NoSuchDefinitionException > -------------------------------------------------------------------------------------------- > > Key: WW-4786 > URL: https://issues.apache.org/jira/browse/WW-4786 > Project: Struts 2 > Issue Type: Bug > Components: Plugin - Tiles > Affects Versions: 2.5.10 > Environment: - Java 8 > - Tested with Tomcat Versions 6.0.47, 7.0.72 and 9.0.0.M13 > - Windows 10 > Reporter: Ralph Wetter > Priority: Minor > Fix For: 2.5.next > > Attachments: Log without space in path.txt, Log with Trace org.apache.struts2.tiles.txt, Log with workaround. Trace org.apache.struts2.tiles - Kopie.txt > > > When upgrading from struts2-tiles3-plugin to struts2-tiles-plugin > (corresponding to https://struts.apache.org/docs/tiles-plugin.html) > tiles3 is not working anymore. It provides a NoSuchDefinitionException. > This behaviour only appears on Windows-Systems. On Linux the same Application (same sourcecode, same Java, same Tomcat) is just working fine. > Workaround: > There is an easy workaround. On Windows 10 the struts2-tiles-plugin is working fine when defining the config by hand. > {code:xml} > > org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG > > /WEB-INF/tiles-1.xml, > /WEB-INF/tiles-2.xml, > /WEB-INF/tiles-3.xml, > /WEB-INF/tiles-4.xml > > > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)