2 Replies Latest reply on Feb 4, 2006 9:19 PM by peterrusselluk

    Out of box running EJB3 Embedded tutorial fails

    peterrusselluk

      Following some unsuccessful unit testing of my own EJBs, I downloaded jboss-EJB-3.0_Embeddable_ALPHA_3 and decided to run the tests provided in the tutorial.

      I got the same error as in my own tests:
      jboss-EJB-3.0_Embeddable_ALPHA_3/docs/embedded-tutorial/test-with-junit

      ant run


      gives
      Testsuite: org.jboss.tutorial.junit.EmbeddedEjb3TestCase
      Tests run: 0, Failures: 0, Errors: 1, Time elapsed: 1.783 sec
      
      Testcase: unknown took 0 sec
       Caused an ERROR
      org.jboss.kernel.spi.registry.KernelRegistryEntryNotFoundException: Entry not found with name: InitialContextProperties
      java.lang.RuntimeException: org.jboss.kernel.spi.registry.KernelRegistryEntryNotFoundException: Entry not found with name: InitialContextProperties
       at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.scanClasspath(EJB3StandaloneBootstrap.java:157)
       at org.jboss.tutorial.junit.EmbeddedEjb3TestCase.startupEmbeddedJboss(EmbeddedEjb3TestCase.java:59)
       at org.jboss.tutorial.junit.EmbeddedEjb3TestCase$1.setUp(EmbeddedEjb3TestCase.java:44)
       at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
       at junit.extensions.TestSetup.run(TestSetup.java:23)
      Caused by: org.jboss.kernel.spi.registry.KernelRegistryEntryNotFoundException: Entry not found with name: InitialContextProperties
       at org.jboss.kernel.plugins.registry.AbstractKernelRegistry.getEntry(AbstractKernelRegistry.java:84)
       at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.getInitialContextProperties(EJB3StandaloneBootstrap.java:120)
       at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.scanClasspath(EJB3StandaloneBootstrap.java:138)
       ... 8 more
      


      Given I have done nothing but unzip the archive, why is this failing?

      OS: Mac OS X Version 10.4.4
      java version "1.5.0_05"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-83)
      Java HotSpot(TM) Client VM (build 1.5.0_05-48, mixed mode, sharing)