Quantcast

Tiles: Upgrade from struts2-tiles3-plugin to struts2-tiles-plugin gives a NoSuchDefinitionException => Same Problem can be reproduces with struts2-showcase-2.5.10.1

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Tiles: Upgrade from struts2-tiles3-plugin to struts2-tiles-plugin gives a NoSuchDefinitionException => Same Problem can be reproduces with struts2-showcase-2.5.10.1

programmierer
Hi

I have  a pretty strange behaviour with my Struts2 Webapplication, to be
precise with struts2-tiles-plugin (Version 2.5.10.1) after upgrading to
Struts Version 2.5.10.1.  

Before upgrade I was using struts2-tiles3-plugin (delivered by maven)
witch just worked fine. After upgrading to struts2-tiles-plugin
(corresponding to https://struts.apache.org/docs/tiles-plugin.html)
tiles3 is not working anymore. It provides a NoSuchDefinitionException.
With the "old" struts2-tiles3-plugin everything works fine. After trying
around I found out, that this behaviour only appears on Windows-Systems:


On Windows: struts2-tiles-plugin (Version 2.5.10.1) delivers a
NoSuchDefinitionException

On Linux (Ubuntu 16.4): struts2-tiles-plugin (Version 2.5.10.1) works
fine => same source (same war-file) and same Tomcat-Version

Then I just thought "give it a try with struts2-showcase-2.5.10.1.war"
=> And voilà, the showcase-Application has exact the same behaviour.
Deployed on a Windows 10 System the showcase-Application delivers a
NoSuchDefinitionException. Same war deployed on Linux (Ubuntu 16.04)
works like a charm.

Is this a bug in struts2-tiles3-plugin or do I miss something?

Thanks for your help!

Ralph

...and Please excuse my bad english...
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Tiles: Upgrade from struts2-tiles3-plugin to struts2-tiles-plugin gives a NoSuchDefinitionException => Same Problem can be reproduces with struts2-showcase-2.5.10.1

Lukasz Lenart
2017-04-11 16:24 GMT+02:00  <[hidden email]>:
> On Linux (Ubuntu 16.4): struts2-tiles-plugin (Version 2.5.10.1) works
> fine => same source (same war-file) and same Tomcat-Version

Did you try to use a different Tomcat version? Did you try to define
configs by hand?

<context-param>
  <param-name>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>



Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Tiles: Upgrade from struts2-tiles3-plugin to struts2-tiles-plugin gives a NoSuchDefinitionException => Same Problem can be reproduces with struts2-showcase-2.5.10.1

programmierer
I tried 3 different Tomcat versions on Windows 10. Version 6.0.47,
7.0.72 and 9.0.0.M13. All Versions had the same behaviour (tiles of
struts2-showcase-2.5.10.1 is not working, NoSuchDefinitionException is
thrown).

But: It is working fine when I define the config by hand! :)

Running on Windows 10 seems to require the config by hand - on linux
it's working without.

Regards

Ralph

Am 2017-04-12 08:27, schrieb Lukasz Lenart:

> 2017-04-11 16:24 GMT+02:00  <[hidden email]>:
>
>> On Linux (Ubuntu 16.4): struts2-tiles-plugin (Version 2.5.10.1) works
>> fine => same source (same war-file) and same Tomcat-Version
>
> Did you try to use a different Tomcat version? Did you try to define
> configs by hand?
>
> <context-param>
> <param-name>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>
>
> Regards
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Tiles: Upgrade from struts2-tiles3-plugin to struts2-tiles-plugin gives a NoSuchDefinitionException => Same Problem can be reproduces with struts2-showcase-2.5.10.1

Lukasz Lenart
Cool, thanks a lot :)

Looks like we have an issue with resolving wildcarded tiles
definitions as by default Struts will try to find tiles*.xml [1],
whereas defining them by hand [2] fallbacks to the old behaviour.

Could you setup a log level to TRACE for the org.apache.struts2.tiles
package and share the results? And feel free to register a bug in
JIRA.

[1] https://github.com/apache/struts/blob/master/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesContainerFactory.java#L106
[2] https://github.com/apache/struts/blob/master/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesInitializer.java#L40


Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2017-04-12 20:57 GMT+02:00  <[hidden email]>:

> I tried 3 different Tomcat versions on Windows 10. Version 6.0.47,
> 7.0.72 and 9.0.0.M13. All Versions had the same behaviour (tiles of
> struts2-showcase-2.5.10.1 is not working, NoSuchDefinitionException is
> thrown).
>
> But: It is working fine when I define the config by hand! :)
>
> Running on Windows 10 seems to require the config by hand - on linux
> it's working without.
>
> Regards
>
> Ralph
>
> Am 2017-04-12 08:27, schrieb Lukasz Lenart:
>
>> 2017-04-11 16:24 GMT+02:00  <[hidden email]>:
>>
>>> On Linux (Ubuntu 16.4): struts2-tiles-plugin (Version 2.5.10.1) works
>>> fine => same source (same war-file) and same Tomcat-Version
>>
>> Did you try to use a different Tomcat version? Did you try to define
>> configs by hand?
>>
>> <context-param>
>> <param-name>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>
>>
>> Regards

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Tiles: Upgrade from struts2-tiles3-plugin to struts2-tiles-plugin gives a NoSuchDefinitionException => Same Problem can be reproduces with struts2-showcase-2.5.10.1

