Results 1 to 1 of 1
- 03-16-2012, 03:38 PM #1Senior Member
- Join Date
- Jun 2008
- Rep Power
Error with a JUnit test using maven surefire plugin
I am attempting to run a junit test against a JAX-WS service method
using a simple client class and compiled generated sources from
When the test is run through surefire while doing either test or install
I get the error
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.
Anyone have an idea of what the problem might be, or how it might be overcome?
P.S. "using the same classpath, etc" obviously means that I am using the same versions of all of the components as they are all pulled from the repository and the classpath points directly to the repository, the only things not included are whatever jars and the like used for the Junit4Provider and the other elements of surefire. My only guess is that one of these jars (the surefire jars, that is) also contains the above mentioned class, or includes another jar that contains it, in a version that is not compatible with the other JAX-XXX jars (i.e. a jaxb version that is not compatible with JAX-WS 2.2).
- By acmohan in forum New To JavaReplies: 7Last Post: 07-12-2011, 01:13 PM
- By bvercoutere in forum EclipseReplies: 1Last Post: 01-05-2011, 10:27 PM
- By sbutt in forum EclipseReplies: 0Last Post: 04-20-2009, 06:26 PM
- By levent in forum Java SoftwareReplies: 0Last Post: 07-29-2007, 06:00 PM
- By JavaBean in forum Java SoftwareReplies: 0Last Post: 07-20-2007, 08:54 PM