A perhaps better solution is hinted at in the Exception -- "Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/)"
I copied the jaxb-api-2.1.jar file over to my $JBOSS_HOME/lib/endorsed/ directory and everything worked as advertised (for JBoss). Jetty probably also has an "endorsed directory mechanism" > [...] >> On Jan 7, 2008 11:36 AM, Todd Orr <[EMAIL PROTECTED]> wrote: >> > I'm trying to run a test based on the documentation at >> > http://cwiki.apache.org/CXF20DOC/jax-rs-jsr-311.html. When I attempt >> > to resolve the URL >> > http://localhost:8080/cxftest/customerservice/customers/1 I get the >> > following error from Jetty: >> > >> > HTTP ERROR: 500 >> > >> > JAXB 2.0 API is being loaded from the bootstrap classloader, but this >> > RI (from >> jar:file:/home/torr/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.4/jaxb-impl-2.1.4.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) >> > needs 2.1 API. Use the endorsed directory mechanism to place >> > jaxb-api.jar in the bootstrap classloader. (See >> > http://java.sun.com/j2se/1.5.0/docs/guide/standards/) >> > >> > RequestURI=/cxftest/customerservice/customers/1 >> > >> > I get a similar error in JBoss: >> > > [...] > > -- View this message in context: http://www.nabble.com/JSR311-Maven-Jars-Issue-tp14670128p15591370.html Sent from the cxf-user mailing list archive at Nabble.com.
