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

-1

注:コンテキストを追加するために元から編集されました。

Tomcat の起動/停止を待っている間に Cargo が使用するタイムアウト値を増やしてみてください。

例:

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

Cargo の Web サイトでこの説明を確認してください。

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

于 2018-03-02T16:08:45.310 に答える