• 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
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

class not found in Spring MVC

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic