Hello, the path in the tomcat manager app brings you to http://localhost/WEBAPP/ or http://localhost/WEBAPP/index.html via HTTP GET. Is your servlet configured to reply to that url? This is normally done in web.xml with the <url-pattern> Element.
Moreover: as you seem to be writing a doPost() Method. You will get a 405 when using HTTP GET via the link at best. Frank Myers wrote (at 2024-10-16 19:21 +0000): > Hi all, > > I'm running Tomcat9 on Ubuntu. > I copied a servlet war (a webhook) file which was automatically deployed in > my webapps directory. > Using the "Tomcat Web Application Manager" I see my servlet path and display > name listed. > > When I click on the path I get the "HTTP Status 404 – Not Found" and > description of "Description The origin server did not find a current > representation for the target resource or is not willing to disclose that one > exists.". > > When I try to drive the URL for the servlet using curl, I get the same > message. > > Tomcat obviously sees the WAR file and unpacks it, but is not executing the > servlet java code. > In the "dopost()" method, the first thing I do is write to the log: > resp.setContentType("text/html"); > ServletContext CTX = getServletConfig().getServletContext(); > CTX.log("WHMerge Entered:"); > I check the logs and the message never appears. > > I suspect that I made a mistake configuring Tomcat, but am not sure where... > > Any advise would be greatly appreciated. > > With kindest regards, > > Franklin Myers > > -- Mit freundlichem Gruß / With kind regards Holger Klawitter -- listen <at> klawitter <dot> de --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org