programmierer
I registered a bug in jira https://issues.apache.org/jira/browse/WW-4786
 and attached the Logs with level on Trace for org.apache.struts2.tiles.


Thank you for your help and please let me know if I can support you with
further testing

Am 2017-04-14 09:38, schrieb Lukasz Lenart:

> Cool, thanks a lot :)
>
> Looks like we have an issue with resolving wildcarded tiles
> definitions as by default Struts will try to find tiles*.xml [1 [1]],
> whereas defining them by hand [2 [2]] fallbacks to the old behaviour.
>
> Could you setup a log level to TRACE for the org.apache.struts2.tiles
> package and share the results? And feel free to register a bug in
> JIRA.
>
> [1] https://github.com/apache/struts/blob/master/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesContainerFactory.java#L106
> [2] https://github.com/apache/struts/blob/master/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesInitializer.java#L40
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> 2017-04-12 20:57 GMT+02:00  <[hidden email]>: I tried 3 different Tomcat versions on Windows 10. Version 6.0.47,
> 7.0.72 and 9.0.0.M13. All Versions had the same behaviour (tiles of
> struts2-showcase-2.5.10.1 is not working, NoSuchDefinitionException is
> thrown).
>
> But: It is working fine when I define the config by hand! :)
>
> Running on Windows 10 seems to require the config by hand - on linux
> it's working without.
>
> Regards
>
> Ralph
>
> Am 2017-04-12 08:27, schrieb Lukasz Lenart:
>
> 2017-04-11 16:24 GMT+02:00  <[hidden email]>:
>
> On Linux (Ubuntu 16.4): struts2-tiles-plugin (Version 2.5.10.1) works
> fine => same source (same war-file) and same Tomcat-Version
> Did you try to use a different Tomcat version? Did you try to define
> configs by hand?
>
> <context-param>
> <param-name>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>
>
> Regards

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]
 

Links:
------
[1]
https://github.com/apache/struts/blob/master/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesContainerFactory.java#L106
[2]
https://github.com/apache/struts/blob/master/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesInitializer.java#L40
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Tiles: Upgrade from struts2-tiles3-plugin to struts2-tiles-plugin gives a NoSuchDefinitionException => Same Problem can be reproduces with struts2-showcase-2.5.10.1

Lukasz Lenart
Thanks :)

2017-04-17 14:53 GMT+02:00  <[hidden email]>:

> I registered a bug in jira https://issues.apache.org/jira/browse/WW-4786
> and attached the Logs with level on Trace for org.apache.struts2.tiles.
>
> Thank you for your help and please let me know if I can support you with
> further testing
>
>
>
>
>
> Am 2017-04-14 09:38, schrieb Lukasz Lenart:
>
> Cool, thanks a lot :)
>
> Looks like we have an issue with resolving wildcarded tiles
> definitions as by default Struts will try to find tiles*.xml [1],
> whereas defining them by hand [2] fallbacks to the old behaviour.
>
> Could you setup a log level to TRACE for the org.apache.struts2.tiles
> package and share the results? And feel free to register a bug in
> JIRA.
>
> [1]
> https://github.com/apache/struts/blob/master/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesContainerFactory.java#L106
> [2]
> https://github.com/apache/struts/blob/master/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesInitializer.java#L40
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> 2017-04-12 20:57 GMT+02:00  <[hidden email]>:
>
> I tried 3 different Tomcat versions on Windows 10. Version 6.0.47,
> 7.0.72 and 9.0.0.M13. All Versions had the same behaviour (tiles of
> struts2-showcase-2.5.10.1 is not working, NoSuchDefinitionException is
> thrown).
>
> But: It is working fine when I define the config by hand! :)
>
> Running on Windows 10 seems to require the config by hand - on linux
> it's working without.
>
> Regards
>
> Ralph
>
> Am 2017-04-12 08:27, schrieb Lukasz Lenart:
>
> 2017-04-11 16:24 GMT+02:00  <[hidden email]>:
>
> On Linux (Ubuntu 16.4): struts2-tiles-plugin (Version 2.5.10.1) works
> fine => same source (same war-file) and same Tomcat-Version
>
>
> Did you try to use a different Tomcat version? Did you try to define
> configs by hand?
>
> <context-param>
> <param-name>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>
>
> Regards
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...