繁体   English   中英

Maven构建:Tomcat服务器无法启动

[英]Maven build: Tomcat server doesn't start

我是Maven的新手,并尝试使用Maven设置一个Web项目。 我在Eclipse中设置了项目,我使用的是Tomcat 7.0.53。 在Maven构建的运行配置中,我设置了tomcat:runGoals tomcat:run
当我运行此配置时,在Eclipse控制台中可以看到以下日志:

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Chat sample using the Spring MVC Servlet-based async support 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> tomcat-maven-plugin:1.1:run (default-cli) > compile @ spring-mvc-chat >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ spring-mvc-chat ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ spring-mvc-chat ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] <<< tomcat-maven-plugin:1.1:run (default-cli) < compile @ spring-mvc-chat <<<
[INFO] 
[INFO] --- tomcat-maven-plugin:1.1:run (default-cli) @ spring-mvc-chat ---
[INFO] Running war on http://localhost:8080/spring-mvc-chat
[INFO] Using existing Tomcat server configuration at D:\Workspace\spring-mvc-chat-master\target\tomcat
Jul 21, 2014 11:26:44 AM org.apache.catalina.startup.Embedded start
INFO: Starting tomcat server
Jul 21, 2014 11:26:45 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
Jul 21, 2014 11:26:45 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 21, 2014 11:26:45 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080

此后没有任何事情发生。 没有服务器启动信息,因此项目根本无法运行。 在这里错过任何一步吗? 或者这是正确的行为?

对于Tomcat 7,使用mvn tomcat7:run Ref: Maven Tomcat 7

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM