-
1. Test failed when run test in the weld archetype based project
aslak Apr 8, 2011 4:39 AM (in response to hantsy)hantsy bai wrote:
I create a java ee 6 project using weld archetype.
http://seamframework.org/Documentation/CDIQuickstartForMavenUsers
But when I run test in the project using cmd.
It failed.
When I selected the glassfish-embeded, I got the following error.
mvn clean test -Parq-glassfish-embedded
....
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.184s
[INFO] Finished at: Fri Apr 08 14:30:41 GMT+08:00 2011
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project rainforest-ex22: Could not resolve dep
endencies for project com.ltree:rainforest-ex22:war:1.0-SNAPSHOT: Failure to fin
d org.jboss.arquillian.container:arquillian-glassfish-embedded-3:jar:1.0.0.Alpha
5 in https://repository.jboss.org/nexus/content/groups/public/ was cached in the
local repository, resolution will not be reattempted until the update interval
of jboss-public-repository-group has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
It seems It can no find the arquillian-glassfish-embedded-3 dependency .
In Alpha5 arquillian-glassfish-embedded-3 has been deprecated and replaced with arquillian-glassfish-embedded-3.1.
Please file a issue report with the weld/seam archetype project.
hantsy bai wrote:
When I selected jboss remote to test, it also failed.
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.ltree.rainforest.test.MusicRecordingDAOTest
2011-4-8 14:29:09 org.jboss.arquillian.impl.client.container.ContainerRegistryCr
eator getActivatedConfiguration
信息: Could not read active container configuration: null
log4j:WARN No appenders could be found for logger (org.jnp.interfaces.TimedSocke
tFactory).
log4j:WARN Please initialize the log4j system properly.
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 19.097 sec <<< F
AILURE!
I have started JBOSS 6 before run this test, and set JBOSS_HOME system variable.
How can I overcome the fault?
Thanks
Could you provide the content of the target/surefire-reports/ reports. They should contain some information to why. What you see in the console here is normal and does not indicate any errors.
-
2. Test failed when run test in the weld archetype based project
hantsy Apr 8, 2011 10:40 AM (in response to aslak)For the glassfish error...I think there is a bug there...
I have reported it.