[英]org.springframework.web.servlet.DispatcherServlet class not found
I've some issue starting my Tomcat under Eclipse IDE.我在 Eclipse IDE 下启动 Tomcat 时遇到了一些问题。 I followed all instruction to create a MVC web application using Spring Tutorial (actually not only one, just to be sure I'm doing right) and, when I start Tomcat from Eclipse I've this problem: I followed all instruction to create a MVC web application using Spring Tutorial (actually not only one, just to be sure I'm doing right) and, when I start Tomcat from Eclipse I've this problem:
Error loading WebappClassLoader
context: /CG
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@70ba9340
org.springframework.web.servlet.DispatcherServlet
java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
I tried to check on internet for some similar problem but all solution proposed doesn't works.我试图在互联网上检查一些类似的问题,但提出的所有解决方案都不起作用。 I checked my classpath and all lib are available, I manually copied all jar to the WEB-INF/lib folder but still not working.我检查了我的类路径并且所有库都可用,我手动将所有 jar 复制到 WEB-INF/lib 文件夹,但仍然无法正常工作。
I included:包括我:
org.springframework.asm-3.1.0.M1.jar
org.springframework.beans-3.1.0.M1.jar
org.springframework.context-3.1.0.M1.jar
org.springframework.context-support-3.1.0.M1.jar
org.springframework.core-3.1.0.M1.jar
org.springframework.expression-3.1.0.M1.jar
org.springframework.jdbc-3.1.0.M1.jar
org.springframework.test-3.1.0.M1.jar
org.springframework.transaction-3.1.0.M1.jar
org.springframework.web-3.1.0.M1.jar
org.springframework.web-servlet-3.1.0.M1.jar
May you help me, please?请你帮帮我好吗? I'm really frustrated about this issue....对于这个问题我真的很郁闷......
tnx, Andrea tnx,安德烈亚
Copy all spring releated jars into {tomcat_installation}/lib for tomcat 6 and for tomcat 5.x {tomcat_installation}/shared/lib. Copy all spring releated jars into {tomcat_installation}/lib for tomcat 6 and for tomcat 5.x {tomcat_installation}/shared/lib.
DispatcherServlet
is typically in the spring-webmvc-${version}.jar
. DispatcherServlet
通常位于spring-webmvc-${version}.jar
中。
I suggest using Maven or Ivy to manage those dependencies for you.我建议使用 Maven 或 Ivy 为您管理这些依赖项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.