• Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring Webservices: FrameworkServlet exception

 
Kunal Sathe
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I am relatively new to Spring Webservices.

When I deployed my webservice to the local tomcat, and tried to access it, I got the following stacktrace. Seems like the FrameworkServlet class was missing. After doing some research, I located spring-mvc.jar that contains the FrameworkServlet class and added it to the classpath. After redeploying my application, I still get the same exception. Can someone help?

Thanks,
Kunal


 
Travis Hein
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think that class not found exception for org.springframework.web.servlet.FrameworkServlet means there is another jar file, maybe a spring-webmvc.jar or spring-servlet.jar that you also need to add to your webapp WEB-INF/lib ?

And when you added the spring-mvc.jar to the classpath, you added it to the WEB-INF/lib of your webapp right ?

 
Kunal Sathe
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Travis, thanks for your reply.
I downloaded the spring jar with dependencies from the spring website and put it in the path.
That seems to have solved the issue.

Thanks again.

Kunal
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!