Richie Ju

Greenhorn
+ Follow
since Apr 28, 2017
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Richie Ju

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
6 years ago
Hi guys,

i need your help. I want to use a Custom Servlet , a Connector for HTTPS, and a Webapp twice in tomcat EE.

Problem: Tomcat EE disable others like "addServlet" | "Connector " if i use "addWebapp" or the other way round.
Some way to fix this?

Here is a code snipped




Thanks a lot for answers
6 years ago