0 Replies Latest reply on Sep 6, 2007 2:08 AM by Urs Wagner

    Embedded EJB and  java.lang.IllegalStateException: Class not

    Urs Wagner Novice

      It is requirement to use JDK 6.
      We are using JBoss Seam 2.0.1 Beta.

      Is there an embedded EJB version working with this configuration?

      I tried it with version embedded EJB Beta 2.
      The consequence is I get the exception

      
      [testng] [Parser] Running:
       [testng] T:\repos\armee\atiras-af-netz\Implementation\source\atiras-af-netz\test-build\Integrat
      ionTest.xml
       [testng] T:\repos\armee\atiras-af-netz\Implementation\source\atiras-af-netz\test-build\UnitTest
      .xml
       [testng] WARN 05-09 15:54:47,111 (UnifiedLoaderRepository3.java:addClassLoader:675) -Tried to a
      dd non-URLClassLoader. Ignored
       [testng] ERROR 05-09 15:54:47,580 (AbstractController.java:incrementState:456) -Error installing
       to Instantiated: name=DeploymentFilter state=Described
       [testng] java.lang.IllegalStateException: Class not found: [Ljava.lang.String;
       [testng] at org.jboss.metadata.spi.signature.Signature.stringsToClasses(Signature.java:174)
       [testng] at org.jboss.metadata.spi.signature.Signature.stringsToClasses(Signature.java:125)
       [testng] at org.jboss.metadata.spi.signature.Signature.getParametersTypes(Signature.java:292)
       [testng] at org.jboss.metadata.plugins.loader.reflection.AnnotatedElementMetaDataLoader.getCompo
      nentMetaDataRetrieval(AnnotatedElementMetaDataLoader.java:138)
       [testng] at org.jboss.metadata.plugins.context.AbstractMetaDataContext.getComponentMetaDataRetri
      eval(AbstractMetaDataContext.java:280)
       [testng] at org.jboss.metadata.spi.retrieval.MetaDataRetrievalToMetaDataBridge.getComponentMetaD
      ata(MetaDataRetrievalToMetaDataBridge.java:159)
       [testng] at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.methodHasAnnotation
      s(AOPConstructorJoinpoint.java:202)
       [testng] at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.hasMethodMetaData(A
      OPConstructorJoinpoint.java:172)
       [testng] at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.hasInstanceOrJoinpo
      intMetaData(AOPConstructorJoinpoint.java:152)
       [testng] at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstru
      ctorJoinpoint.java:99)
       [testng] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(
      KernelControllerContextAction.java:103)
       [testng] at org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(Instanti
      ateAction.java:52)
       [testng] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(Kern
      elControllerContextAction.java:197)
       [testng] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelCont
      rollerContextAction.java:136)
       [testng] at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractContro
      llerContextActions.java:51)
       [testng] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerCon
      text.java:233)
       [testng] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:724)
      
       [testng] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.ja
      va:445)
       [testng] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.j
      ava:555)
       [testng] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.j
      ava:489)
       [testng] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:289)
      
       [testng] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:192)
      
       [testng] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernel
      Deployer.java:302)
       [testng] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKerne
      lDeployer.java:272)
       [testng] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDepl
      oyer.java:119)
       [testng] at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:
      96)
       [testng] at org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:150)
       [testng] at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:162)
       [testng] at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:201)
       [testng] at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:214)
       [testng] at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:919
      )
       [testng] at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:856)
       [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(NativeMethodAccessorImpl.java:39)
       [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25
      )
       [testng] at java.lang.reflect.Method.invoke(Method.java:597)
       [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.lang.ClassNotFoundException: [Ljava.lang.String;
       [testng] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
       [testng] at java.security.AccessController.doPrivileged(Native Method)
       [testng] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
       [testng] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
       [testng] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
       [testng] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
       [testng] at org.jboss.metadata.spi.signature.Signature.stringsToClasses(Signature.java:170)
       [testng] ... 54 more