gpt4 book ai didi

tomcat - 通过 Cargo Ant Task 远程部署 Tomcat

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

我试图使用 Cargo Ant task 部署 WAR 文件版本 1.0.6 到远程 Tomcat 服务器。据我从文档中看到的,我必须将容器类型设置为 remote 并将配置类型设置为 runtime。但是,当我运行它时,出现以下错误消息:

You must specify either a [home] attribute pointing to the location where the Tomcat 6.x Remote is installed, or a nested [zipurlinstaller] element

这个错误消息对我来说意义不大,因为我不想设置 home(它位于不同的服务器上)并且我不想从一个服务器上下载 Tomcat URL (zipurlinstaller) 因为我已经在我的服务器上安装了。我认为使用 remote 类型可以避免在 homezipurlinstaller 之间进行选择。我在这里缺少特定参数吗?

这是我的 Ant 代码:

<taskdef resource="cargo.tasks">
<classpath>
<pathelement location="${cargo-uberjar}"/>
<pathelement location="${cargo-antjar}"/>
</classpath>
</taskdef>

<target name="cargostart" depends="war">
<cargo containerId="tomcat6x" type="remote" action="start" wait="false">
<configuration type="runtime">
<property name="cargo.tomcat.manager.url" value="http://someserver:8080/manager"/>
<property name="cargo.remote.username" value="username"/>
<property name="cargo.remote.password" value="password"/>
<deployable type="war" file="${mywarfile}"/>
</configuration>
</cargo>
</target>

最佳答案

长话短说 Cargo 版本 1.0.6 不支持通过 Ant 任务进行远程部署。然而,1.1.0 将支持它,将在未来几周内发布。您在 Cargo user mailing list 上阅读了有关此主题的讨论。 . Jira 工单 CARGO-962解决了这个问题。

关于tomcat - 通过 Cargo Ant Task 远程部署 Tomcat,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5572010/

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