Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can I have multiple DispatcherServlet instantance.  RSS feed

 
Peng Fan
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Can I configure multiple DispatcherServlet instance in a single web.xml, each DispacherServlet instance has their own bean configuration file, since I am going to setup several DispatcherServlet instance to handle request to different module, for eg,

and also I have two file under web-inf directory:moduleA-servlet.xml,moduleB-servlet.xml, the content of moduleA-servlet.xml includes following:

The problem is when I type following url into IE, I got a 404 error, and I debuged, found request even can't go into handleRequestInternal method:

Does any one can also tell me the relationship between applicationContext and webApplicationContext, can I share web related beans in applicationContext.xml, if I can, why I got a "can't find handler" when I move the aformentioned into applicationContext.xml from moduleA-servlet.xml.
Thank you very much indeed!!!
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!