<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.6.1</version>
<executions>
<execution>
<id>start-container</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>stop-container</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
<configuration>
<container>
<timeout>${cargo.container.timeout}</timeout>
</container>
<configuration>
<properties>
<cargo.servlet.port>${service.port}</cargo.servlet.port>
<cargo.tomcat.ajp.port>${ajp.port}</cargo.tomcat.ajp.port>
<cargo.logging>medium</cargo.logging>
<cargo.jvmargs>
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=10000
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dspring.profiles.active=testMode,server
-Xms1024m
-Xmx2048m
-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC
</cargo.jvmargs>
</properties>
</configuration>
</configuration>
</plugin>
[INFO] --- cargo-maven2-plugin:1.6.1:stop (stop-container)[INFO] [talledLocalContainer] Tomcat 7.x is stopping...[INFO] [talledLocalContainer] Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 10000; nested exception is:[INFO] [talledLocalContainer] java.net.BindException: Address already in use: JVM_Bind
<cargo.start.jvmargs>
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=10000
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
</cargo.start.jvmargs>
Hi Dima
It's good you figured this out yourself :)
What would you think would help others most to avoid this?
Please advise
S. Ali Tokmen http://ali.tokmen.com/ http://contact.ali.tokmen.com/
-- You received this message because you are subscribed to the Google Groups "Codehaus Cargo" group. To unsubscribe from this group and stop receiving emails from it, send an email to codehaus-carg...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codehaus-cargo/03e5c71d-c67e-4472-9672-fdced12b35da%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Hi Dima
Thanks - Indeed what you point out about https://codehaus-cargo.github.io/cargo/Configuration+properties.html helps. I see the two properties are described one after the others, and hence don't need more documenting.
Would you then suggest to show a warning when strings such as -Dcom.sun.management.jmxremote
or -Xmx are detected as cargo.jvmargs and
suggest the usage of cargo.start.jvmargs instead?
Please advise
S. Ali Tokmen http://ali.tokmen.com/ http://contact.ali.tokmen.com/
-- You received this message because you are subscribed to the Google Groups "Codehaus Cargo" group. To unsubscribe from this group and stop receiving emails from it, send an email to codehaus-carg...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codehaus-cargo/bc354c7d-1501-4dc5-b407-286effba465e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.