Hi,

I have a maven war project which use the Tapestry framework. i would like to
use the cargo2-maven-plugin and the selenium-maven-plugin to run the
selenium test in the integration-test life cycle.

here is my pom setting.

// Start selenium server before the integration test start
<plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>selenium-maven-plugin</artifactId>
        <executions>
                <execution>
                        <phase>pre-integration-test</phase>
                                <goals>
                                        <goal>start-server</goal>
                                </goals>
                                <configuration>
                                        <background>true</background>
                                        <logOutput>true</logOutput>
                                        <multiWindow>true</multiWindow>
                                </configuration>
                </execution>
        </executions>
</plugin>

// Force to run the testcases in the integration-test phase
<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
                <skip>true</skip>
        </configuration>
        <executions>
                <execution>
                        <phase>integration-test</phase>
                        <goals>
                                <goal>test</goal>
                        </goals>
                        <configuration>
                                <skip>false</skip>
                        </configuration>
                </execution>
        </executions>
</plugin>

// Deploy the war in the embedded jetty of cargo2-maven-plugin
<plugin>
        <groupId>org.codehaus.cargo</groupId>
        <artifactId>cargo-maven2-plugin</artifactId>
        <version>1.0.2-SNAPSHOT</version>
        <configuration>
                <wait>false</wait>
                <container>
                        <containerId>jetty6x</containerId>
                        <type>embedded</type>
                </container>
        </configuration>        
        <executions>
                <execution>
                        <id>start-container</id>
                        <phase>pre-integration-test</phase>
                        <goals>
                                <goal>start</goal>
                                <goal>deploy</goal>
                        </goals>
                        <configuration>
                                <deployer>
                                        <deployables>
                                                <deployable>
                                                        
<groupId>my-project-group-id</groupId>
                                                        
<artifactId>my-project-artifact-id</artifactId>
                                                        <type>war</type>
                                                </deployable>
                                        </deployables>
                                </deployer>
                        </configuration>
                </execution>
                <execution>
                        <id>stop-container</id>
                        <phase>post-integration-test</phase>
                        <goals>
                                <goal>stop</goal>
                        </goals>
                </execution>
        </executions>
</plugin>


But when i run mvn integration-test, the following error is thrown

2010-06-12 21:01:19.335::INFO:  Started SelectChannelConnector @
0.0.0.0:8080
[INFO] [beddedLocalContainer] Jetty 6.x Embedded started on port [8080]
[INFO] [cargo:deploy {execution: start-container}]
[INFO] [mbeddedLocalDeployer] Deploying [D:\"project path"\"project".war]
2010-06-12 21:01:20.463::INFO:  Extract jar:file:/D:/"project
path"/"project".war!/ to
C:\Users\ADMINI~1\AppData\Local\Temp\Jetty_0_0_0_0_8080_"project".war__"project"__-jtxim3\webapp
2010-06-12 21:01:22.299::WARN:  failed app
java.lang.IllegalStateException: class org.apache.tapestry5.TapestryFilter
is not a javax.servlet.Filter
        at
org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:90)
        at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
        at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:570)
                ...


i search the exception in google but nothing relevance is found. Do you have
any idea about this problem?
Thanks.

Regards,
Kit
-- 
View this message in context: 
http://old.nabble.com/Tapestry-with-cargo-maven2-plugin-error-tp28864721p28864721.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to