gpt4 book ai didi

java - Maven 构建 : Tomcat server doesn't start

转载 作者:搜寻专家 更新时间:2023-11-01 01:52:07 24 4
gpt4 key购买 nike

我是 Maven 新手,正在尝试使用 Maven 设置 Web 项目。我已经在 Eclipse 中设置了项目,我正在使用 Tomcat 7.0.53。在 Maven 构建的运行配置中,我在 Goals 中设置了 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

关于java - Maven 构建 : Tomcat server doesn't start,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24858599/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com