Re: Unable to load configuration: /struts2-core-6.4.0.jar!/struts-beans.xml:39:72
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 breaking change and it has to be reverted/fixed, could you register a ticket to address this in Struts 6.5.0? Done: https://issues.apache.org/jira/projects/WW/issues/WW-5419 Thanks for your work and support! Markus Thanks in advance Lukasz - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org
Re: Unable to load configuration: /struts2-core-6.4.0.jar!/struts-beans.xml:39:72
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 going to work as there are no files to compare, than from webapp/ Just the filter TILES_DEFAULT_PATTERNS tiles*.xml Will load from webapp/WEB-INF/tiles1.xml On 18/04/2024 10:17, i...@flyingfischer.ch wrote: 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 is was wong by not specifying tiles.xml specifically in the first place... Thanks! Markus Am 18.04.24 um 11:08 schrieb i...@flyingfischer.ch: 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 org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG /WEB-INF/tiles.xml On 18/04/2024 08:47, i...@flyingfischer.ch wrote: 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? https://github.com/apache/struts/pull/896/commits/c7ae614824b4c158b9998575294d94fe9a746c41 @Deprecated String TILES_DEFAULT_PATTERN = "/WEB-INF/**/tiles*.xml,classpath*:META-INF/**/tiles*.xml"; public static final Set TILES_DEFAULT_PATTERNS = Collections.unmodifiableSet(new HashSet<>(Arrays.asList( "/WEB-INF/**/tiles*.xml", "classpath*:META-INF/**/tiles*.xml" ))); This seems to be a breaking change? Looks like, I assumed that ** should match any folder and even no-folder, could you move your tiles.xml into the "config" subfolder to see if this will fix the problem? hmm, I now tried the following versions, without success, moving /WEB-INF/tiles.xml to /WEB-INF/tiles2.xml /WEB-INF/conf/tiles.xml /WEB-INF/conf/tiles2.xml reverting back to struts-6.3.0 does not show the issue. There is option to use but I assume you do not use servlet config tiles org.apache.tiles.web.startup.TilesServlet org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG /WEB-INF/tiles.xml 2 No, I do not use this option. Thanks in advance Lukasz - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org
Re: Unable to load configuration: /struts2-core-6.4.0.jar!/struts-beans.xml:39:72
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 reverted/fixed, could you register a ticket to address this in Struts 6.5.0? Thanks in advance Lukasz - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org
Re: Unable to load configuration: /struts2-core-6.4.0.jar!/struts-beans.xml:39:72
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 is was wong by not specifying tiles.xml specifically in the first place... Thanks! Markus Am 18.04.24 um 11:08 schrieb i...@flyingfischer.ch: 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 org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG /WEB-INF/tiles.xml On 18/04/2024 08:47, i...@flyingfischer.ch wrote: 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? https://github.com/apache/struts/pull/896/commits/c7ae614824b4c158b9998575294d94fe9a746c41 @Deprecated String TILES_DEFAULT_PATTERN = "/WEB-INF/**/tiles*.xml,classpath*:META-INF/**/tiles*.xml"; public static final Set TILES_DEFAULT_PATTERNS = Collections.unmodifiableSet(new HashSet<>(Arrays.asList( "/WEB-INF/**/tiles*.xml", "classpath*:META-INF/**/tiles*.xml" ))); This seems to be a breaking change? Looks like, I assumed that ** should match any folder and even no-folder, could you move your tiles.xml into the "config" subfolder to see if this will fix the problem? hmm, I now tried the following versions, without success, moving /WEB-INF/tiles.xml to /WEB-INF/tiles2.xml /WEB-INF/conf/tiles.xml /WEB-INF/conf/tiles2.xml reverting back to struts-6.3.0 does not show the issue. There is option to use but I assume you do not use servlet config tiles org.apache.tiles.web.startup.TilesServlet org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG /WEB-INF/tiles.xml 2 No, I do not use this option. Thanks in advance Lukasz - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org
Re: Unable to load configuration: /struts2-core-6.4.0.jar!/struts-beans.xml:39:72
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 org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG /WEB-INF/tiles.xml On 18/04/2024 08:47, i...@flyingfischer.ch wrote: 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? https://github.com/apache/struts/pull/896/commits/c7ae614824b4c158b9998575294d94fe9a746c41 @Deprecated String TILES_DEFAULT_PATTERN = "/WEB-INF/**/tiles*.xml,classpath*:META-INF/**/tiles*.xml"; public static final Set TILES_DEFAULT_PATTERNS = Collections.unmodifiableSet(new HashSet<>(Arrays.asList( "/WEB-INF/**/tiles*.xml", "classpath*:META-INF/**/tiles*.xml" ))); This seems to be a breaking change? Looks like, I assumed that ** should match any folder and even no-folder, could you move your tiles.xml into the "config" subfolder to see if this will fix the problem? hmm, I now tried the following versions, without success, moving /WEB-INF/tiles.xml to /WEB-INF/tiles2.xml /WEB-INF/conf/tiles.xml /WEB-INF/conf/tiles2.xml reverting back to struts-6.3.0 does not show the issue. There is option to use but I assume you do not use servlet config tiles org.apache.tiles.web.startup.TilesServlet org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG /WEB-INF/tiles.xml 2 No, I do not use this option. Thanks in advance Lukasz - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org
Re: Unable to load configuration: /struts2-core-6.4.0.jar!/struts-beans.xml:39:72
..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 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 wrote: 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? https://github.com/apache/struts/pull/896/commits/c7ae614824b4c158b9998575294d94fe9a746c41 @Deprecated String TILES_DEFAULT_PATTERN = "/WEB-INF/**/tiles*.xml,classpath*:META-INF/**/tiles*.xml"; public static final Set TILES_DEFAULT_PATTERNS = Collections.unmodifiableSet(new HashSet<>(Arrays.asList( "/WEB-INF/**/tiles*.xml", "classpath*:META-INF/**/tiles*.xml" ))); This seems to be a breaking change? Looks like, I assumed that ** should match any folder and even no-folder, could you move your tiles.xml into the "config" subfolder to see if this will fix the problem? hmm, I now tried the following versions, without success, moving /WEB-INF/tiles.xml to /WEB-INF/tiles2.xml /WEB-INF/conf/tiles.xml /WEB-INF/conf/tiles2.xml reverting back to struts-6.3.0 does not show the issue. There is option to use but I assume you do not use servlet config tiles org.apache.tiles.web.startup.TilesServlet org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG /WEB-INF/tiles.xml 2 No, I do not use this option. Thanks in advance Lukasz - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org
Re: Unable to load configuration: /struts2-core-6.4.0.jar!/struts-beans.xml:39:72
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. > > > > 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 wrote: > > 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? > >>> > >>> https://github.com/apache/struts/pull/896/commits/c7ae614824b4c158b9998575294d94fe9a746c41 > >>> > >>> > >>>@Deprecated > >>> String TILES_DEFAULT_PATTERN = > >>> "/WEB-INF/**/tiles*.xml,classpath*:META-INF/**/tiles*.xml"; > >>> > >>> > >>> public static final Set TILES_DEFAULT_PATTERNS = > >>> Collections.unmodifiableSet(new HashSet<>(Arrays.asList( > >>> "/WEB-INF/**/tiles*.xml", > >>> "classpath*:META-INF/**/tiles*.xml" > >>> ))); > >>> > >>> > >>> This seems to be a breaking change? > >> Looks like, I assumed that ** should match any folder and even > >> no-folder, could you move your tiles.xml into the "config" subfolder > >> to see if this will fix the problem? > > > > > > hmm, I now tried the following versions, without success, moving > > /WEB-INF/tiles.xml to > > > > > > /WEB-INF/tiles2.xml > > > > /WEB-INF/conf/tiles.xml > > > > /WEB-INF/conf/tiles2.xml > > > > > > reverting back to struts-6.3.0 does not show the issue. > > > > > >> > >> There is option to use but I assume you do not use > >> servlet config > >> > >> > >> tiles > >> org.apache.tiles.web.startup.TilesServlet > >> > >> > >> org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG > >> > >> > >>/WEB-INF/tiles.xml > >> > >> > >> 2 > >> > > > > No, I do not use this option. > > > > > >> > >> Thanks in advance > >> Lukasz > >> > >> > > > > - > > To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org > > For additional commands, e-mail: dev-h...@struts.apache.org > > > > - > To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org > For additional commands, e-mail: dev-h...@struts.apache.org > - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org
Re: Unable to load configuration: /struts2-core-6.4.0.jar!/struts-beans.xml:39:72
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 wrote: 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? https://github.com/apache/struts/pull/896/commits/c7ae614824b4c158b9998575294d94fe9a746c41 @Deprecated String TILES_DEFAULT_PATTERN = "/WEB-INF/**/tiles*.xml,classpath*:META-INF/**/tiles*.xml"; public static final Set TILES_DEFAULT_PATTERNS = Collections.unmodifiableSet(new HashSet<>(Arrays.asList( "/WEB-INF/**/tiles*.xml", "classpath*:META-INF/**/tiles*.xml" ))); This seems to be a breaking change? Looks like, I assumed that ** should match any folder and even no-folder, could you move your tiles.xml into the "config" subfolder to see if this will fix the problem? hmm, I now tried the following versions, without success, moving /WEB-INF/tiles.xml to /WEB-INF/tiles2.xml /WEB-INF/conf/tiles.xml /WEB-INF/conf/tiles2.xml reverting back to struts-6.3.0 does not show the issue. There is option to use but I assume you do not use servlet config tiles org.apache.tiles.web.startup.TilesServlet org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG /WEB-INF/tiles.xml 2 No, I do not use this option. Thanks in advance Lukasz - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org
Re: Unable to load configuration: /struts2-core-6.4.0.jar!/struts-beans.xml:39:72
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? https://github.com/apache/struts/pull/896/commits/c7ae614824b4c158b9998575294d94fe9a746c41 @Deprecated String TILES_DEFAULT_PATTERN = "/WEB-INF/**/tiles*.xml,classpath*:META-INF/**/tiles*.xml"; public static final Set TILES_DEFAULT_PATTERNS = Collections.unmodifiableSet(new HashSet<>(Arrays.asList( "/WEB-INF/**/tiles*.xml", "classpath*:META-INF/**/tiles*.xml" ))); This seems to be a breaking change? Looks like, I assumed that ** should match any folder and even no-folder, could you move your tiles.xml into the "config" subfolder to see if this will fix the problem? hmm, I now tried the following versions, without success, moving /WEB-INF/tiles.xml to /WEB-INF/tiles2.xml /WEB-INF/conf/tiles.xml /WEB-INF/conf/tiles2.xml reverting back to struts-6.3.0 does not show the issue. There is option to use but I assume you do not use servlet config tiles org.apache.tiles.web.startup.TilesServlet org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG /WEB-INF/tiles.xml 2 No, I do not use this option. Thanks in advance Lukasz - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org
Re: Unable to load configuration: /struts2-core-6.4.0.jar!/struts-beans.xml:39:72
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 > > @Deprecated > String TILES_DEFAULT_PATTERN = > "/WEB-INF/**/tiles*.xml,classpath*:META-INF/**/tiles*.xml"; > > > public static final Set TILES_DEFAULT_PATTERNS = > Collections.unmodifiableSet(new HashSet<>(Arrays.asList( > "/WEB-INF/**/tiles*.xml", > "classpath*:META-INF/**/tiles*.xml" > ))); > > > This seems to be a breaking change? Looks like, I assumed that ** should match any folder and even no-folder, could you move your tiles.xml into the "config" subfolder to see if this will fix the problem? There is option to use but I assume you do not use servlet config tiles org.apache.tiles.web.startup.TilesServlet org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG /WEB-INF/tiles.xml 2 Thanks in advance Lukasz - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org
Re: Unable to load configuration: /struts2-core-6.4.0.jar!/struts-beans.xml:39:72
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 https://issues.apache.org/jira/browse/WW-5402 https://github.com/apache/struts/pull/896 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 @Deprecated String TILES_DEFAULT_PATTERN = "/WEB-INF/**/tiles*.xml,classpath*:META-INF/**/tiles*.xml"; public static final Set TILES_DEFAULT_PATTERNS = Collections.unmodifiableSet(new HashSet<>(Arrays.asList( "/WEB-INF/**/tiles*.xml", "classpath*:META-INF/**/tiles*.xml" ))); This seems to be a breaking change? Cheers Lukasz - To unsubscribe, e-mail:dev-unsubscr...@struts.apache.org For additional commands, e-mail:dev-h...@struts.apache.org
Re: Unable to load configuration: /struts2-core-6.4.0.jar!/struts-beans.xml:39:72
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 https://github.com/apache/struts/pull/896 Cheers Lukasz - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org
Re: Unable to load configuration: /struts2-core-6.4.0.jar!/struts-beans.xml:39:72
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 08:19:58.4 ERROR org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler - Exception occurred during processing request: Cannot find definition named 'start' org.apache.tiles.core.definition.NoSuchDefinitionException: Cannot find definition named 'start' I use a tiles.xml and not Annotations. Was there a change regarding xml definitions? Tiles support is already included in the Struts 2 Tiles plugin - did you replace all the JARs as well? Yes, struts2-tiles-plugin-6.4.0.jar is present. It is the same setup as with 6.3.0 Regards Lukasz - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org
Re: Unable to load configuration: /struts2-core-6.4.0.jar!/struts-beans.xml:39:72
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 > org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler - Exception > occurred during processing request: Cannot find definition named 'start' > org.apache.tiles.core.definition.NoSuchDefinitionException: Cannot find > definition named 'start' > > I use a tiles.xml and not Annotations. Was there a change regarding xml > definitions? Tiles support is already included in the Struts 2 Tiles plugin - did you replace all the JARs as well? Regards Lukasz - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org
Re: Unable to load configuration: /struts2-core-6.4.0.jar!/struts-beans.xml:39:72
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 - jar:file: .../.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SC/WEB-INF/lib/struts2-core-6.4.0.jar!/struts-beans.xml:39:72 The path looks suspicious, did you start the app from Eclipse directly? Can you build a WAR file and deploy it? This was my fault: I forgot to delete the old struts-6.3.0 libraries. No good idea to have different class version doubled... ...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 org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler - Exception occurred during processing request: Cannot find definition named 'start' org.apache.tiles.core.definition.NoSuchDefinitionException: Cannot find definition named 'start' I use a tiles.xml and not Annotations. Was there a change regarding xml definitions? This is probably related to the new caching mechanism. I added the new libraries from the standalone package at https://dist.apache.org/repos/dist/dev/struts/6.4.0/ caffeine-2.9.3.jar (this is outdated with 3.1.8 being the latest) checker-qual-3.1.9.0.jar (3.37.0 would be the latest) error_prone_annotations-2.10.0.jar (2.26.1 would be the latest) Did I miss something? This is the minimal set of JARs needed, if something is missing let me know: caffeine-2.9.3.jar commons-fileupload-1.5.jar commons-lang3-3.14.0.jar commons-text-1.11.0.jar freemarker-2.3.32.jar javassist-3.29.0-GA.jar log4j-api-2.23.1.jar ognl-3.3.4.jar struts2-core-6.4.0.jar These are all met. Regards Lukasz - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org
Re: Unable to load configuration: /struts2-core-6.4.0.jar!/struts-beans.xml:39:72
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: > .../.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SC/WEB-INF/lib/struts2-core-6.4.0.jar!/struts-beans.xml:39:72 The path looks suspicious, did you start the app from Eclipse directly? Can you build a WAR file and deploy it? > This is probably related to the new caching mechanism. I added the new > libraries from the standalone package at > > https://dist.apache.org/repos/dist/dev/struts/6.4.0/ > > caffeine-2.9.3.jar (this is outdated with 3.1.8 being the latest) > checker-qual-3.1.9.0.jar (3.37.0 would be the latest) > error_prone_annotations-2.10.0.jar (2.26.1 would be the latest) > > Did I miss something? This is the minimal set of JARs needed, if something is missing let me know: caffeine-2.9.3.jar commons-fileupload-1.5.jar commons-lang3-3.14.0.jar commons-text-1.11.0.jar freemarker-2.3.32.jar javassist-3.29.0-GA.jar log4j-api-2.23.1.jar ognl-3.3.4.jar struts2-core-6.4.0.jar Regards Lukasz - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org
Re: Unable to load configuration: /struts2-core-6.4.0.jar!/struts-beans.xml:39:72
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 i...@flyingfischer.ch: 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: .../.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SC/WEB-INF/lib/struts2-core-6.4.0.jar!/struts-beans.xml:39:72 This is probably related to the new caching mechanism. I added the new libraries from the standalone package at https://dist.apache.org/repos/dist/dev/struts/6.4.0/ caffeine-2.9.3.jar (this is outdated with 3.1.8 being the latest) checker-qual-3.1.9.0.jar (3.37.0 would be the latest) error_prone_annotations-2.10.0.jar (2.26.1 would be the latest) Did I miss something? Thanks and best regards Markus - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org
Unable to load configuration: /struts2-core-6.4.0.jar!/struts-beans.xml:39:72
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: .../.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SC/WEB-INF/lib/struts2-core-6.4.0.jar!/struts-beans.xml:39:72 This is probably related to the new caching mechanism. I added the new libraries from the standalone package at https://dist.apache.org/repos/dist/dev/struts/6.4.0/ caffeine-2.9.3.jar (this is outdated with 3.1.8 being the latest) checker-qual-3.1.9.0.jar (3.37.0 would be the latest) error_prone_annotations-2.10.0.jar (2.26.1 would be the latest) Did I miss something? Thanks and best regards Markus - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org