• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

class not found in Spring MVC

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello friends i am working on spring mvc.i have included all jars related to spring core and spring mvc ..when i am running my web application i am getting following error:

cannot Deploy MyFinalprj
deploy is failing=Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet. Please see server.log for more details.

Can any one help me out what was the issue?

Thanks in advance
 
Ranch Hand
Posts: 49
1
Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
do you have any of the jar's listed at below URL?
http://www.findjar.com/class/org/springframework/web/servlet/DispatcherServlet.html

You did mention mvc, but wanted to be sure.
 
nisu pathak
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes ,i do have that jar and still i am getting same error.any other answer?
 
Krishna Kanth
Ranch Hand
Posts: 49
1
Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what is the folder structure pointing to the jar file in your lib in your war / ear / jar? is it under WEB-INF/lib?

http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html

[[EDIT]] Adding link from tomcat documentation
 
nisu pathak
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have included all jars associated with spring core and spring mvc into as a userlibrary.
is it ok or should i add all jars to WEB-INF/lib folder?
 
Krishna Kanth
Ranch Hand
Posts: 49
1
Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you elaborate a bit more on "UserLibrary"? and its path inside war?

all jars should be under WEB-INF/lib folder or common/lib of tomcat (if you are on tomcat-5.5) according to the tomcat documentation on above URL.
 
nisu pathak
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually i have added all jars by building class path .eclipse provides this option in order to add librarby thats what is called UserLibrary.is it compulsary to add all jars into lib folder ?thats what i am asking?
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic