https://issues.apache.org/bugzilla/show_bug.cgi?id=54387
--- Comment #10 from Abdul Aziz <javahop...@gmail.com> --- (In reply to Violeta Georgieva from comment #9) > (In reply to Abdul Aziz from comment #8) > > > > Any how both the servlets sn1 and sn2 are referring to same Servlet1 > > Once you use > <servlet-class>com.servlets.urlpatterns.Servlet1</servlet-class> > the servlets will point to one and the same class. > > But you need to specify different url-patterns that's the case. Correct!! My Question is, Why should the server start-up fail? What difference would it make if I try to access either of the servlet's with same url pattern? I agree its foolish doing so.. But failure during server up doesn't make sense, Right? Earlier versions of Tomcat used to support this (prior to 7.0.35) However server start-up should fail, if same url pattern refers to different servlets say <servlet> <servlet-name>sn1</servlet-name> <servlet-class>com.servlets.urlpatterns.Servlet1</servlet-class> </servlet> <servlet-mapping> <servlet-name>sn1</servlet-name> <url-pattern>/s</url-pattern> </servlet-mapping> <servlet> <servlet-name>sn2</servlet-name> <servlet-class>com.servlets.urlpatterns.Servlet2</servlet-class> </servlet> <servlet-mapping> <servlet-name>sn2</servlet-name> <url-pattern>/s</url-pattern> </servlet-mapping> -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org