[jboss-user] [JBoss Seam] - maven 2 junit and seam test
pete76
do-not-reply at jboss.com
Mon Nov 26 13:58:20 EST 2007
Hi
I am trying to get Seam tests to work under maven so I am using:
org.jboss.embedded
hibernate-all
beta2
test
<dependenc
org.jboss.embedded
jboss-embedded-all
beta2
test
org.jboss.embedded
thirdparty-all
beta2
test
and then when I run mvn test the Embeeded complained that it could not find conf/boostrap-beans.xml so I copied the conf dir (from the Seam 2.0 GA) example into my test resources folder and now I get this error, if anyone knows what causes this or can assist in any way I be very grateful!
java.lang.RuntimeException: Unable to bootstrap:
at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:167)
at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:201)
at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:214)
at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:11)
at org.jboss.seam.mock.JunitBaseSeamTest.startJbossEmbeddedIfNecessary(JunitBaseSeamTest.java:1006)
at org.jboss.seam.mock.JunitBaseSeamTest.init(JunitBaseSeamTest.java:931)
at org.jboss.seam.mock.JunitSeamTest.init(JunitSeamTest.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.junit.internal.runners.ClassRoadie.runBefores(ClassRoadie.java:49)
at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:36)
at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
Caused by: java.lang.IllegalStateException: ServerConfig is already installed.
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:264)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:192)
at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:84)
at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:161)
... 23 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107858#4107858
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107858
More information about the jboss-user
mailing list