2 Replies Latest reply on Aug 8, 2008 7:47 PM by System Administrator

    Problems with Seam Test

    Daniel Behrwind Newbie

      Hi,


      I'm having difficulties getting seam test running, I always end up with this error:


      ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Parse: name=vfsfile:/C:/Dokumente%20und%20Einstellungen/Behrwind/workspace_test/testTest/bootstrap/deploy/jboss-local-jdbc.rar state=Not Installed mode=Manual requiredState=Parse



      I guessed that was an issue with JBoss Embedded and I read a lot about JBoss Embedded needing Java 5 so I finally eliminted Java completely from my system, installed one single JDK 1.5.0.16, generated a new project using seam-gen, added one action, executed seam test and still ran into the same problem.


      Can anyone tell me what goes wrong or give me a hint what else I have to consider?


      Thanks for any help!


      Here's the stack trace:


      C:\Entwicklung\jboss-seam-2.0.2.SP1\jboss-seam-2.0.2.SP1>seam test
      Buildfile: C:\Entwicklung\jboss-seam-2.0.2.SP1\jboss-seam-2.0.2.SP1\seam-gen\build.xml
      
      init:
      
      init-properties:
           [echo] C:/Entwicklung/jboss-4.2.2.GA
      
      validate-workspace:
      
      validate-project:
      
      test:
           [echo] Running tests for project 'testTest'
      
      compiletest:
      
      copytestclasses:
      
      buildtest:
           [copy] Copying 1 file to C:\Dokumente und Einstellungen\Behrwind\workspace_test\testTest\test-build\META-INF
           [copy] Copying 1 file to C:\Dokumente und Einstellungen\Behrwind\workspace_test\testTest\test-build
      
      test:
         [testng] [Parser] Running:
         [testng]   C:\Dokumente und Einstellungen\Behrwind\workspace_test\testTest\test-build\MyActionTest.xml
         [testng]
         [testng] ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Parse: name=vfsfile:/C:/Dokumente%20und%20Einstel
      lungen/Behrwind/workspace_test/testTest/bootstrap/deploy/jboss-local-jdbc.rar state=Not Installed mode=Manual requiredState=Parse
         [testng] org.jboss.deployers.spi.DeploymentException: Error parsing meta data jboss-local-jdbc.rar/META-INF/ra.xml
         [testng]     at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
         [testng]     at org.jboss.deployers.vfs.spi.deployer.ObjectModelFactoryDeployer.parse(ObjectModelFactoryDeployer.java:124)
         [testng]     at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:86)
         [testng]     at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:22
      3)
         [testng]     at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:19
      9)
         [testng]     at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:162)
         [testng]     at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
         [testng]     at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
         [testng]     at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
         [testng]     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
         [testng]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
         [testng]     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
         [testng]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
         [testng]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
         [testng]     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
         [testng]     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
         [testng]     at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
         [testng]     at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
         [testng]     at org.jboss.embedded.DeploymentScanner.start(DeploymentScanner.java:105)
         [testng]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [testng]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         [testng]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         [testng]     at java.lang.reflect.Method.invoke(Unknown Source)
         [testng]     at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:56)
         [testng]     at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:110)
         [testng]     at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
         [testng]     at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.ja
      va:214)
         [testng]     at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:45)
         [testng]     at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:108)
         [testng]     at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:69)
         [testng]     at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
         [testng]     at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:135)
         [testng]     at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:46)
         [testng]     at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
         [testng]     at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
         [testng]     at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
         [testng]     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
         [testng]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
         [testng]     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
         [testng]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
         [testng]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
         [testng]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:574)
         [testng]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:398)
         [testng]     at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:309)
         [testng]     at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:279)
         [testng]     at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
         [testng]     at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:96)
         [testng]     at org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:130)
         [testng]     at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:142)
         [testng]     at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:183)
         [testng]     at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:195)
         [testng]     at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:11)
         [testng]     at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1041)
         [testng]     at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:935)
         [testng]     at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
         [testng]     at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
         [testng]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [testng]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         [testng]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         [testng]     at java.lang.reflect.Method.invoke(Unknown Source)
         [testng]     at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
         [testng]     at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:394)
         [testng]     at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142)
         [testng]     at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:79)
         [testng]     at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:165)
         [testng]     at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
         [testng]     at org.testng.TestRunner.runWorkers(TestRunner.java:678)
         [testng]     at org.testng.TestRunner.privateRun(TestRunner.java:624)
         [testng]     at org.testng.TestRunner.run(TestRunner.java:495)
         [testng]     at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
         [testng]     at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
         [testng]     at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
         [testng]     at org.testng.SuiteRunner.run(SuiteRunner.java:190)
         [testng]     at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
         [testng]     at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
         [testng]     at org.testng.TestNG.run(TestNG.java:699)
         [testng]     at org.testng.TestNG.privateMain(TestNG.java:824)
         [testng]     at org.testng.TestNG.main(TestNG.java:802)
         [testng] Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: vfsfile:/C:/Dokumente und Einstellungen/Behrwind/workspace_test/
      testTest/bootstrap/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
         [testng]     at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:177)
         [testng]     at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:186)
         [testng]     at org.jboss.deployers.vfs.spi.deployer.ObjectModelFactoryDeployer.parse(ObjectModelFactoryDeployer.java:120)
         [testng]     ... 76 more
         [testng] Caused by: java.lang.NullPointerException
         [testng]     at java.util.Arrays$ArrayList.<init>(Unknown Source)
         [testng]     at java.util.Arrays.asList(Unknown Source)
         [testng]     at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
         [testng]     at sun.net.www.protocol.file.FileURLConnection.initializeHeaders(Unknown Source)
         [testng]     at sun.net.www.protocol.file.FileURLConnection.getLastModified(Unknown Source)
         [testng]     at org.jboss.virtual.plugins.context.AbstractURLHandler.initCacheLastModified(AbstractURLHandler.java:72)
         [testng]     at org.jboss.virtual.plugins.context.AbstractURLHandler.<init>(AbstractURLHandler.java:65)
         [testng]     at org.jboss.virtual.plugins.context.file.FileHandler.<init>(FileHandler.java:70)
         [testng]     at org.jboss.virtual.plugins.context.file.FileHandler.<init>(FileHandler.java:89)
         [testng]     at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:253)
         [testng]     at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:186)
         [testng]     at org.jboss.virtual.plugins.context.file.FileHandler.getChildren(FileHandler.java:179)
         [testng]     at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:239)
         [testng]     at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:186)
         [testng]     at org.jboss.virtual.plugins.context.file.FileHandler.createChildHandler(FileHandler.java:216)
         [testng]     at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:291)
         [testng]     at org.jboss.virtual.plugins.context.file.FileHandler.findChild(FileHandler.java:199)
         [testng]     at org.jboss.virtual.plugins.context.AbstractVFSContext.findChild(AbstractVFSContext.java:118)
         [testng]     at org.jboss.virtual.VFS.findChild(VFS.java:205)
         [testng]     at org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.resolveCachedVirtualFile(VirtualFileURLConnection.java:90)
         [testng]     at org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.getVirtualFile(VirtualFileURLConnection.java:105)
         [testng]     at org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.getInputStream(VirtualFileURLConnection.java:117)
         [testng]     at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
         [testng]     at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
         [testng]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         [testng]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         [testng]     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         [testng]     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         [testng]     at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
         [testng]     at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:173)
         [testng]     ... 78 more



        • 1. Re: Problems with Seam Test
          Daniel Behrwind Newbie

          Turns out the problem was caused by the spaces in the path to my eclipse workspace (user directories reside under C:\Dokumente und Einstellungen\ in german Windows ... Once I moved my workspace to a directory wothout blank characters tests worked fine ... hmpf!

          • 2. Re: Problems with Seam Test
            System Administrator Expert

            I am seeing a similar error when i run my test:


            Buildfile: C:\projects\SHIMS\build.xml
            compiletest:
            copytestclasses:
            buildtest:
                 [copy] Copying 1 file to C:\projects\SHIMS\test-build
                 [copy] Copying 1 file to C:\projects\SHIMS\test-build\META-INF
                 [copy] Copying 1 file to C:\projects\SHIMS\test-build
            test:
               [testng] [Parser] Running:
               [testng]   C:\projects\SHIMS\test-build\assignInventoryToTechTest.xml
               [testng] ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Described: name=ServerConfig state=PreInstall
               [testng] java.lang.NoClassDefFoundError: org/jboss/bootstrap/BaseServerConfig
            ...
              [testng] ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to PreInstall: name=ServiceClassLoaderDeployer state=Not Installed
               [testng] java.lang.NoClassDefFoundError: org/jboss/deployers/spi/deployer/helpers/AbstractTopLevelClassLoaderDeployer
            ...
               [testng] ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to PreInstall: name=ResourcesToDeploy state=Not Installed
               [testng] java.lang.TypeNotPresentException: Type org.jboss.deployers.structure.spi.DeploymentUnit not present
            ...
               [testng] Caused by: java.lang.ClassNotFoundException: org.jboss.deployers.structure.spi.DeploymentUnit
               [testng]      at java.lang.Class.forName0(Native Method)
               [testng]      at java.lang.Class.forName(Class.java:242)
               [testng]      at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:95)
               [testng]      ... 61 more



            anybody have any idea why this is happening??