This is embarrassing. I have apparently forgotten how to operate Tomcat. I just downloaded openjdk 17, Tomcat 10.1.5 to a clean Windows 10, upacked everything, created a myapp-base with a .bat like:
--8<-- bin\start.bat --8<-- setlocal set "JRE_HOME=C:\tmp\java17" set "CATALINA_HOME=C:\tmp\tomcat10" set "CATALINA_BASE=C:\tmp\myapp-base" %CATALINA_HOME%\bin\catalina.bat start -- Copied webapp files into the webapps dir. On bin\start I get some INFO in the console like: Jan 31, 2023 3:46:02 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-nio-8080"] Jan 31, 2023 3:46:02 PM org.apache.catalina.startup.Catalina load INFO: Server initialization in [797] milliseconds Jan 31, 2023 3:46:02 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Catalina] Jan 31, 2023 3:46:02 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/10.1.5] Jan 31, 2023 3:46:02 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory [C:\tmp\myapp-base\webapps\myapp] Jan 31, 2023 3:46:02 PM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment INFO: No global web.xml found Jan 31, 2023 3:46:03 PM org.apache.jasper.servlet.TldScanner scanJars INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. Jan 31, 2023 3:46:03 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deployment of web application directory [C:\tmp\myapp-base\webapps\myapp] has finished in [656] ms Jan 31, 2023 3:46:03 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-nio-8080"] Jan 31, 2023 3:46:03 PM org.apache.catalina.startup.Catalina start INFO: Server startup in [765] milliseconds The myapp servlet filter init runs. A localhost access log is created in myapp-base\logs. But trying to access anything through localhost:8080 or remotely by hostname fails with nothing but 404: 10.22.10.30 - - [31/Jan/2023:15:14:49 -0500] "GET /myapp/ HTTP/1.1" 404 682 10.22.10.30 - - [31/Jan/2023:15:14:49 -0500] "GET /favicon.ico HTTP/1.1" 404 682 0:0:0:0:0:0:0:1 - - [31/Jan/2023:15:22:43 -0500] "GET / HTTP/1.1" 404 682 0:0:0:0:0:0:0:1 - - [31/Jan/2023:15:22:43 -0500] "GET /favicon.ico HTTP/1.1" 404 682 0:0:0:0:0:0:0:1 - - [31/Jan/2023:15:22:49 -0500] "GET /myapp HTTP/1.1" 302 - 0:0:0:0:0:0:0:1 - - [31/Jan/2023:15:22:49 -0500] "GET /myapp/ HTTP/1.1" 404 682 0:0:0:0:0:0:0:1 - - [31/Jan/2023:15:22:53 -0500] "GET /myapp/index.jsp HTTP/1.1" 404 682 So now I'm just trying to find out how to enable an error log and for the life of me I'm completely blanking. How does one enable a debug log? The documentation about such things is pretty cryptic. How can I diagnose this further? Thanks, Mike