Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-851

Error with a JUnit test using surefire plugin

    Details

      Description

      I am attempting to run a junit test against a JAX-WS service method
      using a simple client class and compiled generated sources from
      ws-import.

      When the test is run through surefire while doing either test or install
      I get the error

      java.lang.NoSuchMethodError:
      com.sun.xml.ws.api.model.SEIModel.getJAXBContext()Lcom/sun/xml/bind/api/JAXBRIContext;

      but when I inspect the xml in the surefire reports directory and use
      java and junit directly on the command line using the classpath and
      bootclasspath outlined in the xml file (and, of course, the same version
      of junit and the same version of java) the test is successful.

      What is (or could be) the problem?

        Attachments

        1. output
          201 kB
          Martin Simons

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              masijade Martin Simons
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: