*
The moose likes Spring and the fly likes Spring Webservices: FrameworkServlet exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Webservices: FrameworkServlet exception" Watch "Spring Webservices: FrameworkServlet exception" New topic
Author

Spring Webservices: FrameworkServlet exception

Kunal Sathe
Ranch Hand

Joined: Apr 08, 2005
Posts: 49
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

Joined: Jun 06, 2006
Posts: 161
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 ?


Error: Keyboard not attached. Press F1 to continue.
Kunal Sathe
Ranch Hand

Joined: Apr 08, 2005
Posts: 49
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Spring Webservices: FrameworkServlet exception