This content has been marked as final.
Show 18 replies
-
15. Re: maven - jsfunit exception during build
ssilvert Sep 2, 2008 11:27 AM (in response to fhomasp)<executions> <execution> <id>surefire-it</id> <phase>integration-test</phase> <goals> <goal>test</goal> </goals> <configuration> <skip>false</skip> <systemProperties> <property> <name>cactus.contextURL</name> <value>http://localhost:8080/${artifactId}</value> </property> </systemProperties> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <configuration> <wait>false</wait> <configuration> <deployables> <deployable> <location>${project.build.directory}/${artifactId}.war</location> <type>war</type> </deployable> </deployables> </configuration> </configuration>
The above is from the JSFUnit example code. Make sure that the deployable matches the cactus.contextURL property. Since your deployable name appears to include the version (1.4.2) you will need to make sure that the contextURL is set correctly such that cactus will hit your application.
Stan -
16. Re: maven - jsfunit exception during build
fhomasp Sep 3, 2008 4:29 AM (in response to fhomasp)I'm unsure what context-url I'm supposed to set. Should it point to a war, application context path, .. ?
At any rate, after a whole bunch of attempts with all sorts of changes to the cactus-context-url the problem persists.<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <executions> <execution> <id>surefire-it</id> <phase>integration-test</phase> <goals> <goal>test</goal> </goals> <configuration> <skip>false</skip> <systemProperties> <property> <name>cactus.contextURL</name> <value>http://localhost:8080/${artifactId}-${versie.olympus}.war</value> </property> </systemProperties> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0-SNAPSHOT</version> <configuration> <wait>false</wait> <container> <containerId>jetty6x</containerId> <type>embedded</type> </container> <deployables> <deployable> <location>${project.build.directory}/${artifactId}-${versie.olympus}.war</location> <type>war</type> </deployable> </deployables> <properites> <cargo.servlet.port>8080</cargo.servlet.port> </properites> <dependencies> <dependency> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty</artifactId> <version>6.1.7</version> <scope>test</scope> </dependency> </dependencies> </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>
-
17. Re: maven - jsfunit exception during build
fhomasp Sep 3, 2008 4:31 AM (in response to fhomasp)How does one edit a post here btw?
The exception might be caused by the internal architecture here. It's completely custom, which makes googling a problem rather hard. -
18. Re: maven - jsfunit exception during build
ssilvert Sep 8, 2008 3:31 PM (in response to fhomasp)You have to be the moderator to edit a post.
From the Cactus doco at http://jakarta.apache.org/cactus/integration/manual/howto_config.html
Property Name cactus.contextURL
Required Yes
Description Webapp Context under which the application to test runs.
Example cactus.contextURL = http://localhost:8080/test
Stan