首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在tomcat with CARGO上远程部署失败并超时

在tomcat with CARGO上远程部署失败并超时
EN

Stack Overflow用户
提问于 2011-04-05 05:09:27
回答 1查看 5.4K关注 0票数 2

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

代码语言:javascript
复制
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]

我有如下配置的货物:

代码语言:javascript
复制
<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>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-04-05 12:34:19

这似乎不是container timeout的情况。最有可能的情况是,它无法在指定的主机和端口连接到tomcat。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5544388

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档