3 Replies Latest reply on Dec 29, 2008 11:32 AM by angusm

    TestSuite in Eclipse problem

    hbpost

      Hi. I'm having difficulty getting the JBossWS TestSuite to run in Eclipse. I'm using jbossws-3.01-native under 4.2.2GA and was able to build and install jbossws successfully, and run the test from the ant script. I've followed the instructions under 'Setup you IDE' and everything builds fine, but when I try to run any of the tests in Eclipse 3.3.1 I get: "Could not find the main class. Program will exit." The .launch files have been processed correctly from what I can tell, I just can't see what's missing.

      Thanks,

      Herman Post

        • 1. Re: TestSuite in Eclipse problem

          I had the same problem - obligatory blog entry here : http://arrogantprogrammer.blogspot.com/2008/10/jbossws.html.

          I haven't figured out why this is happening; however, the problem disappeared when I imported the project into a fresh Eclipse install. I was running Eclipse 3.3 with JBossTools installed when the error was occurring.

          I'll file a Jira issue if I can reproduce.

          • 2. Re: TestSuite in Eclipse problem

            I had the same problem. I tried with a 1.6 jre and got this stack trace:

            java.lang.NoClassDefFoundError: Testsuite/output
            Caused by: java.lang.ClassNotFoundException: Testsuite.output
             at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
             at java.security.AccessController.doPrivileged(Native Method)
             at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
             at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
             at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
             at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
             at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
            Exception in thread "main"
            

            I then downloaded a new Eclipse, as described above, and it was OK. However I had to go back to jre 1.5 because I hit the problem described here: https://jira.jboss.org/jira/browse/JBWS-2418.

            • 3. Re: TestSuite in Eclipse problem

              I have had this problem again. it happens when you tick 'Copy projects into workspace'.
              So for the JBossWS samples testsuite in Eclipse I recommend:
              Do NOT tick 'Copy projects into workspace'.
              DO use a jre 1.5.