Results 1 to 1 of 1
- 03-16-2012, 02:38 PM #1
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 8
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
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.
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).
Similar Threads
-
junit test case error
By acmohan in forum New To JavaReplies: 7Last Post: 07-12-2011, 01:13 PM -
MAVEN-JAXB Plugin
By bvercoutere in forum EclipseReplies: 1Last Post: 01-05-2011, 09:27 PM -
Maven plugin for eclipse + "Updating Maven Dependencies" problem??
By sbutt in forum EclipseReplies: 0Last Post: 04-20-2009, 06:26 PM -
Docbkx Maven Plugin 2.0.6
By levent in forum Java SoftwareReplies: 0Last Post: 07-29-2007, 06:00 PM -
Docbkx Maven Plugin 2.0.5
By JavaBean in forum Java SoftwareReplies: 0Last Post: 07-20-2007, 08:54 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks