• Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring MVC : Context initialization failed - BeanDefinitionStoreException

 
Jay B Shukla
Ranch Hand
Posts: 33
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am new to Spring MVC and trying to create a HelloWorld application. when i tried to run application using tomcat 6, I am receiving following exception in eclipse.





Web.xml
======




I have Attached project structure.

Can you please help in resolving it?

Thanks in Advance.
Jay Shukla
 
Jay B Shukla
Ranch Hand
Posts: 33
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I could not attached screenshot of project structure.

Location of dispatcher-servlet.xml: /WEB-INF/config/

Thanks
screen.jpg
[Thumbnail for screen.jpg]
 
Jay B Shukla
Ranch Hand
Posts: 33
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
P.S: I would like to have all spring related xmls (currently it has one but may increase as the project grows) in to config folder under WEB-INF.
 
g tsuji
Ranch Hand
Posts: 697
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to customize the location of it, your servlet element in the deployment descriptor has to be more explicit, like this.
 
Jay B Shukla
Ranch Hand
Posts: 33
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I resolved this by few changes in web.xml (shown below)

 
Jay B Shukla
Ranch Hand
Posts: 33
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks g tsuji for response.

I order to resolve this.. I was referring other forum / solution and tried to same solution suggested by you.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!