gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 06:25:29 63 4
gpt4 key购买 nike

每当我通过 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/

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