arturobernalg opened a new pull request, #610: URL: https://github.com/apache/jspwiki/pull/610
web.xml declares org.apache.wiki.auth.SessionMonitor as a listener, so the servlet container creates it with the constructor without arguments. The change of JSPWIKI-1178 (#307) removed that constructor, and the web application of the current master does not start in Tomcat: the listener fails with NoSuchMethodException: SessionMonitor.<init>(). The unit tests do not start a container, so they did not show it. This change restores the constructor and adds SessionMonitorListenerTest, which creates the listener by reflection, as the container does. It fails without the change. Checked with the war of master in Tomcat 10.1: without the change the context fails to start; with it, it starts, pages are served, and a user can register and log in. Full "mvn clean package" passes. https://claude.ai/code/session_01BrsHTcHemouztMgt7JzhEZ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
