It's probably pulling the activation stuff from the JDK (assuming Java6) for jetty, but then from the geronimo activation stuff for CXF. If you exclude the geronimo-activation stuff, it will probably work.
It's also probably not an issue on trunk where the geronimo stuff wouldn't be pulled in when using Java6. Dan On Tuesday 17 August 2010 5:30:50 pm Benson Margulies wrote: > Using the maven-jetty-plugin for jetty 6.1.24, and cxf version 2.2.9, > I get the following classpath fight. I suppose that I either need an > exclusion from the plugin or a 'provided' in my own list of > dependencies. Anyone know what it is that I need to do that to? > > java.lang.LinkageError: loader constraint violation: when resolving > overridden method > "org.apache.cxf.jaxb.attachment.JAXBAttachmentUnmarshaller.getAttachmentAsD > ataHandler(Ljava/lang/String;)Ljavax/activation/DataHandler;" the class > loader (instance of > org/mortbay/jetty/webapp/WebAppClassLoader) of the current class, > org/apache/cxf/jaxb/attachment/JAXBAttachmentUnmarshaller, and its > superclass loader (instance of <bootloader>), have different Class > objects for the type javax/activation/DataHandler used in the > signature -- Daniel Kulp [email protected] http://dankulp.com/blog
