[ https://issues.apache.org/jira/browse/WW-5430?focusedWorklogId=924009&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-924009 ]
ASF GitHub Bot logged work on WW-5430: -------------------------------------- Author: ASF GitHub Bot Created on: 21/Jun/24 14:29 Start Date: 21/Jun/24 14:29 Worklog Time Spent: 10m Work Description: sonarcloud[bot] commented on PR #970: URL: https://github.com/apache/struts/pull/970#issuecomment-2182081889 ## [](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=970) **Quality Gate passed** Issues  [0 New issues](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=970&resolved=false&sinceLeakPeriod=true)  [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=970&resolutions=WONTFIX) Measures  [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_struts&pullRequest=970&resolved=false&sinceLeakPeriod=true)  [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=970&metric=new_coverage&view=list)  [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=970&metric=new_duplicated_lines_density&view=list) [See analysis details on SonarCloud](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=970) Issue Time Tracking ------------------- Worklog Id: (was: 924009) Time Spent: 0.5h (was: 20m) > Struts 7.0.0-M6 - Runtime Error freemarker.cache.WebappTemplateLoader > --------------------------------------------------------------------- > > Key: WW-5430 > URL: https://issues.apache.org/jira/browse/WW-5430 > Project: Struts 2 > Issue Type: Bug > Components: Core > Affects Versions: 7.0.0 > Reporter: Rubens Gomes > Priority: Major > Time Spent: 0.5h > Remaining Estimate: 0h > > Getting runtime error below with 7.0.0-M6. It appears that method > > {{org.apache.struts2.views.freemarker.FreemarkerManager.createTemplateLoader}} > is using {{freemarker.cache.WebappTemplateLoader}} which is based on legacy > {{{}javax.servlet{}}}? > {noformat} > ....Note that this is for the legacy "javax" Servlet API; for Jakarta (that > is, in modern Servlet containers), use > freemarker.ext.jakarta.servlet.WebappTemplateLoader instead (since 2.3.33). > ..." > java.lang.NoSuchMethodError: 'void > freemarker.cache.WebappTemplateLoader.<init>(jakarta.servlet.ServletContext)' > at > org.apache.struts2.views.freemarker.FreemarkerManager.createTemplateLoader(FreemarkerManager.java:468) > ~[struts2-core-7.0.0-M6.jar:7.0.0-M6] > at > org.apache.struts2.views.freemarker.FreemarkerManager.init(FreemarkerManager.java:293) > ~[struts2-core-7.0.0-M6.jar:7.0.0-M6] > at > org.apache.struts2.views.freemarker.FreemarkerManager.getConfiguration(FreemarkerManager.java:265) > ~[struts2-core-7.0.0-M6.jar:7.0.0-M6] > at > org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler.init(DefaultDispatcherErrorHandler.java:66) > ~[struts2-core-7.0.0-M6.jar:7.0.0-M6] > at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:632) > ~[struts2-core-7.0.0-M6.jar:7.0.0-M6] > at > org.apache.struts2.dispatcher.InitOperations.initDispatcher(InitOperations.java:48) > ~[struts2-core-7.0.0-M6.jar:7.0.0-M6] > at > org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:60) > ~[struts2-core-7.0.0-M6.jar:7.0.0-M6] > at > org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:245) > ~[tomcat-embed-core-10.1.24.jar:10.1.24] > at > org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:102) > ~[tomcat-embed-core-10.1.24.jar:10.1.24] > at > org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3846) > ~[tomcat-embed-core-10.1.24.jar:10.1.24] > at > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4450) > ~[tomcat-embed-core-10.1.24.jar:10.1.24] > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171) > ~[tomcat-embed-core-10.1.24.jar:10.1.24] > at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1203) > ~[tomcat-embed-core-10.1.24.jar:10.1.24] > at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1193) > ~[tomcat-embed-core-10.1.24.jar:10.1.24] > at > java.base/java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:317) > ~[na:na] > {noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)