We're updating the issue view to help you get more done. 

deployment of simple war file fails for jetty 9x (9.1.0.v20131115)

Description

simple war file can't be deployed to jetty 9.1.0.v20131115 due to error:

1 2 3 4 5 6 7 8 9 10 11 [INFO] [talledLocalContainer] Jetty 9.x starting... [INFO] [stalledLocalDeployer] Deploying WAR by creating Jetty context XML file in [/home/travis/build/typekpb/p6spy-it/target/cargo/configurations/jetty9x/webapps/p6spy-it.xml]... [WARNING] [talledLocalContainer] WARNING: The behavior of the argument OPTIONS=Server,jsp,jmx,resources,websocket,ext,plus,annotations (seen in <cmd-line>) has changed, and is now considered a normal property. OPTIONS no longer controls what libraries are on your classpath, use --module instead. See --help for details. [INFO] [talledLocalContainer] java.io.IOException: Cannot read file: /home/travis/build/typekpb/p6spy-it/target/cargo/configurations/jetty9x/etc/test-realm.xml [INFO] [talledLocalContainer] at org.eclipse.jetty.start.StartArgs.addUniqueXmlFile(StartArgs.java:123) [INFO] [talledLocalContainer] at org.eclipse.jetty.start.StartArgs.resolveExtraXmls(StartArgs.java:841) [INFO] [talledLocalContainer] at org.eclipse.jetty.start.Main.processCommandLine(Main.java:580) [INFO] [talledLocalContainer] at org.eclipse.jetty.start.Main.main(Main.java:102) [INFO] [talledLocalContainer] [INFO] [talledLocalContainer] Usage: java -jar start.jar [options] [properties] [configs] [INFO] [talledLocalContainer] java -jar start.jar --help # for more information

please note that the same project has beed successfully deployed to jetty 7 as well as 8.

My config (combined from the 2 sections in real pom.xml) looks like this:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 <plugins> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.4.5</version> <configuration> <container> <containerId>jetty9x</containerId> <artifactInstaller> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-distribution</artifactId> <version>9.1.0.v20131115</version> </artifactInstaller> </container> <deployer> <type>installed</type> </deployer> <configuration> <properties> <cargo.jvmargs>-Dp6spy.config.modulelist=com.p6spy.engine.logging.P6LogFactory</cargo.jvmargs> <cargo.datasource.datasource.p6spy> cargo.datasource.driver=com.p6spy.engine.spy.P6SpyDriver| cargo.datasource.url=jdbc:p6spy:h2:mem:p6spy| cargo.datasource.jndi=jdbc/p6spy| cargo.datasource.username=sa| cargo.datasource.password=sa </cargo.datasource.datasource.p6spy> <!-- some free one --> <cargo.rmi.port>1097</cargo.rmi.port> </properties> </configuration> </configuration> <executions> <execution> <id>start-container</id> <phase>pre-integration-test</phase> <goals> <goal>start</goal> <goal>deploy</goal> </goals> </execution> <execution> <id>stop-container</id> <phase>post-integration-test</phase> <goals> <goal>stop</goal> </goals> </execution> </executions> </configuration> </plugin>

for full build output, see: https://s3.amazonaws.com/archive.travis-ci.org/jobs/14855683/log.txt

for full pom.xml, see (please note maven profile jetty-9.x is used): https://github.com/typekpb/p6spy-it/blob/f86feea785d3b7561dacb6ed815a59191f0f0cbd/pom.xml

Status

Assignee

Savas Ali Tokmen

Reporter

Peter Butkovic

Components

Fix versions

Affects versions

1.4.5

Priority

Major