Chandra, I tried your scenario on Tomcat and Servlert2 is servicing the request. So what I said early on without trying it is not right. I would like someone else to try this and confirm. Here is my code

Promod kumar
Ranch Hand

Joined: Jun 26, 2006
Posts: 90

posted Aug 13, 2007 15:54:00

0

If I reverse the order in web.xml, Servlet1 is servicing the request. Basically the second one overrides the first one or the last one overrides the previous ones.

Any J2EE product must be able to accept a J2EE application delivered as a .ear file or a stand-alone J2EE module delivered as a .jar,.war, or .rar file (as appropriate to its type). If the application is delivered as a .ear, an enterprise bean module devliered as a .jar file, or a web application delivered as a .war file, the deployment tool must be able to deploy the application such that the Java classes in the application are in a separate namespace from classes in other Java applications. Typically this will require the use of a separate class loader for each application.