3

每当我通过 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 中面临这个问题以及如何解决这个问题?提前致谢。

4

3 回答 3

0
  • 打开服务器视图
  • 双击你的tomcat服务器
  • 点击超时部分
  • 增加启动超时
于 2013-08-22T05:03:56.237 回答
0

如果您使用的是 Hibernate,请确保属性文件中的数据库连接详细信息正确。在我的情况下,货物超时是因为我的数据库用户名和密码不正确。

于 2019-06-06T10:08:44.230 回答
-1

注意:从原始编辑添加上下文。

您可以尝试增加 Cargo 在等待 Tomcat 启动/停止时使用的超时值。

例子:

<container>
  [...]
  <timeout>180000</timeout>
  [...]
</container>

在 Cargo 网站上查看此描述:

https://codehaus-cargo.github.io/cargo/Container+Timeout.html

于 2018-03-02T16:08:45.310 回答