hey first thanks tim for good explanation.
i have to use a Tomcat Embedded server, the connector part is fixed yet its running i forgot only the "s" on https to test it.
Second, servlets do not stand alone. A servlet is part of a webapp. A webapp is deployed in WAR format (either zipped or exploded) under a defined webapp context path, which is what Tomcat looks for when it parses a URL request.
First i don't have any wars or server.xml or web.xml.
I used tomcatt ee and hardcoded xml structure in java.
So the addServlet method expects to find a webapp that has already been deployed and add that servlet to the webapp. In almost all cases, that is a bad thing to do.
thanks glad to hear that
Now i 'm unterstood tomcat a little better.
Still can you tell me how I add a Servlet to the standard webapp with tomcat.addwebapp command?
(Goal: for example: run a index.html site & Servlet twice )
Kindly regards Richie