[英]Java EE, Tomcat and SpringMVC
When I add the below code to my pom.xml
: 当我将以下代码添加到我的pom.xml
:
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.3.9.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>4.3.9.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>4.3.9.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>4.3.9.RELEASE</version>
</dependency>
</dependencies>
And hit "Run on Server", I get the following error: 并点击“在服务器上运行”,出现以下错误:
I don't know whats is going on, I create another project and the error continues. 我不知道发生了什么,我创建了另一个项目,错误继续。 I'm using eclipse, and tomcat 8.0, java 1.8. 我正在使用eclipse和tomcat 8.0,java 1.8。
Starting Tomcat v8.0 Server at localhost has encountered a problem. 在本地主机上启动Tomcat v8.0 Server遇到问题。 Server Tomcat v8.0 Server at localhost failed to start. 服务器本地主机上的Tomcat v8.0服务器无法启动。
And in the console: 在控制台中:
*SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/smvctt]]
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:943)
尝试清理Tomcat工作目录,重新构建(因为已经添加了新的依赖项),然后重新部署项目并启动服务器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.