maven 如何解决组织.codehaus.cargo.container.集装箱异常

zsohkypk  于 2022-11-22  发布在  Maven
关注(0)|答案(3)|浏览(118)

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

lp0sw83n

lp0sw83n1#

  • 打开服务器视图
  • 双击tomcat服务器
  • 单击“超时”部分
  • 增加启动超时
insrf1ej

insrf1ej2#

如果你使用的是Hibernate,请确保你的属性文件中的数据库连接细节是正确的。在我的例子中,由于我的数据库用户名和密码不正确,货物超时了。

41zrol4v

41zrol4v3#

  • 注:根据原始内容编辑以添加上下文。*

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

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

在Cargo网站上查看此描述:
https://codehaus-cargo.github.io/cargo/Container+Timeout.html

相关问题