1 Reply Latest reply on Mar 17, 2007 7:37 AM by udo.krass

    TestNG + embeddable EJB3 Container

    udo.krass

      Hi,

      i just try to test my webapp with TestNG.
      I have problems with the embedded EJB3 Container.
      When i start my test, i get following exception:

       [testng] 12:09:37,439 INFO [HbmBinder] Mapping collection: org.jbpm.taskmgmt.def.TaskMgmtDefinition.tasks -> JBPM_TASK
       [testng] 12:09:37,739 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
       [testng] 12:09:37,979 ERROR [NamingHelper] Could not obtain initial context
       [testng] javax.naming.NamingException: Local server is not initialized
       [testng] at org.jnp.interfaces.LocalOnlyContextFactory.getInitialContext(LocalOnlyContextFactory.java:45)
      


      I think this is a classpath issue.
      So can somebody tell me, what my Container wants in his classpath???
      TIA!

        • 1. and it goes on
          udo.krass

          Hi,

          i got it:
          i had to set in my components.xml ejb installed to true ;)
          Now i am getting this exception:

           [testng] FAILED: org.jboss.seam.mock.SeamTest.init()
           [testng] java.lang.RuntimeException: java.lang.IllegalStateException: Incompletely deployed:
           [testng] *** DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
          


          Has somebody an idea what i am doing wrong?
          TIA!