cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd Orr" <torr0...@gmail.com>
Subject Re: JSR311 Maven Jars Issue
Date Tue, 08 Jan 2008 02:07:01 GMT
I get the same error when using the server in the samples. I've never
encountered this before. I see that the 2.1 Jaxb jars are within my
lib dir and on the classpath for the server. I'm not sure why it is
loading the 2.0 API jar. I'd imagine I'm not the only one experiencing
this.

On Jan 7, 2008 11:36 AM, Todd Orr <torr0101@gmail.com> 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:
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented
> it from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: Servlet execution threw an exception
>         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>
> root cause
>
> java.lang.LinkageError: JAXB 2.0 API is being loaded from the
> bootstrap classloader, but this RI (from
> jar:file:/opt/jboss-4.2.1.GA/server/default/tmp/deploy/tmp7753cxftest-0.0.1-exp.war/WEB-INF/lib/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/)
>         com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBuilder.java:172)
>         com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
>         com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
>         com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
>         com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117)
>         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         java.lang.reflect.Method.invoke(Method.java:597)
>         javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
>         javax.xml.bind.ContextFinder.find(ContextFinder.java:368)
>         javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
>         javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
>         org.apache.cxf.jaxrs.provider.JAXBElementProvider.getJAXBContext(JAXBElementProvider.java:100)
>         org.apache.cxf.jaxrs.provider.JAXBElementProvider.writeTo(JAXBElementProvider.java:83)
>         org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.handleMessage(JAXRSOutInterceptor.java:94)
>         org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
>         org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:74)
>         org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
>         org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
>         org.apache.cxf.transport.servlet.ServletDestination.doMessage(ServletDestination.java:79)
>         org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:264)
>         org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:123)
>         org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:170)
>         org.apache.cxf.transport.servlet.AbstractCXFServlet.doGet(AbstractCXFServlet.java:152)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>
>
> My WAG on this is that there is something fishy about the jars in the
> maven repo. I'm using 2.1-incubator-SNAPSHOT. Has anyone run into
> this?
>

Mime
View raw message