aspose file tools*
The moose likes Spring and the fly likes java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet" Watch "java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet" New topic
Author

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

srinivas Doni
Greenhorn

Joined: Jun 02, 2011
Posts: 23
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
Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 507

This means the required jar file in not there in WEB-INF/lib of your application.. where you have put your jar files?


Regards, Prasad
SCJP 5 (93%)
srinivas Doni
Greenhorn

Joined: Jun 02, 2011
Posts: 23
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



Tommy Delson
Ranch Hand

Joined: Apr 13, 2011
Posts: 206
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.





OCPJP6-05-11
"Your life is in your hands, to make of it what you choose."
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet
 
Similar Threads
Error configuring Spring ContextLoader Listener
autowiring problem when deploying on Jboss through eclipse
ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet
Servlet add is currently unavailable
Initialization through Spring