简体   繁体   English

org.springframework.web.servlet.DispatcherServlet class 未找到

[英]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.

相关问题 找不到org.springframework.web.servlet.DispatcherServlet - org.springframework.web.servlet.DispatcherServlet Not Found 实例化servlet类org.springframework.web.servlet.DispatcherServlet时出错 - Error instantiating servlet class org.springframework.web.servlet.Dispatcherservlet 错误[org.springframework.web.servlet.DispatcherServlet] - ERROR [org.springframework.web.servlet.DispatcherServlet] org.springframework.web.servlet.DispatcherServlet noHandlerFound - org.springframework.web.servlet.DispatcherServlet noHandlerFound CNF org.springframework.web.servlet.DispatcherServlet - CNF org.springframework.web.servlet.DispatcherServlet 找到了org.springframework.web.servlet.DispatcherServlet,但是缺少另一个必需的类 - org.springframework.web.servlet.DispatcherServlet was found, but is missing another required class org.springframework.web.servlet.DispatcherServlet noHandlerFound WARNING: No mapping found for HTTP request with URI in DispatcherServlet with name - org.springframework.web.servlet.DispatcherServlet noHandlerFound WARNING: No mapping found for HTTP request with URI in DispatcherServlet with name HTTP 状态 500 - 实例化 servlet 类 org.springframework.web.servlet.DispatcherServlet 时出错 - HTTP Status 500 - Error instantiating servlet class org.springframework.web.servlet.DispatcherServlet org.springframework.web.servlet.DispatcherServlet noHandlerFound:Spring MVC - org.springframework.web.servlet.DispatcherServlet noHandlerFound : Spring MVC java.lang.classnotfoundexception org.springframework.web.servlet.dispatcherservlet - java.lang.classnotfoundexception org.springframework.web.servlet.dispatcherservlet
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM