tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Karalus <andreas.kara...@googlemail.com>
Subject jaxb 2.0 vs jaxb 2.1
Date Fri, 31 Jul 2009 08:31:50 GMT

problem was already posted, there is a problem with javaee-5.0.2 containing
jaxb-api-2.0, if someone relies on jaxb-impl-2.1 you'll get linkage errors
like this one

Caused by: java.lang.LinkageError: JAXB 2.0 API jar is being loaded (from
jar:file:/D:/mavenRepo/org/apache/openejb/javaee-api/5.0-2/javaee-api-5.0-2.jar!/javax/xml/bind/annotation/XmlSchema.class),
but this RI (from
jar:file:/D:/mavenRepo/jboss/jboss-as/jaxb-impl/4.3.0.GA-CP01-EAP/jaxb-impl-4.3.0.GA-CP01-EAP.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class)
requires JAXB 2.1 API jar.
    at
com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBuilder.java:172)
    at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
    at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
    at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)

-> One way is to replace in your pom.xml
	<dependency>
		<groupId>org.apache.openejb</groupId>
		<artifactId>javaee-api</artifactId>
		<version>5.0-2</version>
	</dependency>
with all the <groupId>org.apache.geronimo.specs</groupId> jars contained in
javaee-api (and not include jaxb-api-2.0.jar) -> see dependecies.xml or
dependencies.txt contained in javaee-api-5.0.2.jar for the complete list.


-> Other way could be providing a javaee-api.jar without the jaxb-api.
@David: You already mentioned this alternative in another post, just wanted
to ask if there are still plans to do that?

regards,
andreas






-- 
View this message in context: http://www.nabble.com/jaxb-2.0-vs-jaxb-2.1-tp24752914p24752914.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Mime
View raw message