How to solve cargo container exception

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?

Answers


I was getting the same exception when I realized that I was using https instead of http as protocol. Changing the protocol to http solved the issue for me. I hope it helps you and also anyone who might have missed this subtlety.


Need Your Help

Rails remote javascript

javascript jquery ruby-on-rails

In my views I have recently started implementing remote javascript updates of only parts of my pages using commands such as:

My subclass of Array does not call super constructor

javascript inheritance constructor prototype

According to this answer I want to create my own subclass of Array