This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Murach's Java Programming and have Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring MVC : Context initialization failed - BeanDefinitionStoreException  RSS feed

 
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.
 
Liar, liar, pants on fire! refreshing plug:
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!