每当我通过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中会面临这个问题,以及如何解决这个问题?提前感谢。
3条答案
按热度按时间lp0sw83n1#
insrf1ej2#
如果你使用的是Hibernate,请确保你的属性文件中的数据库连接细节是正确的。在我的例子中,由于我的数据库用户名和密码不正确,货物超时了。
41zrol4v3#
您可以尝试增加Cargo在等待Tomcat启动/停止时使用的超时值。
示例:
在Cargo网站上查看此描述:
https://codehaus-cargo.github.io/cargo/Container+Timeout.html