Tomcat servlet deployment question

L

luke

In simpler times (circa Tomcat version 3), I could deploy a servlet in
a given context just by bunging the .class file into WEB-INF/classes. I
only needed to add an entry to WEB-INF/web.xml if I wanted to assign
initialisation parameters or mappings.

These days, it doesn't appear to be so simple. I note that the web.xml
file in the 4.0 version of Tomcat has blown out to 10K of repetetive
crud. But I still long for simpler times.

Can anybody tell me if there is any way that I can make my webapp load
any given servlet, even if there is no specific entry for it in
web.xml? It's bloody annoying that I have to restart Tomcat every time
I want to chuck in a little test or diagnostic servlet.

Many thanks for any help.

Cheers,
Luke
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top