TomEE Container not working with Maven

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

TomEE Container not working with Maven

mraible
Hello all,

I'm getting the following error when trying to use TomEE:

[ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.10:start (start-container) on project appfuse-spring: Execution start-container of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.10:start failed: Cannot create configuration. There's no registered configuration for the parameters (container [id = [tomee1x], 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]

Here's my config:

            <properties>
                <cargo.container>tomee1x</cargo.container>
                <cargo.container.url>
                    http://archive.apache.org/dist/tomee/tomee-1.7.1/apache-tomee-1.7.1-webprofile.zip
                </cargo.container.url>
            </properties>

                <plugin>
                    <groupId>org.codehaus.cargo</groupId>
                    <artifactId>cargo-maven2-plugin</artifactId>
                    <version>${cargo.version}</version>
                    <configuration>
                        <container>
                            <containerId>${cargo.container}</containerId>
                            <home>${cargo.container.home}</home>
                            <zipUrlInstaller>
                                <url>${cargo.container.url}</url>
                                <extractDir>${installDir}</extractDir>
                            </zipUrlInstaller>
                        </container>
                        <configuration>
                            <home>${project.build.directory}/${cargo.container}/container</home>
                            <properties>
                                <cargo.hostname>${cargo.host}</cargo.hostname>
                                <cargo.servlet.port>${cargo.port}</cargo.servlet.port>
                               
                                <cargo.tomcat.ajp.port>8123</cargo.tomcat.ajp.port>
                            </properties>
                        </configuration>
                    </configuration>
                    <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>
                </plugin>

Any ideas?

Thanks,

Matt
Reply | Threaded
Open this post in threaded view
|

Re: TomEE Container not working with Maven

S. Ali Tokmen
Hi Matt

You are simply too early - TomEE support will come with CARGO 1.4.11
(expected to come in December).

If you want to use it ASAP you can use the 1.4.11-SNAPSHOT version - see
details on
http://cargo.codehaus.org/Maven2+Plugin+Installation#Maven2PluginInstallation-snapshots

Cheers

S. Ali Tokmen
http://ali.tokmen.com/

My IM, GSM, PGP and other contact details
are on http://contact.ali.tokmen.com

On 19/11/14 16:20, mraible wrote:

> Hello all,
>
> I'm getting the following error when trying to use TomEE:
>
> [ERROR] Failed to execute goal
> org.codehaus.cargo:cargo-maven2-plugin:1.4.10:start (start-container) on
> project appfuse-spring: Execution start-container of goal
> org.codehaus.cargo:cargo-maven2-plugin:1.4.10:start failed: Cannot create
> configuration. There's no registered configuration for the parameters
> (container [id = [tomee1x], 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]
>
> Here's my config:
>
>             <properties>
>                 <cargo.container>tomee1x</cargo.container>
>                 <cargo.container.url>
>                    
> http://archive.apache.org/dist/tomee/tomee-1.7.1/apache-tomee-1.7.1-webprofile.zip
>                 </cargo.container.url>
>             </properties>
>
>                 <plugin>
>                     <groupId>org.codehaus.cargo</groupId>
>                     <artifactId>cargo-maven2-plugin</artifactId>
>                     <version>${cargo.version}</version>
>                     <configuration>
>                         <container>
>                             <containerId>${cargo.container}</containerId>
>                             <home>${cargo.container.home}</home>
>                             <zipUrlInstaller>
>                                 <url>${cargo.container.url}</url>
>                                 <extractDir>${installDir}</extractDir>
>                             </zipUrlInstaller>
>                         </container>
>                         <configuration>
>                            
> <home>${project.build.directory}/${cargo.container}/container</home>
>                             <properties>
>                                
> <cargo.hostname>${cargo.host}</cargo.hostname>
>                                
> <cargo.servlet.port>${cargo.port}</cargo.servlet.port>
>                                
>                                
> <cargo.tomcat.ajp.port>8123</cargo.tomcat.ajp.port>
>                             </properties>
>                         </configuration>
>                     </configuration>
>                     <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>
>                 </plugin>
>
> Any ideas?
>
> Thanks,
>
> Matt
>
>
>
> --
> View this message in context: http://cargo.996258.n3.nabble.com/TomEE-Container-not-working-with-Maven-tp19412.html
> Sent from the User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email