1 Reply Latest reply on Nov 12, 2007 11:13 AM by bvdberg

    Some error startup embededjboss,any one can help me?

    coolfish007

      when i run testcase extends from seamtest,there are errors when startup the embedded jboss:
      FAILED CONFIGURATION: @BeforeClass init
      java.lang.RuntimeException: Unable to bootstrap:
      at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:167)
      at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:201)
      at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:214)
      at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:11)
      at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1017)
      at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:942)
      at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
      Caused by: org.jboss.kernel.spi.registry.KernelRegistryEntryNotFoundException: Entry not found with name: MainDeployer
      at org.jboss.kernel.plugins.registry.AbstractKernelRegistry.getEntry(AbstractKernelRegistry.java:89)
      at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:163)
      ... 28 more
      ... Removed 22 stack frames
      ========================================
      how to resovle this?

        • 1. Re: Some error startup embededjboss,any one can help me?
          bvdberg

          Maybe this will help you.
          I assume you know that you need to have the bootstrap configuration on your classpath and the required jars.

          in jboss-service.xml there is a bean defined called MainDeployer.

          <mbean code="org.jboss.deployment.MainDeployer"
           name="jboss.system:service=MainDeployer">
           <!-- This is used to delegate the deployment handling -->
           <attribute name="KernelMainDeployer"><inject bean="MainDeployer" /></attribute>
           </mbean>