Sorry, I have just forgotten to give you a description of my environment
Windows 2000
Jboss 3.2
Maven 1.0 rc1
Cactus plugin 3.2
---------
Hi, I am new in using maven and I am just trying to use the cactus plugin
within our project.
Something strange happens when starting maven cactus:test for a jboss3x
container.
The war-file is build and the corresponding Limex-cactus.war is created and
the jboss container is started but throws the error message
FileNotFoundException
C:\Limex51\jboss\server\default\deploy\Limex-cactus.war not found.
I can see that the war file is created in the right position but a few
seconds later it is deleted. I have no idea where to look and how to avoid
this.
Any idea??
Can I start something like verbose in maven?
I want to automate the maven goals using cruisecontrol, is it a better
approach to let the tests be done by cruisecontrol or by maven?
Any help is appreciated, thanks in advance
Edmund
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------
maven cactus:test
Attempting to download maven-SNAPSHOT.jar.
war:init:
Overriding previous definition of reference to clover.classpath
java:prepare-filesystem:
java:compile:
[echo] Compiling to
c:/Limex51/jboss/server/default/deploy/default.war/WEB-INF/classes
java:prepare-filesystem:
java:compile:
[echo] Compiling to
c:/Limex51/jboss/server/default/deploy/default.war/WEB-INF/classes
java:jar-resources:
test:prepare-filesystem:
test:test-resources:
test:compile:
test:test:
[junit] dir attribute ignored if running in the same VM
[junit] Running dreba.prj.limex.util.AllTests
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.156 sec
war:webapp:
[echo] Assembling webapp Limex
war:war:
[echo] Building WAR Limex
cactus:init:
cactus:init-report:
cactus:compile:
cactus:cactifywar:
[echo] end of cactifywar
[cactifywar] Analyzing war:
C:\Limex51\jboss\server\default\deploy\Limex51.war
[cactifywar] Building war:
C:\Limex51\jboss\server\default\deploy\Limex-cactus.war
cactus:test:
[cactus]
-----------------------------------------------------------------
[cactus] Running tests against JBoss 3.2
[cactus]
-----------------------------------------------------------------
[cactus] [ERROR] Failed to startup the container
(C:\Limex51\jboss\server\default\deploy\Limex-cactus.war (The system cannot
f
ind the file specified))
java.io.FileNotFoundException:
C:\Limex51\jboss\server\default\deploy\Limex-cactus.war (The system cannot
find the file specified)
at
org.apache.cactus.integration.ant.container.jboss.JBoss3xContainer.startUp(J
Boss3xContainer.java:237)
at
org.apache.cactus.integration.ant.container.ContainerRunner$1.run(ContainerR
unner.java:179)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.io.FileNotFoundException:
C:\Limex51\jboss\server\default\deploy\Limex-cactus.war (The system cannot
find the file
specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:394)
at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:295)
at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:275)
at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:260)
at
org.apache.cactus.integration.ant.container.jboss.JBoss3xContainer.prepare(J
Boss3xContainer.java:289)
at
org.apache.cactus.integration.ant.container.jboss.JBoss3xContainer.startUp(J
Boss3xContainer.java:198)
... 2 more
--- Nested Exception ---
java.io.FileNotFoundException:
C:\Limex51\jboss\server\default\deploy\Limex-cactus.war (The system cannot
find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:394)
at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:295)
at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:275)
at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:260)
at
org.apache.cactus.integration.ant.container.jboss.JBoss3xContainer.prepare(J
Boss3xContainer.java:289)
at
org.apache.cactus.integration.ant.container.jboss.JBoss3xContainer.startUp(J
Boss3xContainer.java:198)
at
org.apache.cactus.integration.ant.container.ContainerRunner$1.run(ContainerR
unner.java:179)
at java.lang.Thread.run(Thread.java:536)
--------------------------------------------------------------------------------
The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express
written permission of the sender. If you are not the intended recipient, please
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to
http://www.drkw.com/disc/email/ or contact the sender.
--------------------------------------------------------------------------------