gpt4 book ai didi

tomcat - 使用 CARGO 在 tomcat 上远程部署失败并超时

转载 作者:行者123 更新时间:2023-11-28 22:03:54 25 4
gpt4 key购买 nike

我在使用 cargo-maven2-plugin (1.0.6) 进行远程部署时遇到了问题。我正在部署的 war 相当大,默认的 20 秒不足以完成完整部署。实际异常是(20 秒后):

Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.0.6:deploy (default-cli) on project myproject: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.0.6:deploy failed: Failed to deploy [path/myproject.war]: Connection timed out: connect -> [Help 1]

我的 cargo 配置如下:

<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.0.6</version>
<configuration>
<wait>true</wait>
<container>
<containerId>tomcat7x</containerId>
<type>remote</type>
<timeout>600000</timeout>
</container>
<configuration>
<type>runtime</type> <!-- or remote -->
<properties>
<cargo.tomcat.manager.url>http://...:8080/manager/text</cargo.tomcat.manager.url>
<cargo.remote.username>...</cargo.remote.username>
<cargo.remote.password>...</cargo.remote.password>
<cargo.hostname>...</cargo.hostname>
<cargo.servlet.port>8080</cargo.servlet.port>
</properties>
</configuration>

<deployer>
<type>remote</type> <!-- or installed -->
<deployables>
<deployable>
<groupId>...</groupId>
<artifactId>...</artifactId>
<type>war</type>
<properties>
<context>...</context>
</properties>
<pingURL>http://www.myProject.com:8080/</pingURL>
<pingTimeout>25000</pingTimeout>
</deployable>
</deployables>
</deployer>
</configuration>

<executions></executions>
</plugin>

最佳答案

好像不是container timeout的情况.最有可能的是,它无法连接到指定主机和端口上的 tomcat。

关于tomcat - 使用 CARGO 在 tomcat 上远程部署失败并超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5544388/

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