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

Lukasz Lenart commented on WW-4786:
-----------------------------------

This is strange as the definition file was found
{noformat}
2017-04-17 14:38:04,078 TRACE [RMI TCP Connection(4)-127.0.0.1] 
tiles.StrutsWildcardServletApplicationContext 
(StrutsWildcardServletApplicationContext.java:131) - Found resources [Resource 
/C:/Users/Ralph Wetter/mySources/pvs2/target/pvs-2.4/WEB-INF/tiles.xml at 
file:/C:/Users/Ralph Wetter/mySources/pvs2/target/pvs-2.4/WEB-INF/tiles.xml] 
for path tiles*.xml
[RMI TCP Connection(4)-127.0.0.1] INFO org.apache.tiles.access.TilesAccess - 
Publishing TilesContext for context: 
org.apache.struts2.tiles.StrutsWildcardServletApplicationContext
{noformat}

I wonder if it's an issue with a space, " ", in the path, could you check if 
the same happens when you try to start the project from a directory without a " 
"?

> 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 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}
> <context-param>
> <param-bame>org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG</param-name>
> <param-value>
> /WEB-INF/tiles-1.xml,
> /WEB-INF/tiles-2.xml,
> /WEB-INF/tiles-3.xml,
> /WEB-INF/tiles-4.xml
> </param-value>
> </context-param>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to