1 Reply Latest reply on Apr 20, 2009 3:06 PM by mreddysudarsana.mvs_reddy1.yahoo.co.in

    Seam integration test failing inside eclipse

    mreddysudarsana.mvs_reddy1.yahoo.co.in

      Hi Friends,


      I am trying to run my integration test classes in side eclipse(i.e with out ant test).


      I have added the following jars and folders to the class path.


      From the Classpath tab, I removed all user entries, and added these JARs:




        • 1. Re: Seam integration test failing inside eclipse
          mreddysudarsana.mvs_reddy1.yahoo.co.in
          Hi Friends,

          I am trying to run my integration test classes in side eclipse(i.e with out ant test).

          I have added the following jars and folders to the class path.

          From the Classpath tab, I removed all user entries, and added these JARs:

              * lib/test/hibernate-all.jar
              * lib/test/jboss-embedded-all.jar
              * lib/test/thirdparty-all.jar
              * lib/jboss-embedded-api.jar
              * lib/jboss-seam.jar
              * lib/jboss-el.jar
              * lib/activation.jar
              * lib/jsf-api.jar
              * lib/el-api.jar

          Then, using the Advanced... option, I added these folders:

              * jboss-seam/bootstrap
              * /path/to/example/test-build

          while running I am facing the below problem.
          ============================================================================


          [Parser] Running:
            D:\project\regent\FAM5\RegentEclipse\eclipseEuropa\workspace\fam_seam2\temp-testng-customsuite.xml

          [RunInfo] Adding method selector: org.testng.internal.XmlMethodSelector@1372a1a priority: 10
          [TestClass] Creating TestClass for [ClassImpl com.regenteducation.fam.location.AddLocationTest]
          [TestClass] Adding method com.regenteducation.fam.location.AddLocationTest.testAddLocation() on TestClass class com.regenteducation.fam.location.AddLocationTest
          [XmlMethodSelector] Including method org.jboss.seam.mock.init()
          [XmlMethodSelector] Including method org.jboss.seam.mock.cleanup()
          [XmlMethodSelector] Including method com.regenteducation.fam.test.beforeMethod()
          [XmlMethodSelector] Including method org.jboss.seam.mock.begin()
          [MethodInheritance] com.regenteducation.fam.test.SeamDatabaseAbstractTest.beforeMethod() DEPENDS ON org.jboss.seam.mock.SeamTest.begin()
          [XmlMethodSelector] Including method org.jboss.seam.mock.end()
          [XmlMethodSelector] Including method com.regenteducation.fam.location.afterMethod()
          [MethodInheritance] org.jboss.seam.mock.SeamTest.end() DEPENDS ON com.regenteducation.fam.location.AddLocationTest.afterMethod()
          [XmlMethodSelector] Including method com.regenteducation.fam.location.testAddLocation()
          [SuiteRunner] Created 1 TestRunners
          [TestRunner] Running test com.regenteducation.fam.location.AddLocationTest on 1  classes,  included groups:[] excluded groups:[]
          [TestClass]
          ======
          TESTCLASS: com.regenteducation.fam.location.AddLocationTest
          [TestClass] BeforeClass : org.jboss.seam.mock.SeamTest.init()
          [TestClass] BeforeMethod:       org.jboss.seam.mock.SeamTest.begin()
          [TestClass] BeforeMethod:       com.regenteducation.fam.test.SeamDatabaseAbstractTest.beforeMethod()
          [TestClass] Test        :               com.regenteducation.fam.location.AddLocationTest.testAddLocation()
          [TestClass] AfterMethod :       com.regenteducation.fam.location.AddLocationTest.afterMethod()
          [TestClass] AfterMethod :       org.jboss.seam.mock.SeamTest.end()
          [TestClass] AfterClass  : org.jboss.seam.mock.SeamTest.cleanup()
          [TestClass]
          ======

          [TestRunner] WILL BE RUN IN RANDOM ORDER:
          [TestRunner]   com.regenteducation.fam.location.AddLocationTest.testAddLocation()
          [TestRunner] WILL BE RUN SEQUENTIALLY:
          [TestRunner] ===
          [TestRunner] Found 1 applicable methods
          [Invoker 19739141] Invoking @BeforeClass org.jboss.seam.mock.SeamTest.init()
          WARN  [org.jboss.mx.loading.UnifiedLoaderRepository3].addClassLoader Tried to add non-URLClassLoader.  Ignored
          WARN  [com.arjuna.ats.arjuna.logging.arjLoggerI18N].<clinit> [com.arjuna.ats.arjuna.coordinator.TxControl_1] - Name of XA node not defined. Using -3f57e058:1144:49ec7192:0
          WARN  [org.jboss.aop.deployment.AspectManagerService].baseAop Could not find base-aspects.xml file in the resources of sun.misc.Launcher$AppClassLoader@133056f
          WARN  [org.jboss.jms.server.security.SecurityMetadataStore].checkDefaultSuckerPassword WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.
          WARN  [org.jboss.jms.server.connectionfactory.ConnectionFactoryJNDIMapper].registerConnectionFactory supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support failover
          WARN  [org.jboss.jms.server.connectionfactory.ConnectionFactoryJNDIMapper].registerConnectionFactory supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support load balancing
          WARN  [org.jboss.xb.builder.runtime.CollectionPropertyHandler].<init> ClassInfo.getDeclaredConstructor(null) didn't work for org.jboss.metadata.ejb.spec.InterceptorClassesMetaData, found the default ctor in ClassInfo.getDeclaredConstructors()
          ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController].incrementState Error installing to Real: name=vfsfile:/D:/project/regent/FAM5/RegentEclipse/eclipseEuropa/workspace/fam_seam2/test-build/ state=PostClassLoader mode=Manual requiredState=Real
          org.jboss.deployers.spi.DeploymentException: Error deploying test-build: Error creating ejb container ExportCODManagerImpl: com/regenteducation/fam/model/cod/codxml/StudentType
                  at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:158)
                  at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:88)
                  at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
                  at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                  at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
                  at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
                  at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
                  at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
                  at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
                  at org.jboss.embedded.DeploymentGroup.process(DeploymentGroup.java:127)
                  at org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.java:289)
                  at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:15)
                  at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1041)
                  at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:935)
                  at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
                  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:604)
                  at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:394)
                  at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142)
                  at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:79)
                  at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:165)
                  at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
                  at org.testng.TestRunner.runWorkers(TestRunner.java:678)
                  at org.testng.TestRunner.privateRun(TestRunner.java:624)
                  at org.testng.TestRunner.run(TestRunner.java:495)
                  at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
                  at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
                  at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
                  at org.testng.SuiteRunner.run(SuiteRunner.java:190)
                  at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
                  at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
                  at org.testng.TestNG.run(TestNG.java:699)
                  at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
                  at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:122)
          Caused by: org.jboss.deployers.spi.DeploymentException: Error creating ejb container ExportCODManagerImpl: com/regenteducation/fam/model/cod/codxml/StudentType
                  at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:540)
                  at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:486)
                  at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:468)
                  at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:434)
                  at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:376)
                  at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:145)
                  ... 44 more
          Caused by: java.lang.NoClassDefFoundError: com/regenteducation/fam/model/cod/codxml/StudentType
                  at java.lang.Class.getDeclaredMethods0(Native Method)
                  at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
                  at java.lang.Class.getDeclaredMethods(Class.java:1763)
                  at org.jboss.aop.Advisor.deployMethodAnnotationOverrides(Advisor.java:327)
                  at org.jboss.aop.Advisor.doDeployAnnotationOverride(Advisor.java:297)
                  at org.jboss.aop.Advisor$DeployAnnotationOverrideAction$2.deploy(Advisor.java:1255)
                  at org.jboss.aop.Advisor.deployAnnotationOverride(Advisor.java:280)
                  at org.jboss.aop.Advisor.deployAnnotationOverrides(Advisor.java:271)
                  at org.jboss.aop.ClassContainer.initializeMetadata(ClassContainer.java:81)
                  at org.jboss.aop.ClassContainer.initializeClassContainer(ClassContainer.java:65)
                  at org.jboss.ejb3.EJBContainer.instantiated(EJBContainer.java:1280)
                  at org.jboss.ejb3.session.SessionContainer.instantiated(SessionContainer.java:189)
                  at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:534)
                  ... 49 more
          Failed to invoke @Configuration method org.jboss.seam.mock.SeamTest.init:Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

          *** CONTEXTS IN ERROR: Name -> Error

          vfsfile:/D:/project/regent/FAM5/RegentEclipse/eclipseEuropa/workspace/fam_seam2/test-build/ -> java.lang.NoClassDefFoundError: com/regenteducation/fam/model/cod/codxml/StudentType



          *********** INVOKED METHODS

                  org.jboss.seam.mock.SeamTest.init() 25292276
                          com.regenteducation.fam.location.AddLocationTest.testAddLocation() 25292276

          ***********

          Creating D:\project\regent\FAM5\RegentEclipse\eclipseEuropa\workspace\fam_seam2\test-output\fam_seam2\com.regenteducation.fam.location.AddLocationTest.html
          FAILED CONFIGURATION: @BeforeClass init
          org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

          *** CONTEXTS IN ERROR: Name -> Error

          vfsfile:/D:/project/regent/FAM5/RegentEclipse/eclipseEuropa/workspace/fam_seam2/test-build/ -> java.lang.NoClassDefFoundError: com/regenteducation/fam/model/cod/codxml/StudentType


                  at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:576)
                  at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:559)
                  at org.jboss.embedded.DeploymentGroup.process(DeploymentGroup.java:128)
                  at org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.java:289)
                  at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:15)
                  at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1041)
                  at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:935)
                  at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
                  at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
          ... Removed 22 stack frames
          SKIPPED CONFIGURATION: @BeforeMethod begin
          SKIPPED CONFIGURATION: @BeforeMethod beforeMethod
          SKIPPED CONFIGURATION: @AfterMethod afterMethod
          SKIPPED CONFIGURATION: @AfterMethod end
          SKIPPED CONFIGURATION: @AfterClass cleanup
          SKIPPED: testAddLocation

          ===============================================
              com.regenteducation.fam.location.AddLocationTest
              Tests run: 1, Failures: 0, Skips: 1
              Configuration Failures: 1, Skips: 5
          ===============================================


          ===============================================
          fam_seam2
          Total tests run: 1, Failures: 0, Skips: 1
          Configuration Failures: 1, Skips: 5
          ===============================================

          Creating D:\project\regent\FAM5\RegentEclipse\eclipseEuropa\workspace\fam_seam2\test-output\fam_seam2\toc.html
          Creating D:\project\regent\FAM5\RegentEclipse\eclipseEuropa\workspace\fam_seam2\test-output\fam_seam2\com.regenteducation.fam.location.AddLocationTest.properties
          Creating D:\project\regent\FAM5\RegentEclipse\eclipseEuropa\workspace\fam_seam2\test-output\fam_seam2\index.html
          Creating D:\project\regent\FAM5\RegentEclipse\eclipseEuropa\workspace\fam_seam2\test-output\fam_seam2\main.html
          Creating D:\project\regent\FAM5\RegentEclipse\eclipseEuropa\workspace\fam_seam2\test-output\fam_seam2\groups.html
          Creating D:\project\regent\FAM5\RegentEclipse\eclipseEuropa\workspace\fam_seam2\test-output\fam_seam2\methods.html
          Creating D:\project\regent\FAM5\RegentEclipse\eclipseEuropa\workspace\fam_seam2\test-output\fam_seam2\methods-alphabetical.html
          Creating D:\project\regent\FAM5\RegentEclipse\eclipseEuropa\workspace\fam_seam2\test-output\fam_seam2\classes.html
          Creating D:\project\regent\FAM5\RegentEclipse\eclipseEuropa\workspace\fam_seam2\test-output\fam_seam2\reporter-output.html
          Creating D:\project\regent\FAM5\RegentEclipse\eclipseEuropa\workspace\fam_seam2\test-output\fam_seam2\methods-not-run.html
          Creating D:\project\regent\FAM5\RegentEclipse\eclipseEuropa\workspace\fam_seam2\test-output\fam_seam2\testng.xml.html
          Creating D:\project\regent\FAM5\RegentEclipse\eclipseEuropa\workspace\fam_seam2\test-output\index.html
          Creating D:\project\regent\FAM5\RegentEclipse\eclipseEuropa\workspace\fam_seam2\test-output\testng-failed.xml
          Creating D:\project\regent\FAM5\RegentEclipse\eclipseEuropa\workspace\fam_seam2\test-output\fam_seam2\testng-failed.xml
          Creating D:\project\regent\FAM5\RegentEclipse\eclipseEuropa\workspace\fam_seam2\test-output\testng-results.xml



          Thanks in Advance...!