3 Replies Latest reply on Nov 25, 2007 5:14 AM by Cyrill Rüttimann

    Maven 2 Surefire---TestNG---Seam 2.0 Problems

    Cyrill Rüttimann Newbie

      Hi,

      I have seen some posts with the same issues, but did not found the solution or the setup those users had for unit testing the seam components. Following my setup:


      <plugins>
       <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-surefire-plugin</artifactId>
       <version>2.4-collab-SNAPSHOT</version>
       </plugin>
      </plugins>
      <dependencies>
       <dependency>
       <groupId>org.testng</groupId>
       <artifactId>testng</artifactId>
       <version>5.5</version>
       <classifier>jdk15</classifier>
       <scope>test</scope>
       </dependency>
       <dependency>
       <groupId>org.jboss.embedded</groupId>
       <artifactId>jboss-embedded</artifactId>
       <version>beta2</version>
       <scope>test</scope>
       <type>pom</type>
       </dependency>
       <dependency>
       <groupId>xerces</groupId>
       <artifactId>xercesImpl</artifactId>
       <version>2.8.1</version>
       <scope>test</scope>
       </dependency>
       <dependency>
       <groupId>com.sun.glassfish</groupId>
       <artifactId>jsf-impl</artifactId>
       <version>2.0</version>
       <scope>test</scope>
       </dependency>
       <dependency>
       <groupId>org.dbunit</groupId>
       <artifactId>dbunit</artifactId>
       <version>2.2</version>
       <scope>test</scope>
       </dependency>
      </dependencies>
      


      Then I have copied over the bootstrap directory of seam 2.0.GA to src/test/resources.

      When I try to run a unit test with maven, the following stack trace appears:

      WARNING: You are running Maven builds externally, some UI functionality will not be available.
      Executing:/Applications/maven-2.0.7/bin/mvn test
      Scanning for projects...
      ----------------------------------------------------------------------------
      Building Training Platform EJB Module
       task-segment: [test]
      ----------------------------------------------------------------------------
      artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from jboss
      artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from java.net
      artifact org.apache.maven.plugins:maven-compiler-plugin: checking for updates from jboss
      artifact org.apache.maven.plugins:maven-compiler-plugin: checking for updates from java.net
      snapshot org.apache.maven.plugins:maven-surefire-plugin:2.4-collab-SNAPSHOT: checking for updates from apache.snapshots
      snapshot org.apache.maven.surefire:surefire:2.4-collab-SNAPSHOT: checking for updates from apache.snapshots
      artifact org.apache.maven.plugins:maven-ejb-plugin: checking for updates from jboss
      artifact org.apache.maven.plugins:maven-ejb-plugin: checking for updates from java.net
      Using encoding: 'UTF-8' to copy filtered resources.
      Nothing to compile - all classes are up to date
      Using encoding: 'UTF-8' to copy filtered resources.
      Compiling 1 source file to /Users/cyrill/Documents/Trainingsplattform/NetBeans/TrainingPlatformBuild/TrainingPlatformEJB/target/test-classes
      snapshot org.apache.maven.surefire:surefire-booter:2.4-collab-SNAPSHOT: checking for updates from apache.snapshots
      snapshot org.apache.maven.surefire:surefire-api:2.4-collab-SNAPSHOT: checking for updates from apache.snapshots
      snapshot org.apache.maven.surefire:surefire-testng:2.4-collab-SNAPSHOT: checking for updates from apache.snapshots
      snapshot org.apache.maven.surefire:surefire-providers:2.4-collab-SNAPSHOT: checking for updates from apache.snapshots
      Surefire report directory: /Users/cyrill/Documents/Trainingsplattform/NetBeans/TrainingPlatformBuild/TrainingPlatformEJB/target/surefire-reports
      
      -------------------------------------------------------
       T E S T S
      -------------------------------------------------------
      [Parser] Running:
       Command line suite
      
      Running xx.yyy.trainingplatform.training.facade.TrainingFacadeBeanTest
      ERROR [org.jboss.embedded.DeploymentScanner] Failed to deploy
      org.jboss.deployers.spi.DeploymentException: Unable to get VirtualFile for url: file:/Users/cyrill/Documents/Trainingsplattform/NetBeans/TrainingPlatformBuild/TrainingPlatformEJB/target/test-classes/conf/jboss-service.xml
       at org.jboss.embedded.DeploymentGroup.getVirtualFile(DeploymentGroup.java:190)
       at org.jboss.embedded.DeploymentGroup.add(DeploymentGroup.java:176)
       at org.jboss.embedded.DeploymentGroup.addResource(DeploymentGroup.java:329)
       at org.jboss.embedded.DeploymentScanner.start(DeploymentScanner.java:85)
       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.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
       at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:108)
       at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:103)
       at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:145)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:197)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:136)
       at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:233)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:724)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:445)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:555)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:489)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:289)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:192)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:302)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:272)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:119)
       at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:96)
       at org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:150)
       at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:162)
       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.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1006)
       at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:931)
       at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
       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.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:645)
       at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:385)
       at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:141)
       at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:79)
       at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:158)
       at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
       at org.testng.TestRunner.runWorkers(TestRunner.java:673)
       at org.testng.TestRunner.privateRun(TestRunner.java:620)
       at org.testng.TestRunner.run(TestRunner.java:480)
       at org.testng.SuiteRunner.runTest(SuiteRunner.java:278)
       at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:273)
       at org.testng.SuiteRunner.privateRun(SuiteRunner.java:253)
       at org.testng.SuiteRunner.run(SuiteRunner.java:168)
       at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:987)
       at org.testng.TestNG.runSuitesLocally(TestNG.java:951)
       at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeTestNG(TestNGDirectoryTestSuite.java:286)
       at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:224)
       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:275)
       at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:832)
      Caused by: java.net.MalformedURLException: unknown protocol: vfsfile
       at java.net.URL.<init>(URL.java:574)
       at java.net.URL.<init>(URL.java:464)
       at java.net.URL.<init>(URL.java:413)
       at org.jboss.virtual.plugins.context.file.FileHandler.<init>(FileHandler.java:75)
       at org.jboss.virtual.plugins.context.file.FileHandler.<init>(FileHandler.java:89)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:253)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:186)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.<init>(FileSystemContext.java:150)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.<init>(FileSystemContext.java:124)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.<init>(FileSystemContext.java:113)
       at org.jboss.virtual.plugins.context.file.FileSystemContextFactory.getVFS(FileSystemContextFactory.java:54)
       at org.jboss.virtual.VFS.getVFS(VFS.java:132)
       at org.jboss.virtual.VFS.getRoot(VFS.java:146)
       at org.jboss.embedded.DeploymentGroup.getVirtualFile(DeploymentGroup.java:186)
       ... 62 more
      ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=ResourcesToDeploy state=Create
      org.jboss.deployers.spi.DeploymentException: Unable to get VirtualFile for url: file:/Users/cyrill/Documents/Trainingsplattform/NetBeans/TrainingPlatformBuild/TrainingPlatformEJB/target/test-classes/conf/jboss-service.xml
       at org.jboss.embedded.DeploymentGroup.getVirtualFile(DeploymentGroup.java:190)
       at org.jboss.embedded.DeploymentGroup.add(DeploymentGroup.java:176)
       at org.jboss.embedded.DeploymentGroup.addResource(DeploymentGroup.java:329)
       at org.jboss.embedded.DeploymentScanner.start(DeploymentScanner.java:85)
       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.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
       at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:108)
       at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:103)
       at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:145)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:197)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:136)
       at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:233)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:724)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:445)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:555)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:489)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:289)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:192)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:302)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:272)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:119)
       at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:96)
       at org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:150)
       at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:162)
       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.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1006)
       at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:931)
       at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
       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.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:645)
       at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:385)
       at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:141)
       at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:79)
       at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:158)
       at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
       at org.testng.TestRunner.runWorkers(TestRunner.java:673)
       at org.testng.TestRunner.privateRun(TestRunner.java:620)
       at org.testng.TestRunner.run(TestRunner.java:480)
       at org.testng.SuiteRunner.runTest(SuiteRunner.java:278)
       at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:273)
       at org.testng.SuiteRunner.privateRun(SuiteRunner.java:253)
       at org.testng.SuiteRunner.run(SuiteRunner.java:168)
       at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:987)
       at org.testng.TestNG.runSuitesLocally(TestNG.java:951)
       at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeTestNG(TestNGDirectoryTestSuite.java:286)
       at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:224)
       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:275)
       at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:832)
      Caused by: java.net.MalformedURLException: unknown protocol: vfsfile
       at java.net.URL.<init>(URL.java:574)
       at java.net.URL.<init>(URL.java:464)
       at java.net.URL.<init>(URL.java:413)
       at org.jboss.virtual.plugins.context.file.FileHandler.<init>(FileHandler.java:75)
       at org.jboss.virtual.plugins.context.file.FileHandler.<init>(FileHandler.java:89)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:253)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:186)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.<init>(FileSystemContext.java:150)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.<init>(FileSystemContext.java:124)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.<init>(FileSystemContext.java:113)
       at org.jboss.virtual.plugins.context.file.FileSystemContextFactory.getVFS(FileSystemContextFactory.java:54)
       at org.jboss.virtual.VFS.getVFS(VFS.java:132)
       at org.jboss.virtual.VFS.getRoot(VFS.java:146)
       at org.jboss.embedded.DeploymentGroup.getVirtualFile(DeploymentGroup.java:186)
       ... 62 more
      ERROR [org.jboss.embedded.DeploymentScanner] Failed to deploy
      org.jboss.deployers.spi.DeploymentException: Unable to find deployDir from url: file:/Users/cyrill/Documents/Trainingsplattform/NetBeans/TrainingPlatformBuild/TrainingPlatformEJB/target/test-classes/deployers/
       at org.jboss.embedded.DeploymentGroup.getDeployerDirUrls(DeploymentGroup.java:536)
       at org.jboss.embedded.DeploymentGroup.getDeployerDirUrlsFromResource(DeploymentGroup.java:522)
       at org.jboss.embedded.DeploymentGroup.addDirectoryByResource(DeploymentGroup.java:470)
       at org.jboss.embedded.DeploymentScanner.start(DeploymentScanner.java:99)
       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.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
       at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:108)
       at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:103)
       at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:145)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:197)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:136)
       at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:233)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:724)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:445)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:555)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:489)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:289)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:192)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:302)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:272)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:119)
       at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:96)
       at org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:150)
       at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:162)
       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.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1006)
       at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:931)
       at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
       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.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:645)
       at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:385)
       at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:141)
       at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:79)
       at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:158)
       at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
       at org.testng.TestRunner.runWorkers(TestRunner.java:673)
       at org.testng.TestRunner.privateRun(TestRunner.java:620)
       at org.testng.TestRunner.run(TestRunner.java:480)
       at org.testng.SuiteRunner.runTest(SuiteRunner.java:278)
       at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:273)
       at org.testng.SuiteRunner.privateRun(SuiteRunner.java:253)
       at org.testng.SuiteRunner.run(SuiteRunner.java:168)
       at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:987)
       at org.testng.TestNG.runSuitesLocally(TestNG.java:951)
       at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeTestNG(TestNGDirectoryTestSuite.java:286)
       at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:224)
       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:275)
       at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:832)
      Caused by: java.net.MalformedURLException: unknown protocol: vfsfile
       at java.net.URL.<init>(URL.java:574)
       at java.net.URL.<init>(URL.java:464)
       at java.net.URL.<init>(URL.java:413)
       at org.jboss.virtual.plugins.context.file.FileHandler.<init>(FileHandler.java:75)
       at org.jboss.virtual.plugins.context.file.FileHandler.<init>(FileHandler.java:89)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:253)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:186)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.<init>(FileSystemContext.java:150)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.<init>(FileSystemContext.java:124)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.<init>(FileSystemContext.java:113)
       at org.jboss.virtual.plugins.context.file.FileSystemContextFactory.getVFS(FileSystemContextFactory.java:54)
       at org.jboss.virtual.VFS.getVFS(VFS.java:132)
       at org.jboss.virtual.VFS.getRoot(VFS.java:146)
       at org.jboss.embedded.DeploymentGroup.getDeployerDirUrls(DeploymentGroup.java:532)
       ... 62 more
      ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=ResourcesToDeploy2 state=Create
      org.jboss.deployers.spi.DeploymentException: Unable to find deployDir from url: file:/Users/cyrill/Documents/Trainingsplattform/NetBeans/TrainingPlatformBuild/TrainingPlatformEJB/target/test-classes/deployers/
       at org.jboss.embedded.DeploymentGroup.getDeployerDirUrls(DeploymentGroup.java:536)
       at org.jboss.embedded.DeploymentGroup.getDeployerDirUrlsFromResource(DeploymentGroup.java:522)
       at org.jboss.embedded.DeploymentGroup.addDirectoryByResource(DeploymentGroup.java:470)
       at org.jboss.embedded.DeploymentScanner.start(DeploymentScanner.java:99)
       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.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
       at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:108)
       at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:103)
       at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:145)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:197)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:136)
       at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:233)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:724)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:445)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:555)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:489)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:289)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:192)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:302)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:272)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:119)
       at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:96)
       at org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:150)
       at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:162)
       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.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1006)
       at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:931)
       at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
       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.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:645)
       at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:385)
       at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:141)
       at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:79)
       at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:158)
       at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
       at org.testng.TestRunner.runWorkers(TestRunner.java:673)
       at org.testng.TestRunner.privateRun(TestRunner.java:620)
       at org.testng.TestRunner.run(TestRunner.java:480)
       at org.testng.SuiteRunner.runTest(SuiteRunner.java:278)
       at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:273)
       at org.testng.SuiteRunner.privateRun(SuiteRunner.java:253)
       at org.testng.SuiteRunner.run(SuiteRunner.java:168)
       at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:987)
       at org.testng.TestNG.runSuitesLocally(TestNG.java:951)
       at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeTestNG(TestNGDirectoryTestSuite.java:286)
       at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:224)
       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:275)
       at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:832)
      Caused by: java.net.MalformedURLException: unknown protocol: vfsfile
       at java.net.URL.<init>(URL.java:574)
       at java.net.URL.<init>(URL.java:464)
       at java.net.URL.<init>(URL.java:413)
       at org.jboss.virtual.plugins.context.file.FileHandler.<init>(FileHandler.java:75)
       at org.jboss.virtual.plugins.context.file.FileHandler.<init>(FileHandler.java:89)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:253)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:186)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.<init>(FileSystemContext.java:150)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.<init>(FileSystemContext.java:124)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.<init>(FileSystemContext.java:113)
       at org.jboss.virtual.plugins.context.file.FileSystemContextFactory.getVFS(FileSystemContextFactory.java:54)
       at org.jboss.virtual.VFS.getVFS(VFS.java:132)
       at org.jboss.virtual.VFS.getRoot(VFS.java:146)
       at org.jboss.embedded.DeploymentGroup.getDeployerDirUrls(DeploymentGroup.java:532)
       ... 62 more
      ERROR [org.jboss.embedded.DeploymentScanner] Failed to deploy
      org.jboss.deployers.spi.DeploymentException: Unable to find deployDir from url: file:/Users/cyrill/Documents/Trainingsplattform/NetBeans/TrainingPlatformBuild/TrainingPlatformEJB/target/test-classes/deploy/
       at org.jboss.embedded.DeploymentGroup.getDeployerDirUrls(DeploymentGroup.java:536)
       at org.jboss.embedded.DeploymentGroup.getDeployerDirUrlsFromResource(DeploymentGroup.java:522)
       at org.jboss.embedded.DeploymentGroup.addDirectoryByResource(DeploymentGroup.java:470)
       at org.jboss.embedded.DeploymentScanner.start(DeploymentScanner.java:99)
       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.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
       at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:108)
       at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:103)
       at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:145)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:197)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:136)
       at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:233)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:724)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:445)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:555)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:489)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:289)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:192)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:302)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:272)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:119)
       at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:96)
       at org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:150)
       at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:162)
       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.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1006)
       at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:931)
       at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
       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.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:645)
       at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:385)
       at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:141)
       at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:79)
       at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:158)
       at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
       at org.testng.TestRunner.runWorkers(TestRunner.java:673)
       at org.testng.TestRunner.privateRun(TestRunner.java:620)
       at org.testng.TestRunner.run(TestRunner.java:480)
       at org.testng.SuiteRunner.runTest(SuiteRunner.java:278)
       at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:273)
       at org.testng.SuiteRunner.privateRun(SuiteRunner.java:253)
       at org.testng.SuiteRunner.run(SuiteRunner.java:168)
       at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:987)
       at org.testng.TestNG.runSuitesLocally(TestNG.java:951)
       at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeTestNG(TestNGDirectoryTestSuite.java:286)
       at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:224)
       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:275)
       at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:832)
      Caused by: java.net.MalformedURLException: unknown protocol: vfsfile
       at java.net.URL.<init>(URL.java:574)
       at java.net.URL.<init>(URL.java:464)
       at java.net.URL.<init>(URL.java:413)
       at org.jboss.virtual.plugins.context.file.FileHandler.<init>(FileHandler.java:75)
       at org.jboss.virtual.plugins.context.file.FileHandler.<init>(FileHandler.java:89)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:253)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:186)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.<init>(FileSystemContext.java:150)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.<init>(FileSystemContext.java:124)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.<init>(FileSystemContext.java:113)
       at org.jboss.virtual.plugins.context.file.FileSystemContextFactory.getVFS(FileSystemContextFactory.java:54)
       at org.jboss.virtual.VFS.getVFS(VFS.java:132)
       at org.jboss.virtual.VFS.getRoot(VFS.java:146)
       at org.jboss.embedded.DeploymentGroup.getDeployerDirUrls(DeploymentGroup.java:532)
       ... 62 more
      ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=ResourcesToDeploy3 state=Create
      org.jboss.deployers.spi.DeploymentException: Unable to find deployDir from url: file:/Users/cyrill/Documents/Trainingsplattform/NetBeans/TrainingPlatformBuild/TrainingPlatformEJB/target/test-classes/deploy/
       at org.jboss.embedded.DeploymentGroup.getDeployerDirUrls(DeploymentGroup.java:536)
       at org.jboss.embedded.DeploymentGroup.getDeployerDirUrlsFromResource(DeploymentGroup.java:522)
       at org.jboss.embedded.DeploymentGroup.addDirectoryByResource(DeploymentGroup.java:470)
       at org.jboss.embedded.DeploymentScanner.start(DeploymentScanner.java:99)
       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.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
       at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:108)
       at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:103)
       at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:145)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:197)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:136)
       at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:233)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:724)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:445)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:555)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:489)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:289)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:192)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:302)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:272)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:119)
       at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:96)
       at org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:150)
       at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:162)
       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.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1006)
       at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:931)
       at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
       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.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:645)
       at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:385)
       at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:141)
       at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:79)
       at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:158)
       at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
       at org.testng.TestRunner.runWorkers(TestRunner.java:673)
       at org.testng.TestRunner.privateRun(TestRunner.java:620)
       at org.testng.TestRunner.run(TestRunner.java:480)
       at org.testng.SuiteRunner.runTest(SuiteRunner.java:278)
       at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:273)
       at org.testng.SuiteRunner.privateRun(SuiteRunner.java:253)
       at org.testng.SuiteRunner.run(SuiteRunner.java:168)
       at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:987)
       at org.testng.TestNG.runSuitesLocally(TestNG.java:951)
       at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeTestNG(TestNGDirectoryTestSuite.java:286)
       at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:224)
       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:275)
       at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:832)
      Caused by: java.net.MalformedURLException: unknown protocol: vfsfile
       at java.net.URL.<init>(URL.java:574)
       at java.net.URL.<init>(URL.java:464)
       at java.net.URL.<init>(URL.java:413)
       at org.jboss.virtual.plugins.context.file.FileHandler.<init>(FileHandler.java:75)
       at org.jboss.virtual.plugins.context.file.FileHandler.<init>(FileHandler.java:89)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:253)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:186)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.<init>(FileSystemContext.java:150)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.<init>(FileSystemContext.java:124)
       at org.jboss.virtual.plugins.context.file.FileSystemContext.<init>(FileSystemContext.java:113)
       at org.jboss.virtual.plugins.context.file.FileSystemContextFactory.getVFS(FileSystemContextFactory.java:54)
       at org.jboss.virtual.VFS.getVFS(VFS.java:132)
       at org.jboss.virtual.VFS.getRoot(VFS.java:146)
       at org.jboss.embedded.DeploymentGroup.getDeployerDirUrls(DeploymentGroup.java:532)
       ... 62 more
      Tests run: 2, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 1.879 sec <<< FAILURE!
      
      Results :
      
      Failed tests:
       init(xx.yyy.trainingplatform.training.facade.TrainingFacadeBeanTest)
      
      
      ------------------------------------------------------------------------
      [ERROR]BUILD FAILURE
      ------------------------------------------------------------------------
      There are test failures.
      ------------------------------------------------------------------------
      For more information, run Maven with the -e switch
      ------------------------------------------------------------------------
      Total time: 14 seconds
      Finished at: Sat Nov 24 20:02:41 CET 2007
      Final Memory: 5M/14M
      ------------------------------------------------------------------------
      
      


      To get this up an running, your settings.xml should look this this:

      <?xml version="1.0" encoding="UTF-8"?>
      <settings>
       <localRepository>/Users/cyrill/Documents/maven_repo</localRepository>
       <profiles>
       <profile>
       <id>defaultrepositories</id>
       <repositories>
       <repository>
       <id>jboss</id>
       <name>Repository for JBoss Artifacts</name>
       <url>http://repository.jboss.com/maven2/</url>
       <layout>default</layout>
       <releases>
       <updatePolicy>always</updatePolicy>
       <checksumPolicy>warn</checksumPolicy>
       </releases>
       <snapshots>
       <enabled>false</enabled>
       <updatePolicy>always</updatePolicy>
       <checksumPolicy>warn</checksumPolicy>
       </snapshots>
       </repository>
       <repository>
       <id>java.net</id>
       <url>http://download.java.net/maven/1</url>
       <layout>legacy</layout>
       <releases>
       <updatePolicy>always</updatePolicy>
       <checksumPolicy>warn</checksumPolicy>
       </releases>
       <snapshots>
       <enabled>false</enabled>
       <updatePolicy>always</updatePolicy>
       <checksumPolicy>warn</checksumPolicy>
       </snapshots>
       </repository>
       </repositories>
       <pluginRepositories>
       <pluginRepository>
       <id>apache.snapshots</id>
       <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
       <releases>
       <enabled>false</enabled>
       <updatePolicy>always</updatePolicy>
       <checksumPolicy>warn</checksumPolicy>
       </releases>
       <snapshots>
       <updatePolicy>always</updatePolicy>
       <checksumPolicy>warn</checksumPolicy>
       </snapshots>
       </pluginRepository>
       </pluginRepositories>
       </profile>
       </profiles>
      


      I hope I provided enough informations about the setup for others to get started - and enough information to get this issue solved!

      Regards,

      Cyrill

        • 1. Re: Maven 2 Surefire---TestNG---Seam 2.0 Problems
          Pete Muir Master

          What does the classpath handed to TestNG look like?

          • 2. Re: Maven 2 Surefire---TestNG---Seam 2.0 Problems
            Cyrill Rüttimann Newbie

            Following the debug output:


            [DEBUG]org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.4-collab-20070602.024036-1:runtime (selected for runtime)
            snapshot org.apache.maven.surefire:surefire-booter:2.4-collab-SNAPSHOT: checking for updates from apache.snapshots
            [DEBUG]Skipping disabled repository central
            [DEBUG]Skipping disabled repository jboss
            [DEBUG]Skipping disabled repository java.net
            [DEBUG]Skipping disabled repository central
            [DEBUG]surefire-booter: resolved to version 2.4-collab-20070602.024036-1 from repository apache.snapshots
            [DEBUG] org.apache.maven.surefire:surefire-booter:jar:2.4-collab-SNAPSHOT:runtime (selected for runtime)
            snapshot org.apache.maven.surefire:surefire-api:2.4-collab-SNAPSHOT: checking for updates from apache.snapshots
            [DEBUG]Skipping disabled repository central
            [DEBUG]Skipping disabled repository jboss
            [DEBUG]Skipping disabled repository java.net
            [DEBUG]Skipping disabled repository central
            [DEBUG]surefire-api: resolved to version 2.4-collab-20070602.024036-1 from repository apache.snapshots
            [DEBUG] org.apache.maven.surefire:surefire-api:jar:2.4-collab-SNAPSHOT:runtime (selected for runtime)
            [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for runtime)
            [DEBUG] commons-lang:commons-lang:jar:2.1:runtime (selected for runtime)
            [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for runtime)
            [DEBUG] org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7:runtime (selected for runtime)
            [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (selected for runtime)
            [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
            [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
            [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime)
            [DEBUG]Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.5 for project: null:plexus-utils:jar:1.2 from the repository.
            [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.2:runtime (removed - nearer found: 1.1)
            [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for runtime)
            [DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime)
            [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
            [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for runtime)
            [DEBUG]surefire-api: resolved to version 2.4-collab-20070602.024036-1 from repository apache.snapshots
            [DEBUG]surefire-booter: resolved to version 2.4-collab-20070602.024036-1 from repository apache.snapshots
            [DEBUG]Configuring mojo 'org.apache.maven.plugins:maven-surefire-plugin:2.4-collab-SNAPSHOT:test' -->
            [DEBUG] (f) basedir = /Users/cyrill/Documents/Trainingsplattform/NetBeans/TrainingPlatformBuild/TrainingPlatformEJB
            [DEBUG] (f) childDelegation = false
            [DEBUG] (f) classesDirectory = /Users/cyrill/Documents/Trainingsplattform/NetBeans/TrainingPlatformBuild/TrainingPlatformEJB/target/classes
            [DEBUG] (f) classpathElements = [/Users/cyrill/Documents/Trainingsplattform/NetBeans/TrainingPlatformBuild/TrainingPlatformEJB/target/classes, /Users/cyrill/Documents/Trainingsplattform/NetBeans/TrainingPlatformBuild/TrainingPlatformEJB/target/test-classes, /Users/cyrill/Documents/maven_repo/org/jboss/embedded/jboss-embedded-all/beta2/jboss-embedded-all-beta2.jar, /Users/cyrill/Documents/maven_repo/jboss/jboss-common-core/2.0.4.GA/jboss-common-core-2.0.4.GA.jar, /Users/cyrill/Documents/maven_repo/org/hibernate/hibernate-commons-annotations/3.0.0.ga/hibernate-commons-annotations-3.0.0.ga.jar, /Users/cyrill/Documents/maven_repo/org/hibernate/hibernate-entitymanager/3.3.1.ga/hibernate-entitymanager-3.3.1.ga.jar, /Users/cyrill/Documents/maven_repo/org/testng/testng/5.5/testng-5.5-jdk15.jar, /Users/cyrill/Documents/maven_repo/poi/poi/2.5.1-final-20040804/poi-2.5.1-final-20040804.jar, /Users/cyrill/Documents/maven_repo/org/jboss/embedded/thirdparty-all/beta2/thirdparty-all-beta2.jar, /Users/cyrill/Documents/maven_repo/antlr/antlr/2.7.6/antlr-2.7.6.jar, /Users/cyrill/Documents/maven_repo/org/jboss/embedded/hibernate-all/beta2/hibernate-all-beta2.jar, /Users/cyrill/Documents/maven_repo/asm/asm/1.5.3/asm-1.5.3.jar, /Users/cyrill/Documents/maven_repo/junit/junit/3.8.2/junit-3.8.2.jar, /Users/cyrill/Documents/maven_repo/org/jboss/seam/jboss-el/2.0.0.GA/jboss-el-2.0.0.GA.jar, /Users/cyrill/Documents/maven_repo/junit-addons/junit-addons/1.4/junit-addons-1.4.jar, /Users/cyrill/Documents/maven_repo/jboss/javassist/3.3.ga/javassist-3.3.ga.jar, /Users/cyrill/Documents/maven_repo/javaee/javaee-api/5/javaee-api-5.jar, /Users/cyrill/Documents/maven_repo/xml-apis/xml-apis/1.3.03/xml-apis-1.3.03.jar, /Users/cyrill/Documents/maven_repo/net/sf/ehcache/ehcache/1.2.3/ehcache-1.2.3.jar, /Users/cyrill/Documents/maven_repo/commons-lang/commons-lang/2.3/commons-lang-2.3.jar, /Users/cyrill/Documents/maven_repo/javax/el/el-api/1.0/el-api-1.0.jar, /Users/cyrill/Documents/maven_repo/commons-logging/commons-logging/1.1/commons-logging-1.1.jar, /Users/cyrill/Documents/maven_repo/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.jar, /Users/cyrill/Documents/maven_repo/com/sun/glassfish/jsf-impl/2.0/jsf-impl-2.0.jar, /Users/cyrill/Documents/maven_repo/org/jboss/embedded/jboss-deployers/beta2/jboss-deployers-beta2.jar, /Users/cyrill/Documents/maven_repo/org/jboss/embedded/jboss-embedded-api/beta2/jboss-embedded-api-beta2.jar, /Users/cyrill/Documents/maven_repo/org/hibernate/hibernate/3.2.5.ga/hibernate-3.2.5.ga.jar, /Users/cyrill/Documents/maven_repo/cglib/cglib/2.1_3/cglib-2.1_3.jar, /Users/cyrill/Documents/maven_repo/asm/asm-attrs/1.5.3/asm-attrs-1.5.3.jar, /Users/cyrill/Documents/maven_repo/org/jboss/seam/jboss-seam/2.0.0.GA/jboss-seam-2.0.0.GA.jar, /Users/cyrill/Documents/maven_repo/commons-collections/commons-collections/3.2/commons-collections-3.2.jar, /Users/cyrill/Documents/maven_repo/org/hibernate/hibernate-annotations/3.3.0.ga/hibernate-annotations-3.3.0.ga.jar, /Users/cyrill/Documents/maven_repo/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar, /Users/cyrill/Documents/maven_repo/org/dbunit/dbunit/2.2/dbunit-2.2.jar, /Users/cyrill/Documents/maven_repo/org/hibernate/hibernate-validator/3.0.0.ga/hibernate-validator-3.0.0.ga.jar, /Users/cyrill/Documents/maven_repo/dom4j/dom4j/1.6.1-jboss/dom4j-1.6.1-jboss.jar]
            [DEBUG] (f) disableXmlReport = false
            [DEBUG] (f) forkMode = once
            [DEBUG] (f) localRepository = [local] -> file:///Users/cyrill/Documents/maven_repo
            [DEBUG] (f) parallel = false
            [DEBUG] (f) pluginArtifactMap = {org.codehaus.plexus:plexus-utils=org.codehaus.plexus:plexus-utils:jar:1.1:runtime, org.apache.maven.surefire:surefire-api=org.apache.maven.surefire:surefire-api:jar:2.4-collab-20070602.024036-1:runtime, org.codehaus.plexus:plexus-archiver=org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7:runtime, org.apache.maven:maven-artifact=org.apache.maven:maven-artifact:jar:2.0:runtime, org.apache.maven:maven-plugin-api=org.apache.maven:maven-plugin-api:jar:2.0:runtime, org.apache.maven.surefire:surefire-booter=org.apache.maven.surefire:surefire-booter:jar:2.4-collab-20070602.024036-1:runtime, commons-lang:commons-lang=commons-lang:commons-lang:jar:2.1:runtime}
            [DEBUG] (f) printSummary = true
            [DEBUG] (f) projectArtifactMap = {org.hibernate:hibernate=org.hibernate:hibernate:jar:3.2.5.ga:provided, asm:asm-attrs=asm:asm-attrs:jar:1.5.3:provided, jboss:jboss-common-core=jboss:jboss-common-core:jar:2.0.4.GA:provided, net.sf.ehcache:ehcache=net.sf.ehcache:ehcache:jar:1.2.3:provided, org.hibernate:hibernate-validator=org.hibernate:hibernate-validator:jar:3.0.0.ga:provided, org.hibernate:hibernate-entitymanager=org.hibernate:hibernate-entitymanager:jar:3.3.1.ga:provided, org.hibernate:hibernate-annotations=org.hibernate:hibernate-annotations:jar:3.3.0.ga:provided, org.jboss.embedded:jboss-embedded=org.jboss.embedded:jboss-embedded:pom:beta2:test, org.jboss.seam:jboss-seam=org.jboss.seam:jboss-seam:jar:2.0.0.GA:provided, org.jboss.seam:jboss-el=org.jboss.seam:jboss-el:jar:2.0.0.GA:provided, junit:junit=junit:junit:jar:3.8.2:test, org.jboss.embedded:thirdparty-all=org.jboss.embedded:thirdparty-all:jar:beta2:test, cglib:cglib=cglib:cglib:jar:2.1_3:provided, org.testng:testng=org.testng:testng:jar:jdk15:5.5:test, xml-apis:xml-apis=xml-apis:xml-apis:jar:1.3.03:test, org.hibernate:hibernate-commons-annotations=org.hibernate:hibernate-commons-annotations:jar:3.0.0.ga:provided, asm:asm=asm:asm:jar:1.5.3:provided, org.jboss.embedded:hibernate-all=org.jboss.embedded:hibernate-all:jar:beta2:test, dom4j:dom4j=dom4j:dom4j:jar:1.6.1-jboss:provided, junit-addons:junit-addons=junit-addons:junit-addons:jar:1.4:test, poi:poi=poi:poi:jar:2.5.1-final-20040804:test, jboss:javassist=jboss:javassist:jar:3.3.ga:provided, xerces:xmlParserAPIs=xerces:xmlParserAPIs:jar:2.6.2:test, xerces:xercesImpl=xerces:xercesImpl:jar:2.8.1:test, commons-collections:commons-collections=commons-collections:commons-collections:jar:3.2:test, com.sun.glassfish:jsf-impl=com.sun.glassfish:jsf-impl:jar:2.0:test, org.dbunit:dbunit=org.dbunit:dbunit:jar:2.2:test, org.jboss.embedded:jboss-deployers=org.jboss.embedded:jboss-deployers:jar:beta2:test, org.jboss.embedded:jboss-embedded-api=org.jboss.embedded:jboss-embedded-api:jar:beta2:test, javaee:javaee-api=javaee:javaee-api:jar:5:provided, commons-logging:commons-logging=commons-logging:commons-logging:jar:1.1:test, antlr:antlr=antlr:antlr:jar:2.7.6:provided, org.jboss.embedded:jboss-embedded-all=org.jboss.embedded:jboss-embedded-all:jar:beta2:test, commons-lang:commons-lang=commons-lang:commons-lang:jar:2.3:compile, javax.el:el-api=javax.el:el-api:jar:1.0:provided}
            [DEBUG] (f) redirectTestOutputToFile = false
            [DEBUG] (f) remoteRepositories = [[apache.snapshots] -> http://people.apache.org/repo/m2-snapshot-repository/, [central] -> http://repo1.maven.org/maven2]
            [DEBUG] (f) reportFormat = brief
            [DEBUG] (f) reportsDirectory = /Users/cyrill/Documents/Trainingsplattform/NetBeans/TrainingPlatformBuild/TrainingPlatformEJB/target/surefire-reports
            [DEBUG] (f) testClassesDirectory = /Users/cyrill/Documents/Trainingsplattform/NetBeans/TrainingPlatformBuild/TrainingPlatformEJB/target/test-classes
            [DEBUG] (f) testSourceDirectory = /Users/cyrill/Documents/Trainingsplattform/NetBeans/TrainingPlatformBuild/TrainingPlatformEJB/src/test/java
            [DEBUG] (f) threadCount = 5
            [DEBUG] (f) trimStackTrace = true
            [DEBUG] (f) useFile = true
            [DEBUG] (f) useSystemClassLoader = false
            [DEBUG]-- end configuration --
            [DEBUG]dummy:dummy:jar:1.0 (selected for null)
            [DEBUG] org.apache.maven.surefire:surefire-booter:jar:2.4-collab-SNAPSHOT:runtime (selected for runtime)
            [DEBUG] org.apache.maven.surefire:surefire-api:jar:2.4-collab-SNAPSHOT:runtime (selected for runtime)
            [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for runtime)
            [DEBUG] commons-lang:commons-lang:jar:2.1:runtime (selected for runtime)
            [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for runtime)
            [DEBUG] org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7:runtime (selected for runtime)
            [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (selected for runtime)
            [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
            [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
            [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime)
            [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.2:runtime (removed - nearer found: 1.1)
            [DEBUG]surefire-api: resolved to version 2.4-collab-20070602.024036-1 from repository apache.snapshots
            [DEBUG]Adding to surefire booter test classpath: /Users/cyrill/Documents/maven_repo/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
            [DEBUG]Adding to surefire booter test classpath: /Users/cyrill/Documents/maven_repo/junit/junit/3.8.1/junit-3.8.1.jar
            [DEBUG]Adding to surefire booter test classpath: /Users/cyrill/Documents/maven_repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.jar
            [DEBUG]Adding to surefire booter test classpath: /Users/cyrill/Documents/maven_repo/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar
            [DEBUG]Adding to surefire booter test classpath: /Users/cyrill/Documents/maven_repo/org/apache/maven/surefire/surefire-booter/2.4-collab-SNAPSHOT/surefire-booter-2.4-collab-SNAPSHOT.jar
            [DEBUG]Adding to surefire booter test classpath: /Users/cyrill/Documents/maven_repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
            [DEBUG]Adding to surefire booter test classpath: /Users/cyrill/Documents/maven_repo/commons-lang/commons-lang/2.1/commons-lang-2.1.jar
            [DEBUG]Adding to surefire booter test classpath: /Users/cyrill/Documents/maven_repo/org/apache/maven/surefire/surefire-api/2.4-collab-SNAPSHOT/surefire-api-2.4-collab-SNAPSHOT.jar
            [DEBUG]dummy:dummy:jar:1.0 (selected for null)
            [DEBUG] org.testng:testng:jar:jdk15:5.5:test (selected for test)
            [DEBUG] junit:junit:jar:3.8.1:test (selected for test)
            [DEBUG]Adding to surefire booter test classpath: /Users/cyrill/Documents/maven_repo/junit/junit/3.8.1/junit-3.8.1.jar
            [DEBUG]Adding to surefire booter test classpath: /Users/cyrill/Documents/maven_repo/org/testng/testng/5.5/testng-5.5-jdk15.jar
            [DEBUG]dummy:dummy:jar:1.0 (selected for null)
            snapshot org.apache.maven.surefire:surefire-testng:2.4-collab-SNAPSHOT: checking for updates from apache.snapshots
            [DEBUG]Skipping disabled repository central
            [DEBUG]surefire-testng: resolved to version 2.4-collab-20070602.024036-1 from repository apache.snapshots
            [DEBUG]Retrieving parent-POM: org.apache.maven.surefire:surefire-providers::2.4-collab-SNAPSHOT for project: null:surefire-testng:jar:null from the repository.
            snapshot org.apache.maven.surefire:surefire-providers:2.4-collab-SNAPSHOT: checking for updates from apache.snapshots
            [DEBUG]Skipping disabled repository central
            [DEBUG]surefire-providers: resolved to version 2.4-collab-20070602.024036-1 from repository apache.snapshots
            [DEBUG] org.apache.maven.surefire:surefire-testng:jar:2.4-collab-SNAPSHOT (selected for null)
            [DEBUG] org.apache.maven.surefire:surefire-api:jar:2.4-collab-SNAPSHOT:compile (selected for compile)
            [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:compile (selected for compile)
            [DEBUG] commons-lang:commons-lang:jar:2.1:compile (selected for compile)
            [DEBUG] org.testng:testng:jar:jdk15:5.1:compile (selected for compile)
            [DEBUG] junit:junit:jar:3.8.1:compile (selected for compile)
            [DEBUG]surefire-api: resolved to version 2.4-collab-20070602.024036-1 from repository apache.snapshots
            [DEBUG]surefire-testng: resolved to version 2.4-collab-20070602.024036-1 from repository apache.snapshots
            [DEBUG]Adding to surefire test classpath: /Users/cyrill/Documents/maven_repo/org/apache/maven/surefire/surefire-testng/2.4-collab-SNAPSHOT/surefire-testng-2.4-collab-SNAPSHOT.jar
            [DEBUG]Adding to surefire test classpath: /Users/cyrill/Documents/maven_repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
            [DEBUG]Adding to surefire test classpath: /Users/cyrill/Documents/maven_repo/commons-lang/commons-lang/2.1/commons-lang-2.1.jar
            [DEBUG]Adding to surefire test classpath: /Users/cyrill/Documents/maven_repo/org/apache/maven/surefire/surefire-api/2.4-collab-SNAPSHOT/surefire-api-2.4-collab-SNAPSHOT.jar
            [DEBUG]Test Classpath :
            [DEBUG] /Users/cyrill/Documents/Trainingsplattform/NetBeans/TrainingPlatformBuild/TrainingPlatformEJB/target/classes
            [DEBUG] /Users/cyrill/Documents/Trainingsplattform/NetBeans/TrainingPlatformBuild/TrainingPlatformEJB/target/test-classes
            [DEBUG] /Users/cyrill/Documents/maven_repo/org/jboss/embedded/jboss-embedded-all/beta2/jboss-embedded-all-beta2.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/jboss/jboss-common-core/2.0.4.GA/jboss-common-core-2.0.4.GA.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/org/hibernate/hibernate-commons-annotations/3.0.0.ga/hibernate-commons-annotations-3.0.0.ga.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/org/hibernate/hibernate-entitymanager/3.3.1.ga/hibernate-entitymanager-3.3.1.ga.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/org/testng/testng/5.5/testng-5.5-jdk15.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/poi/poi/2.5.1-final-20040804/poi-2.5.1-final-20040804.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/org/jboss/embedded/thirdparty-all/beta2/thirdparty-all-beta2.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/antlr/antlr/2.7.6/antlr-2.7.6.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/org/jboss/embedded/hibernate-all/beta2/hibernate-all-beta2.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/asm/asm/1.5.3/asm-1.5.3.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/junit/junit/3.8.2/junit-3.8.2.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/org/jboss/seam/jboss-el/2.0.0.GA/jboss-el-2.0.0.GA.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/junit-addons/junit-addons/1.4/junit-addons-1.4.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/jboss/javassist/3.3.ga/javassist-3.3.ga.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/javaee/javaee-api/5/javaee-api-5.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/xml-apis/xml-apis/1.3.03/xml-apis-1.3.03.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/net/sf/ehcache/ehcache/1.2.3/ehcache-1.2.3.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/commons-lang/commons-lang/2.3/commons-lang-2.3.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/javax/el/el-api/1.0/el-api-1.0.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/commons-logging/commons-logging/1.1/commons-logging-1.1.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/com/sun/glassfish/jsf-impl/2.0/jsf-impl-2.0.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/org/jboss/embedded/jboss-deployers/beta2/jboss-deployers-beta2.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/org/jboss/embedded/jboss-embedded-api/beta2/jboss-embedded-api-beta2.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/org/hibernate/hibernate/3.2.5.ga/hibernate-3.2.5.ga.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/cglib/cglib/2.1_3/cglib-2.1_3.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/asm/asm-attrs/1.5.3/asm-attrs-1.5.3.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/org/jboss/seam/jboss-seam/2.0.0.GA/jboss-seam-2.0.0.GA.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/commons-collections/commons-collections/3.2/commons-collections-3.2.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/org/hibernate/hibernate-annotations/3.3.0.ga/hibernate-annotations-3.3.0.ga.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/org/dbunit/dbunit/2.2/dbunit-2.2.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/org/hibernate/hibernate-validator/3.0.0.ga/hibernate-validator-3.0.0.ga.jar
            [DEBUG] /Users/cyrill/Documents/maven_repo/dom4j/dom4j/1.6.1-jboss/dom4j-1.6.1-jboss.jar
            [DEBUG]Setting system property [localRepository]=[/Users/cyrill/Documents/maven_repo]
            [DEBUG]Setting system property [basedir]=[/Users/cyrill/Documents/Trainingsplattform/NetBeans/TrainingPlatformBuild/TrainingPlatformEJB]
            [DEBUG]Using JVM: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java
            Surefire report directory: /Users/cyrill/Documents/Trainingsplattform/NetBeans/TrainingPlatformBuild/TrainingPlatformEJB/target/surefire-reports
            Forking command line: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java -classpath /Users/cyrill/Documents/maven_repo/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar:/Users/cyrill/Documents/maven_repo/junit/junit/3.8.1/junit-3.8.1.jar:/Users/cyrill/Documents/maven_repo/org/codehaus/plexus/plexus-container-default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.jar:/Users/cyrill/Documents/maven_repo/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar:/Users/cyrill/Documents/maven_repo/org/apache/maven/surefire/surefire-booter/2.4-collab-SNAPSHOT/surefire-booter-2.4-collab-SNAPSHOT.jar:/Users/cyrill/Documents/maven_repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar:/Users/cyrill/Documents/maven_repo/commons-lang/commons-lang/2.1/commons-lang-2.1.jar:/Users/cyrill/Documents/maven_repo/org/apache/maven/surefire/surefire-api/2.4-collab-SNAPSHOT/surefire-api-2.4-collab-SNAPSHOT.jar:/Users/cyrill/Documents/maven_repo/org/testng/testng/5.5/testng-5.5-jdk15.jar org.apache.maven.surefire.booter.SurefireBooter /tmp/surefire22641tmp /tmp/surefire22642tmp
            
            -------------------------------------------------------
             T E S T S
            -------------------------------------------------------
            [Parser] Running:
             Command line suite
            
            Running xx.yyy.trainingplatform.training.facade.TrainingFacadeBeanTest
            ERROR [org.jboss.embedded.DeploymentScanner] Failed to deploy
            
            



            Thanks,

            Cyrill

            • 3. Re: Maven 2 Surefire---TestNG---Seam 2.0 Problems
              Cyrill Rüttimann Newbie

              Hi,

              I have now found a setup which should work. Now, the datasource is not found by the default bootstrap configuration - that's ok. So far, I can provide you the following information:



              1) I had to change the version of testng to 4.7! All other version (5.5, 5.7) do not work with surefire-2.4-collab-SNAPSHOT
              2) I have changed to surefire-2.4-SNAPSHOT (there was a nightly build from today), but this build has issues with the classpath. It does not recognise the jsf-impl I provide on the test classpath.
              3) You are not allowed to have hibernate-entitymanager on the classpath because of hibernate-annotations.


              Regards,

              Cyrill