Am 18.04.24 um 12:18 schrieb Lukasz Lenart:
czw., 18 kwi 2024 o 11:17 i...@flyingfischer.ch
napisał(a):
However, this still seems to be a breaking change, which at least should
be documented. Maybe is was wong by not specifying tiles.xml
specifically in the first place...
Yes, this is a
Debugging StrutsWildcardServletApplicationContext
and what gets loaded :
context.getResourcePaths("/")
folders only and files (ie index.jsp, robots.txt etc)
webapp/
and
getClass().getClassLoader().getResources("/")
webapp/WEB-INF/classes
webapp/WEB-INF/lib/*jars
Not sure the pattern is
czw., 18 kwi 2024 o 11:17 i...@flyingfischer.ch
napisał(a):
> However, this still seems to be a breaking change, which at least should
> be documented. Maybe is was wong by not specifying tiles.xml
> specifically in the first place...
Yes, this is a breaking change and it has to be
This resolves the issue, as Greg points out:
org.apache.struts2.tiles.StrutsTilesListener
org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG
/WEB-INF/tiles.xml
However, this still seems to be a breaking change, which at least should
be documented. Maybe
I simply use
org.apache.struts2.tiles.StrutsTilesListener
without any further params. Is this incomplete?
Markus
Am 18.04.24 um 10:29 schrieb Greg Huber:
How do you load your tiles from web.xml?
..For my setup this works.
org.apache.struts2.tiles.StrutsTilesListener
..what would the pattern be?
/WEB-INF/tiles*.xml
On 18/04/2024 09:35, Łukasz Lenart wrote:
Yes, this works but it doesn't support wildcards
org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG
/WEB-INF/tiles.xml
czw., 18 kwi 2024 o 10:30 Greg Huber napisał(a):
How
Yes, this works but it doesn't support wildcards
org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG
/WEB-INF/tiles.xml
czw., 18 kwi 2024 o 10:30 Greg Huber napisał(a):
>
> How do you load your tiles from web.xml?
>
> ..For my setup this works.
>
>
>
>
How do you load your tiles from web.xml?
..For my setup this works.
org.apache.struts2.tiles.StrutsTilesListener
org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG
/WEB-INF/tiles.xml
On 18/04/2024 08:47, i...@flyingfischer.ch
Am 18.04.24 um 09:27 schrieb Lukasz Lenart:
czw., 18 kwi 2024 o 09:05 i...@flyingfischer.ch
napisał(a):
My tiles definition remains unchanged under
/WEB-INF/tiles.xml
If I see this correctly, these changes do not include this situation?
czw., 18 kwi 2024 o 09:05 i...@flyingfischer.ch
napisał(a):
> My tiles definition remains unchanged under
>
> /WEB-INF/tiles.xml
>
> If I see this correctly, these changes do not include this situation?
>
> https://github.com/apache/struts/pull/896/commits/c7ae614824b4c158b9998575294d94fe9a746c41
Am 18.04.24 um 08:52 schrieb Lukasz Lenart:
czw., 18 kwi 2024 o 08:40i...@flyingfischer.ch
napisał(a):
Yes, struts2-tiles-plugin-6.4.0.jar is present. It is the same setup as
with 6.3.0
This is the only change related to loading Tiles definition, maybe it
will help you
czw., 18 kwi 2024 o 08:40 i...@flyingfischer.ch
napisał(a):
> Yes, struts2-tiles-plugin-6.4.0.jar is present. It is the same setup as
> with 6.3.0
This is the only change related to loading Tiles definition, maybe it
will help you
https://issues.apache.org/jira/browse/WW-5402
Am 18.04.24 um 08:34 schrieb Lukasz Lenart:
czw., 18 kwi 2024 o 08:22 i...@flyingfischer.ch
napisał(a):
...unfortunately, the next issue comes immediately:
18-04-2024 08:19:58.4 WARN org.apache.struts2.views.tiles.TilesResult -
could not find @TilesDefinition for action: start
18-04-2024
czw., 18 kwi 2024 o 08:22 i...@flyingfischer.ch
napisał(a):
> ...unfortunately, the next issue comes immediately:
>
>
> 18-04-2024 08:19:58.4 WARN org.apache.struts2.views.tiles.TilesResult -
> could not find @TilesDefinition for action: start
> 18-04-2024 08:19:58.4 ERROR
>
Thanks Lukasz
Am 18.04.24 um 08:11 schrieb Lukasz Lenart:
czw., 18 kwi 2024 o 08:02 i...@flyingfischer.ch
napisał(a):
With Struts 6.4.0 I get an error
18-04-2024 07:48:41.4 ERROR org.apache.struts2.dispatcher.Dispatcher -
Dispatcher initialization failed
Unable to load configuration. - bean
czw., 18 kwi 2024 o 08:02 i...@flyingfischer.ch
napisał(a):
>
> With Struts 6.4.0 I get an error
>
> 18-04-2024 07:48:41.4 ERROR org.apache.struts2.dispatcher.Dispatcher -
> Dispatcher initialization failed
>
> Unable to load configuration. - bean - jar:file:
>
Sorry, my fault: Forgot to delete the old struts-6.3.0 libraries. No
good idea to have different class version doubled...
But then tiles fails:
org.apache.tiles.core.definition.NoSuchDefinitionException: Cannot find
definition named 'home'
Best regards
Markus
Am 18.04.24 um 08:02 schrieb
17 matches
Mail list logo