4 Replies Latest reply on Jul 3, 2006 9:05 AM by Jens Weintraut

    EJB3StandaloneBootstrap.boot(

    Shreyasi Newbie

      Hello,
      I am very new to JBOSS and EJB3.0 development in JBOSS. I apologize for the lack of information.
      I was trying to run the test-with-junit tutorial from eclipse.
      The test project I created has dependency on all the Jars in the lib direcotry and also includes the conf directory where all the XML files are located.
      My code throws the a runtime exception when it executes EJB3StandaloneBootstrap.boot(""); in the startupEmbeddedJboss() method.
      The exception is

      java.lang.RuntimeException: Unable to create a KernelInitializer based on the specified KernelConfig
      at org.jboss.kernel.KernelFactory.createKernelInitializer(KernelFactory.java:156)
      at org.jboss.kernel.KernelFactory.assembleNewKernel(KernelFactory.java:99)
      at org.jboss.kernel.KernelFactory.newInstance(KernelFactory.java:67)
      at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.bootstrap(AbstractBootstrap.java:120)
      at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:89)
      at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.createKernel(EJB3StandaloneBootstrap.java:354)
      at org.jboss.tutorial.junit.EmbeddedEjb3TestCase.startupEmbeddedJboss(EmbeddedEjb3TestCase.java:77)
      at org.jboss.tutorial.junit.EmbeddedEjb3TestCase$1.setUp(EmbeddedEjb3TestCase.java:61)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.extensions.TestSetup.run(TestSetup.java:23)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
      Caused by: java.lang.NoSuchMethodError: org.jboss.aop.AspectManager.addSubDomainPerClass(Ljava/lang/Class;Lorg/jboss/aop/Domain;)V
      at org.jboss.aop.GeneratedAdvisorDomain.(GeneratedAdvisorDomain.java:40)
      at org.jboss.aop.proxy.container.ProxyAdvisorDomain.(ProxyAdvisorDomain.java:43)
      at org.jboss.aop.proxy.container.ContainerCache.createContainer(ContainerCache.java:121)
      at org.jboss.aop.proxy.container.ContainerCache.createAndCacheContainer(ContainerCache.java:114)
      at org.jboss.aop.proxy.container.ContainerCache.initClassContainer(ContainerCache.java:90)
      at org.jboss.aop.proxy.container.ContainerCache.initialise(ContainerCache.java:58)
      at org.jboss.aop.proxy.container.GeneratedAOPProxyFactory.getProxy(GeneratedAOPProxyFactory.java:95)
      at org.jboss.aop.proxy.container.GeneratedAOPProxyFactory.createAdvisedProxy(GeneratedAOPProxyFactory.java:76)
      at org.jboss.aop.proxy.container.GeneratedAOPProxyFactory.createAdvisedProxy(GeneratedAOPProxyFactory.java:40)
      at org.jboss.aop.microcontainer.prototype.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:66)WARN 20-04 13:11:34,662 (EJB3StandaloneBootstrap.java:shutdown:305) -java.lang.NoSuchMethodError: org.jboss.util.propertyeditor.PropertyEditors.init()V

      at org.jboss.kernel.plugins.config.Configurator.instantiate(Configurator.java:93)
      at org.jboss.kernel.plugins.config.Configurator.instantiateAndConfigure(Configurator.java:68)
      at org.jboss.kernel.plugins.config.property.PropertyKernelConfig.getImplementation(PropertyKernelConfig.java:149)
      at org.jboss.kernel.plugins.config.property.PropertyKernelConfig.createKernelInitializer(PropertyKernelConfig.java:117)
      at org.jboss.kernel.KernelFactory.createKernelInitializer(KernelFactory.java:150)

      The junit test runs fine when run outside of eclipse through the 'ant run' command.
      Any help will be great.
      I am using JDK1.5, Eclipse 3.1.2, and have the following plugins

      org.hibernate.eclipse (3.1.0.beta4) "Hibernate Core Plugin" [Active]
      org.hibernate.eclipse.console (3.1.0.beta4) "Hibernate Console" [Active]
      org.hibernate.eclipse.help (3.1.0.beta4) "Hibernate Help" [Resolved]
      org.hibernate.eclipse.mapper (3.1.0.beta4) "Mapper Plug-in" [Active]
      org.jboss.ide.eclipse.core (1.5.0.M3) "JBoss Core Plug-in" [Installed]
      org.jboss.ide.eclipse.core (1.5.1.GA) "JBoss Core Plug-in" [Active]
      org.jboss.ide.eclipse.deployer.core (1.5.0.M3) "JBoss Deployer Core Plug-in" [Active]
      org.jboss.ide.eclipse.deployer.ui (1.5.0.M3) "JBoss Deployer UI Plug-in" [Active]
      org.jboss.ide.eclipse.ejb3.wizards.core (1.0.1.GA) "EJB3 Wizards Core Plugin" [Active]
      org.jboss.ide.eclipse.ejb3.wizards.ui (1.0.1.GA) "EJB3 Wizards UI Plug-in" [Active]
      org.jboss.ide.eclipse.jdt.aop.core (1.1.1.GA) "JBoss AOP Core Plug-in" [Active]
      org.jboss.ide.eclipse.jdt.core (1.5.0.M3) "JBoss Development Core Plug-in" [Active]
      org.jboss.ide.eclipse.jdt.j2ee.core (1.5.0.M3) "JBoss Development J2EE Core Plug-in" [Resolved]
      org.jboss.ide.eclipse.jdt.j2ee.ui (1.5.0.M3) "JBoss Development J2EE UI Plug-in" [Resolved]
      org.jboss.ide.eclipse.jdt.test.core (1.5.0.M3) "JBoss Development Test Core Plug-in" [Active]
      org.jboss.ide.eclipse.jdt.test.ui (1.5.0.M3) "JBoss Development Test UI Plug-in" [Active]
      org.jboss.ide.eclipse.jdt.ui (1.5.0.M3) "JBoss Development UI Plug-in" [Active]
      org.jboss.ide.eclipse.jdt.ws.core (1.5.0.M3) "JBoss Development Web Services Core Plug-in" [Resolved]
      org.jboss.ide.eclipse.jdt.ws.ui (1.5.0.M3) "JBoss Development Web Services UI Plug-in" [Resolved]
      org.jboss.ide.eclipse.launcher.core (1.5.0.M3) "JBoss Launcher Core Plug-in" [Installed]
      org.jboss.ide.eclipse.launcher.core (1.5.1.GA) "JBoss Launcher Core Plug-in" [Active]
      org.jboss.ide.eclipse.launcher.ui (1.5.0.M3) "JBoss Launcher UI Plug-in" [Installed]
      org.jboss.ide.eclipse.launcher.ui (1.5.1.GA) "JBoss Launcher UI Plug-in" [Active]
      org.jboss.ide.eclipse.packaging.core (1.5.0.M3) "JBoss Packaging Core Plug-in" [Resolved]
      org.jboss.ide.eclipse.packaging.ui (1.5.0.M3) "JBoss Packaging UI Plug-in" [Resolved]
      org.jboss.ide.eclipse.ui (1.5.0.M3) "JBoss UI Plug-in" [Installed]
      org.jboss.ide.eclipse.ui (1.5.1.GA) "JBoss UI Plug-in" [Resolved]
      org.jboss.ide.eclipse.xdoclet.assist (1.5.0.M3) "XDoclet Assist Plug-in" [Resolved]
      org.jboss.ide.eclipse.xdoclet.core (1.5.0.M3) "XDoclet Core Plug-in" [Resolved]
      org.jboss.ide.eclipse.xdoclet.run (1.5.0.M3) "XDoclet Runner Plug-in" [Resolved]
      org.jboss.ide.eclipse.xdoclet.ui (1.5.0.M3) "XDoclet UI Plug-in" [Resolved]

      Thank you.