[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-2937) If "/lib/gen" is populated testng tests fail with configuration errors

Jay Balunas (JIRA) jira-events at lists.jboss.org
Fri May 2 11:42:20 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBSEAM-2937?page=all ]

Jay Balunas updated JBSEAM-2937:
--------------------------------

    Attachment: ant-testcore-config-error.txt

> If "/lib/gen" is populated testng tests fail with configuration errors
> ----------------------------------------------------------------------
>
>                 Key: JBSEAM-2937
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2937
>             Project: Seam
>          Issue Type: Bug
>          Components: Test Harness
>    Affects Versions: 2.0.2.CR2
>            Reporter: Jay Balunas
>         Attachments: ant-testcore-config-error.txt
>
>
> If you run "ant testcore", "ant testall", or "ant test" (with the examples) the tests will fail if the "$SEAM/lib/gen" directory is there.  The "gen" directory gets populated while using seam-gen.  If I remove the "gen" directory all tests are fine.  If I put it back they fail with errors like below.  I will attach a more complete log.  The jars in that directory are also listed below.
> ant.jar
> ant.jar     
> dom4j.jar       
> hibernate-tools.jar  
> jboss-el.jar    
> runtime.jar
> bsh.jar     
> el-api.jar     
> hsqldb.jar           
> jboss-seam.jar  
> text.jar
> common.jar  
> freemarker.jar  
> javassist.jar        
> jtidy.jar
> An example of the error:
>   [testng] FAILED CONFIGURATION: @BeforeClass init
>    [testng] java.lang.RuntimeException: Unable to bootstrap: 
>    [testng]     at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:147)
>    [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] Caused by: java.lang.IllegalStateException: ServerConfig is already installed.
>    [testng]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:525)
>    [testng]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:398)
>    [testng]     at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:96)
>    [testng]     at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:141)
>    [testng]     ... 29 more
>    [testng] ... Removed 22 stack frames
>    [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
>    [testng] SKIPPED CONFIGURATION: @AfterMethod end
>    [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
>    [testng] SKIPPED CONFIGURATION: @AfterMethod end
>    [testng] SKIPPED CONFIGURATION: @AfterClass cleanup
>    [testng] SKIPPED: testRequiredPageParameter
>    [testng] SKIPPED: testPageParameter
>    [testng] 
>    [testng] ===============================================
>    [testng]     Seam Core - Integration: Pages.xml
>    [testng]     Tests run: 2, Failures: 0, Skips: 2
>    [testng]     Configuration Failures: 1, Skips: 5
>    [testng] ===============================================
>    [testng] 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list