2

I'm trying to start a standalone apache tomcat 5.5 container with cargo plug-in, but i get the following error:

[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

this is my cargo configuration:

<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>

How can I solve it?

4

1 回答 1

1

当我意识到我使用 https 而不是 http 作为协议时,我遇到了同样的异常。将协议更改为 http 为我解决了这个问题。我希望它可以帮助你以及任何可能错过这个微妙之处的人。

于 2014-09-26T20:09:52.397 回答