0 Replies Latest reply on Aug 12, 2007 8:20 PM by Gena

    Jndi problem with jboss embedded and testng

    Gena Newbie


      i'm trying to run a testng test. At the beginning it looks fine:

      01:55:18,578 INFO [Component] Component: offerLifecycle, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: de.intermobil.appl.OfferLifecycleBean, JNDI: OfferLifecycleBean/local

      but as soon es the test needs an injected value, the following exceptions are thrown:

      FAILED CONFIGURATION: @BeforeClass init
      org.jboss.seam.InstantiationException: Could not instantiate Seam component: offerLifecycle
       at org.jboss.seam.Component.newInstance(Component.java:1955)
      Caused by: javax.naming.NameNotFoundException: OfferLifecycleBean not bound
       at org.jnp.server.NamingServer.getBinding(NamingServer.java:542)
       at org.jnp.server.NamingServer.getBinding(NamingServer.java:550)

      I don't know why it doesn't work. The full jboss version works fine just the embedded jboss doesn't work.

      The configuration seems to be ok. Only the jndi lookup for "OfferLifecycleBean/local" fails. Could you give me a hint, what could be wrong?

      Thanks, Gena