0 Replies Latest reply on Mar 7, 2008 2:07 PM by Erik Hellman

    TestNG test with MicroContainer?

    Erik Hellman Newbie

      We have a Seam 1.2.1 application (upgrade is not an option at the moment) and I'm trying to create some TestNG tests. The application was initially generated with seam-gen, so I have a test task in my build.xml.

      My test will initially do the following:

      public void init() {        
          entityManagerFactory = Persistence.createEntityManagerFactory("bvk");

      When running the test it starts to load all the entities, but then I get the following error:

      14:02:17,292 ERROR NamingHelper Could not obtain initial context
      javax.naming.NamingException: Local server is not initialized

      Is there something wrong with the build.xml that comes with Seam 1.2.1 seam-gen generated projects or have I missed something? Reading the documentation and forums doesn't give me any more advice.