2

cargo プラグインでスタンドアロンの apache tomcat 5.5 コンテナを起動しようとしていますが、次のエラーが発生します:

[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: -1 java.net.ConnectException: Connection refused: connect

これは私の貨物構成です:

<build>
    <finalName>MyApp</finalName>
    <plugins>
        <plugin>
            <groupId>org.codehaus.cargo</groupId>
            <artifactId>cargo-maven2-plugin</artifactId>
            <configuration>
                <container>
                    <containerId>tomcat5x</containerId>
                    <home>C:\Users\user\tomcat</home>
                </container>
                <configuration>
                    <home>target/tomcat5x</home>
                    <files>
                        ... a few files to copy
                    </files>
                </configuration>
            </configuration>
        </plugin>
    </plugins>
</build>

どうすれば解決できますか?

4

1 に答える 1

1

プロトコルとして http ではなく https を使用していることに気付いたとき、同じ例外が発生していました。プロトコルを http に変更すると、問題が解決しました。あなたと、この微妙な点を見逃した可能性のある人に役立つことを願っています.

于 2014-09-26T20:09:52.397 に答える