No registered configuration - tomcat8x & cargo-maven2-plugin

67 views
Skip to first unread message

Théo MARIE

unread,
Mar 2, 2023, 4:49:19 AM3/2/23
to Codehaus Cargo
Hello everyone,

I am a software engineer using codehaus cargo-maven2-plugin version 1.6.9 and tomcat8x containers.

It's been a few days that I am facing an error when trying to start our Java app.
Other developers from the team have no issue starting it. I've tried everything, including pulling cargo source code from github but still can't find a way to solve this.

Here is the error log:

[ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.6.9:run (default) on project xxx: Execution default of goal org.codehaus.cargo:cargo-maven2-plugin:1.6.9:run failed: Cannot create configuration. There's no registered configuration for the parameters (container [id = [tomcat8x], type = [installed]], configuration type [standalone]). Actually there are no valid types registered for this configuration. Maybe you've made a mistake spelling it? -> [Help 1]

And here is the cargo-maven2-plugin configuration:
<profile>
            <id>deployTomcat</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.cargo</groupId>
                        <artifactId>cargo-maven2-plugin</artifactId>
                        <version>${cargo-maven2-plugin.version}</version>
                        <dependencies>
                            <dependency>
                                <groupId>org.springframework</groupId>
                                <artifactId>spring-test</artifactId>
                                <version>${spring.version}</version>
                            </dependency>
                            <dependency>
                                <groupId>javax.jms</groupId>
                                <artifactId>jms</artifactId>
                                <version>${jms.version}</version>
                            </dependency>
                            <dependency>
                                <groupId>javax.servlet</groupId>
                                <artifactId>jstl</artifactId>
                                <version>${jstl.version}</version>
                            </dependency>
                        </dependencies>
                        <configuration>
                            <container>
                                <containerId>tomcat8x</containerId>
                                <zipUrlInstaller>
                                    <url>
                                        https://repo1.maven.org/maven2/org/apache/tomcat/tomcat/8.0.43/tomcat-8.0.43.zip
                                    </url>
                                    <!--suppress UnresolvedMavenProperty -->
                                    <downloadDir>${maven.multiModuleProjectDirectory}/cargo/downloads</downloadDir>
                                    <!--suppress UnresolvedMavenProperty -->
                                    <extractDir>${maven.multiModuleProjectDirectory}/cargo/extracts</extractDir>
                                </zipUrlInstaller>
                                <systemProperties>
                                    <configuration.ConfigFile>
                                        ${appli.home}\current\config\local-config.xml
                                    </configuration.ConfigFile>
                                    <unavailable.File>
                                        ${appli.home}\unavailable
                                    </unavailable.File>
                                    <instanceId>POSTE_DEV</instanceId>
                                    <configuration.sharedDir>
                                        ${appli.home}\current\config\sharedConfig
                                    </configuration.sharedDir>
                                    <configuration.sharedListFile>listeConfigFile.xml</configuration.sharedListFile>
                                   <org.apache.el.parser.COERCE_TO_ZERO>false</org.apache.el.parser.COERCE_TO_ZERO>
                                </systemProperties>
                                <timeout>0</timeout>
                            </container>
                            <configuration>
                                <properties>
                                    <cargo.servlet.port>${cargoServletPort}</cargo.servlet.port>
                                    <cargo.rmi.port>${cargoRMIPort}</cargo.rmi.port>
                                    <cargo.tomcat.ajp.port>${cargoTomcatAjpPort}</cargo.tomcat.ajp.port>
                                    <cargo.start.jvmargs>
                                        -Dcom.sun.management.jmxremote
                                        -Dcom.sun.management.jmxremote.port=${jmxRemotePort}
                                        -Dcom.sun.management.jmxremote.authenticate=false
                                        -Dcom.sun.management.jmxremote.ssl=false
                                        -Dlogback.configurationFile=${maven.multiModuleProjectDirectory}/logback-compile.xml
                                    </cargo.start.jvmargs>
                                </properties>
                            </configuration>

                        </configuration>
                        <executions>
                            <execution>
                                <phase>integration-test</phase>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

If you are reading this, thank you for your time :)

Hope you can give me a hint...
Regards,
Théo

S. Ali Tokmen

unread,
Mar 2, 2023, 2:42:50 PM3/2/23
to codehau...@googlegroups.com

Hi Théo

Is there a reason you're using such an old version? 1.6.9 was released 1 August 2018...

I'd recommend you first switch cargo-maven3-plugin, perferably to the latest version (1.10.5).

Regards

S. Ali Tokmen
https://ali.tokmen.com/
https://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/ed4826e6-970c-4ef1-aa2e-dcb24621ed28n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages