It ended up that I didn't overwrite maven's copy, although just for the record, maven got all bent out-of-shape when I tried it.
However thanks, because it prompted the situation where I worked out what was going wrong. The class that JAXB couldn't find is in xercesImpl-2.6.2.jar and I knew I had that because I'd put it in my dependencies and seen it download into my repository. Yet the class was still AWOL. This is where I got caught out - there are in fact TWO xercesImpl-2.6.2.jars in the world. One from Apache and one from Sun. And JAXB wants the class that is in the jar from Sun and not in the one from Apache. Took me a while to find out! A slightly short-sighted naming scheme on Sun's part, but I guess they have their reasons. So after I sorted out the jar, maven was fine. Thanks Adam -----Original Message----- From: Michael Niemaz [mailto:[EMAIL PROTECTED] Sent: 25 February 2005 14:58 To: Maven Users List Subject: Re: xerces I think i had the same kind of trouble with httpClient. All I ended up with was to overwrite the httpClient jar in the lib directory of maven. Dirty but working ;-) Hope this helps, --mike Adam Hardy wrote: >-----Original Message----- >From: Jörg Schaible [mailto:[EMAIL PROTECTED] >Nicolas Chalumeau wrote on Friday, February 25, 2005 1:43 PM: > > >>A corrupted jar ! >> >>java.lang.NoClassDefFoundError: >>com/sun/org/apache/xml/internal/serialize/OutputFormat >>^^^^^^^^^^^^^^^^^^^^^^^^ >> >>This is a strange package path (com.sun and org.apache)! >> >> > >Unfortunately not. This is the next Xerces headache from J2EE 1.4 and >J2SE 5 > > > > >Would I be right in thinking that this is unresolved at present then? > >http://www.bbc.co.uk/ > >This e-mail (and any attachments) is confidential and may contain >personal views which are not the views of the BBC unless specifically >stated. If you have received it in error, please delete it from your >system. Do not use, copy or disclose the information in any way nor act >in reliance on it and notify the sender immediately. Please note that >the BBC monitors e-mails sent or received. >Further communication will signify your consent to this. > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]