Need Help with Seam\TestNG "Error installing to Parse:...jboss-seam.jar"
akssoon Feb 12, 2009 1:40 PMHi
I already had my seam integration tests up and running a few days ago, but the error (see (1)) I'm currently getting leaves me absolutely clueless :-(. I have no idea why I now have a problem with installing jboss-seam.jar or why a file called standardjboss.xml is suddently required. The only thing that was added to the project recently was a JAAS configuration to use our windows domain aswell as two other databases for authentication.
The current setup looks like this:
- Java version: 1.5
- Seam: v2.0.2.SP1
- my test-build directory looks like (2)
- my test classpath (3)
- my test ant task (4)
I'm gratefull for any ideas, theories, suggestions. If you need more information just ask
Thx for reading
(1)
[testng] C:\project\project-test\test-build\com\path\to\src\test\testngconfig.xml [testng] ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Parse: name=vfsjar:file:/C:/project/project-ear/EarContent/jboss-seam.jar!/ state=Not Installed mode=Manual requiredState=Parse [testng] org.jboss.deployers.spi.DeploymentException: File does not exist: C:\project\project-test\bootstrap\server\default\conf\standardjboss.xml [testng] at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [testng] at org.jboss.deployment.JBossEjbParsingDeployer.getStandardMetaData(JBossEjbParsingDeployer.java:215) [testng] at org.jboss.deployment.JBossEjbParsingDeployer.createMetaData(JBossEjbParsingDeployer.java:112) [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.DeploymentGroup.process(DeploymentGroup.java:127) [testng] at org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.java:289) [testng] at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:19) [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: java.io.FileNotFoundException: File does not exist: C:\project\project-test\bootstrap\server\default\conf\standardjboss.xml [testng] at org.jboss.virtual.plugins.context.file.FileHandler.<init>(FileHandler.java:74) [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.FileSystemContext.<init>(FileSystemContext.java:150) [testng] at org.jboss.virtual.plugins.context.file.FileSystemContext.<init>(FileSystemContext.java:124) [testng] at org.jboss.virtual.plugins.context.file.FileSystemContext.<init>(FileSystemContext.java:113) [testng] at org.jboss.virtual.plugins.context.file.FileSystemContextFactory.getVFS(FileSystemContextFactory.java:51) [testng] at org.jboss.virtual.VFS.getVFS(VFS.java:132) [testng] at org.jboss.virtual.VFS.getRoot(VFS.java:146) [testng] at org.jboss.deployment.JBossEjbParsingDeployer.getStandardMetaData(JBossEjbParsingDeployer.java:206) [testng] ... 43 more [testng] FAILED CONFIGURATION: @BeforeClass init [testng] org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): [testng] *** CONTEXTS IN ERROR: Name -> Error [testng] vfsjar:file:/C:/project/project-ear/EarContent/jboss-seam.jar/ -> java.io.FileNotFoundException: File does not exist: C:\project\project-test\bootstrap\server\default\conf\standardjboss.xml [testng] at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:576) [testng] at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:559) [testng] at org.jboss.embedded.DeploymentGroup.process(DeploymentGroup.java:128) [testng] at org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.java:289) [testng] at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:19) [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] ... Removed 22 stack frames
(2)
com\path\to\src <-- class files com\path\to\src\test <-- test classes + testng.xml META-INF\ application.xml ejb-jar.xml jboss-app.xml jboss-service.xml login-config.xml persistence.xml WEB-INF\ components.xml faces-config.xml jboss-web.xml pages.xml web.xml components.properties login.page.xml migration.properties seam.properties security.drl project-test-ds.xml
(3)
C:\project\project-test\test-build; C:\project\project-test\bootstrap; C:\project\project-test\lib\core.jar; C:\project\project-test\lib\hibernate-all.jar; C:\project\project-test\lib\jboss-embedded-all.jar; C:\project\project-test\lib\jboss-embedded-api.jar; C:\project\project-test\lib\mysql-connector-java-5.1.7-bin.jar; C:\project\project-test\lib\testng.jar; C:\project\project-test\lib\thirdparty-all.jar; C:\dev\jboss-seam-2.0.2.SP1\lib\dbunit.jar; C:\dev\jboss-seam-2.0.2.SP1\lib\el-api.jar; C:\dev\jboss-seam-2.0.2.SP1\lib\jsf-api.jar; C:\project\project-ear\EarContent\jasperreports-3.1.2.jar; C:\project\project-ear\EarContent\jboss-seam.jar; C:\project\project-ear\EarContent\jcifs-1.3.2.jar
(4)
<target name="test" depends="buildtest" description="Run the tests"> <taskdef resource="testngtasks" classpath="${project.test.dir}/lib/testng.jar" /> <testng outputdir="${test.report.dir}"> <jvmarg value="-Xmx800M" /> <classpath> <path refid="test.classpath" /> </classpath> <xmlfileset dir="${test.build.dir}" includes="**/testngconfig.xml" /> </testng> </target>