java - 如何解决 org.codehaus.cargo.container.ContainerException

标签 java eclipse maven maven-cargo

每当我通过 CMD 启动应用程序时,它都会启动,但是如果我通过 eclipse 运行相同的代码,则会出现下面提到的错误...

[DEBUG] [URLDeployableMonitor] Checking URL [http://localhost:8080/cargocpc/index.html] for status using a timeout of [120000] ms...
[DEBUG] [URLDeployableMonitor] URL [http://localhost:8080/cargocpc/index.html] is not responding: 400 Cycle Detected
[DEBUG] [URLDeployableMonitor] Notifying monitor listener [org.codehaus.cargo.container.spi.deployer.DeployerWatchdog@a55f49]
[INFO] [yer.DeployerWatchdog] Deployable [http://localhost:8080/cargocpc/index.html] failed to finish deploying within the timeout period [120000]. The Deployable state is thus unknown.
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to start the Tomcat 6.x container.
Deployable [http://localhost:8080/cargocpc/index.html] failed to finish deploying within the timeout period [120000]. The Deployable state is thus unknown.
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.codehaus.cargo.container.ContainerException: Failed to start the Tomcat 6.x container.
.
.
.
.

Caused by: org.codehaus.cargo.container.ContainerException: Deployable [http://localhost:8080/cargocpc/index.html] failed to finish deploying within the timeout period [120000]. The Deployable state is thus unknown.

at org.codehaus.cargo.container.spi.deployer.DeployerWatchdog.watch (DeployerWatchdog.java:111)**

但是如果我通过命令提示符运行它就会起床...为什么在 Eclipse 中会遇到这个问题以及如何解决这个问题? 提前致谢。

最佳答案

  • 打开服务器 View
  • 双击您的 tomcat 服务器
  • 点击“超时”部分
  • 增加启动超时

关于java - 如何解决 org.codehaus.cargo.container.ContainerException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18371953/

相关文章:

java - 如何更快地读取 Kafka

java - 在 Swing 面板上排列 Swing 组件

Eclipse 无法正确部署 Gradle 项目

maven - 使用 Maven Exec 插件执行多个命令

maven jgitflow release-start 目标将行尾更改为 CRLF

java - 如何设置xpath的第二个节点

java - 如何检查 SQLite 数据库中是否存在 "name"值?

Android:Eclipse - 不显示异常

java - 如何在 Eclipse Java 调试器中将 char 数组显示为十六进制字节数组或无符号十进制数?

java - 使用外部数据库配置文件创建maven jar