Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-4000

TestNG failed for Seam Exaple Projects.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.1.GA
    • 3.0.0.GA
    • seam2
    • None

      EXECUTE: Import Seam Booking or Seam DVD Store exaple projects into workspace
      EXECUTE: run TestNG (testng.xml exists)
      FAILURE: TestNG failed for both seam examples projects with similar problem Caused by: java.lang.IllegalArgumentException: You must specify org.jboss.seam.core.init.jndiPattern or use @JndiName:

      java.lang.RuntimeException: Could not create Component: accept
      at org.jboss.seam.init.Initialization.addComponent(Initialization.java:989)
      at org.jboss.seam.init.Initialization.installComponents(Initialization.java:911)
      at org.jboss.seam.init.Initialization.init(Initialization.java:589)
      at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:939)
      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:580)
      at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:398)
      at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:145)
      at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:82)
      at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:167)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:104)
      at org.testng.TestRunner.runWorkers(TestRunner.java:712)
      at org.testng.TestRunner.privateRun(TestRunner.java:582)
      at org.testng.TestRunner.run(TestRunner.java:477)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:324)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:319)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:292)
      at org.testng.SuiteRunner.run(SuiteRunner.java:198)
      at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:823)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:790)
      at org.testng.TestNG.run(TestNG.java:708)
      at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
      at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)
      Caused by: java.lang.IllegalArgumentException: You must specify org.jboss.seam.core.init.jndiPattern or use @JndiName: accept
      at org.jboss.seam.Component.getJndiName(Component.java:438)
      at org.jboss.seam.Component.<init>(Component.java:243)
      at org.jboss.seam.Component.<init>(Component.java:217)
      at org.jboss.seam.init.Initialization.addComponent(Initialization.java:974)
      ... 27 more

      EXECUTE: Import Seam Booking Example - War Standalone
      EXECUTE: run TestNG (testng.xml exists)
      FAILURE: TestNG failed wit another exception:
      javax.servlet.ServletException: ServletContext not allow to getResourceAsStream for /WEB-INF/web.xml
      at org.ajax4jsf.webapp.WebXml.init(WebXml.java:120)
      at org.ajax4jsf.resource.InternetResourceService.init(InternetResourceService.java:133)
      at org.ajax4jsf.webapp.BaseFilter.init(BaseFilter.java:148)
      at org.jboss.seam.web.Ajax4jsfFilter.init(Ajax4jsfFilter.java:86)
      at org.jboss.seam.servlet.SeamFilter.init(SeamFilter.java:97)
      at org.jboss.seam.mock.BaseSeamTest.createSeamFilter(BaseSeamTest.java:992)
      at org.jboss.seam.mock.BaseSeamTest.setupClass(BaseSeamTest.java:965)
      at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:924)
      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:580)
      at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:398)
      at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:145)
      at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:82)
      at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:167)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:104)
      at org.testng.TestRunner.runWorkers(TestRunner.java:712)
      at org.testng.TestRunner.privateRun(TestRunner.java:582)
      at org.testng.TestRunner.run(TestRunner.java:477)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:324)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:319)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:292)
      at org.testng.SuiteRunner.run(SuiteRunner.java:198)
      at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:823)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:790)
      at org.testng.TestNG.run(TestNG.java:708)
      at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
      at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)

              snjeza_jira Snjezana Peco (Inactive)
              aklimkovich Anton Klimkovich (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: