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