Ok, so it's related to this issue
https://issues.apache.org/jira/browse/WW-5185

an easy workaround is this

<context-param>
    
<param-name>org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG</param-name>
    <param-value>/WEB-INF/tiles.xml</param-value>
</context-param>

more details in this thread
https://lists.apache.org/thread/v0sroj52gg5ok3rpcyxdlqrhkrz51q9d


wt., 26 lip 2022 o 20:29 A Name <abt5...@gmail.com> napisał(a):
>
> Lukasz,
>
> We are currently using all the libraries we need from the 6.0.0 release,
> including the tiles plugin when we get the error dump I provided.  We've
> checked all the struts libraries and they are at the current versions. We
> also have read the migration guide and the internal notes and not found any
> indicator as to why we are having problems. Tomcat9 uses Servlet API 4.0
> and we are running a recent Java 8.  We looked at past Struts 2.5 release
> information to see if we had missed anything about deprecated functionality
> that was removed in 6.0.0 but didn't see anything.
>
> I only noted trying the 2.5.30 tiles plugin library to see if that
> triggered an idea. Sorry if that caused confusion.
>
> Just for reference - is there a timeline on the Struts 2.5x series - for
> obvious security reasons, we want to make sure we aren't running into EOL
> if we stay on Struts 2.5.30 for the moment while we seek an answer to what
> is blowing up Struts 6.0.0
>
> On Tue, Jul 26, 2022 at 2:11 PM Lukasz Lenart <lukaszlen...@apache.org>
> wrote:
>
> > Please do not use the old plugin, it isn't compatible with Struts
> > 6.0.0. Run the application with the proper version of the plugin and
> > report any warnings. Have you read the migration guide? Also did you
> > notice internal changes
> >
> > https://cwiki.apache.org/confluence/display/WW/Version+Notes+6.0.0#VersionNotes6.0.0-InternalChanges
> > ?
> >
> > Regards
> > Łukasz
> >
> > wt., 26 lip 2022 o 18:55 A Name <abt5...@gmail.com> napisał(a):
> > >
> > > Hi,
> > >
> > > I have a legacy application running fine in struts 2.5.30 using Java 8
> > and
> > > Tomcat 9.  When I upgraded to Struts 6.0, it fails to run.  If I leave
> > the
> > > struts-tiles plugin at the 2.5.30 version, but upgrade the other
> > components
> > > to 6.0, it comes up but our selection lists don't work.
> > >
> > > Any suggestions - here's the core dump with everything at 6.0.
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: 13:36:50.135
> > > [ajp-nio-127.0.0.1-8009-exec-5] ERROR
> > > org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler - Exception
> > > occurred during processing request: Cannot find definition named
> > > '.security.Warning'
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9:
> > > org.apache.tiles.definition.NoSuchDefinitionException: Cannot find
> > > definition named '.security.Warning'
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.tiles.impl.mgmt.CachingTilesContainer.render(CachingTilesContainer.java:123)
> > > ~[tiles-core-3.0.8.jar:3.0.8]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:158)
> > > ~[struts2-tiles-plugin-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.struts2.result.StrutsResultSupport.execute(StrutsResultSupport.java:206)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:363)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:280)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:179)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:49)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.struts2.interceptor.FetchMetadataInterceptor.intercept(FetchMetadataInterceptor.java:76)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.struts2.interceptor.CoopInterceptor.intercept(CoopInterceptor.java:57)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.struts2.interceptor.CoepInterceptor.intercept(CoepInterceptor.java:56)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.doIntercept(ConversionErrorInterceptor.java:143)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:146)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:146)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:202)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:67)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:133)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:89)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:242)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:101)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:142)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:161)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:175)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.struts2.interceptor.csp.CspInterceptor.intercept(CspInterceptor.java:44)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.struts2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:140)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:209)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:229)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:196)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.struts2.factory.StrutsActionProxy.execute(StrutsActionProxy.java:48)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:637)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:79)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:140)
> > > ~[struts2-core-6.0.0.jar:6.0.0]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
> > > ~[catalina.jar:9.0.58]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
> > > ~[catalina.jar:9.0.58]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
> > > ~[catalina.jar:9.0.58]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
> > > ~[catalina.jar:9.0.58]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
> > > ~[catalina.jar:9.0.58]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
> > > ~[catalina.jar:9.0.58]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687)
> > > ~[catalina.jar:9.0.58]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
> > > ~[catalina.jar:9.0.58]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > > org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:433)
> > > ~[tomcat-coyote.jar:9.0.58]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
> > > ~[tomcat-coyote.jar:9.0.58]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:889)
> > > ~[tomcat-coyote.jar:9.0.58]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > > org.apache.tomcat.util.net
> > .NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1735)
> > > ~[tomcat-coyote.jar:9.0.58]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > > org.apache.tomcat.util.net
> > .SocketProcessorBase.run(SocketProcessorBase.java:49)
> > > ~[tomcat-coyote.jar:9.0.58]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
> > > ~[tomcat-util.jar:9.0.58]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
> > > ~[tomcat-util.jar:9.0.58]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > >
> > org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> > > ~[tomcat-util.jar:9.0.58]
> > >
> > > Jul 25 13:36:50 myserver01 tomcat9: at
> > > java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_332]
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >



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

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to