aspose file tools
The moose likes Servlets and the fly likes Is there a way to Invoke a Servlet without having any Servlet Mapping Data in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Is there a way to Invoke a Servlet without having any Servlet Mapping Data in web.xml" Watch "Is there a way to Invoke a Servlet without having any Servlet Mapping Data in web.xml" New topic
Author

Is there a way to Invoke a Servlet without having any Servlet Mapping Data in web.xml

venki sheshgiri
Greenhorn

Joined: Jan 01, 2006
Posts: 28

I'm seeing couple of Servlets getting called without a Servlet mapping element being present in Deployment Descriptor.

The url being hit is http://mydomain.com/Approot/Servlet/com.mycompay.mypackage.ServletClassName.

Can anyone explain me how is this possible ?

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56201
    
  13

That's a discredited way of doing things, and not to be used.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
venki sheshgiri
Greenhorn

Joined: Jan 01, 2006
Posts: 28
Hi Bear Bibeault ,

Thanks for the clarifications was not aware of the thing called InvokerServlet.

I need couple of more inputs w.r.t this.

1) Is this InvokerServlet part of Servlet 2.3\2.4 Specification
2) Is it something specific to Tomcat (The servlets are getting invoked in Websphere also.).
3) Where exactly is this InvokerServlet mapping is done (any standard xml file read by Web Containers).




William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12269
    
    1
1. No - it was supposed to be a way for beginners to experiment rapidly without having to work with web.xml - turned out to have disastrous consequences when people tried to use it for serious work.
2. apparently not
3. see the "default" web.xml in the tomcat conf directory where it is commented out - tomcat5.5.9


Bill


Java Resources at www.wbrogden.com
venki sheshgiri
Greenhorn

Joined: Jan 01, 2006
Posts: 28
Hi William,

Thanks for the Info they were really Valuable.

Venki
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Is there a way to Invoke a Servlet without having any Servlet Mapping Data in web.xml
 
Similar Threads
Confusion in Mock exam qn
404 Error when trying to use a filter for a servlet
Doubt on Invoker Servlet
servlet-mapping
HTTP Status 404 - /ServletDemoOne/