• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi to all,

I have written simple spring mvc example. I am getting error
"java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet" in console,when web.xml is loaded in tomcat.
i am using eclipse3.6,spring 3.0,tomcat6.0
if anybody is having an idea to resolve this problem, help me to solve this problem.


Thanks in advance


With Regards,
srini
 
Ranch Hand
Posts: 672
4
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This means the required jar file in not there in WEB-INF/lib of your application.. where you have put your jar files?
 
srinivas Doni
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi prasad,

Thanks for responding. problem resolved. previously i added jar files in classpath. i moved those files into web-inf/lib.





With Regards,
srini



 
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

srinivas Doni wrote:Hi prasad,

Thanks for responding. problem resolved. previously i added jar files in classpath. i moved those files into web-inf/lib.





With Regards,
srini






Use Maven and configure the dependencies in the pom.xml file, Maven does all the hard work for you. You don't have to copy and mange all those jar files, Maven does all the work for you when you configure the build part in the pom file.




 
It is an experimental device that will make my mind that most powerful force on earth! More powerful than this tiny ad!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic