5 Replies Latest reply on Nov 24, 2010 12:40 PM by Laird Nelson

    Glassfish 3 remote: archive deploys, but test case not found

    Laird Nelson Apprentice

      I'm running the following (beginnings of a) test case, which obviously doesn't do anything yet:

       

      @RunWith(Arquillian.class)
      public class TestCase {

       

        @Deployment
        public static EnterpriseArchive createEar() {
          return ShrinkWrap.create(EnterpriseArchive.class, "test.ear");
        }

       

        @Test
        public void hi() {
          assertTrue(true);
        }

       

      }

       

      This deploys fine, but then Glassfish cannot find the test case class:

       

      Nov 24, 2010 11:53:08 AM org.jboss.arquillian.container.jsr88.remote_1_2.JSR88DeploymentListener handleProgressEvent
      INFO: All operations completed successfully
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.268 sec <<< FAILURE!
      hi(ljnelson.weld761.TestCase)  Time elapsed: 0.076 sec  <<< ERROR!
      java.lang.ClassNotFoundException: ljnelson.weld761.TestCase
          at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1518)
          at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1368)
          at org.jboss.arquillian.protocol.servlet_3.ServletTestRunner.doGet(ServletTestRunner.java:80)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)

       

      What piece of configuration am I missing?

       

      Arquillian 1.0.0.Alpha4, Glassfish 3.1b29.

       

      Thanks as usual for Arquillian!

       

      Best,

      Laird