users@jax-ws.java.net

Issue with usage of JAXWS 2.1/Tomcat 5.5/Netbeans 5.5

From: Prashant Jamkhedkar <Prashant_Jamkhedkar_at_symantec.com>
Date: Wed, 7 Mar 2007 09:43:47 -0800

Hi,
 
I am using Netbeans to create web services running on Tomcat 5.5.2.
If I run with bundled JAXWS 2.0 with Netbeans, the web service runs fine
(even with JDK 1.6).
If I use JAXWS 2.1 RI (add library to netbeans 5.5), and try to run, it
gives me
the following messages, I have tried copying jaxb-api.jar under jdk6's
jre/lib/endorsed
directory, but still see the issue. Do I have to put these in Tomcat's
bootstrap
classloader ? I am not sure the correct place to put the jar in ?
 
Appreciate your time spent on this.
 
SEVERE: WSSERVLET11: failed to parse runtime descriptor:
java.lang.LinkageError: JAXB 2.0 API is
being loaded from the bootstrap classloader, but this RI
(from
jar:file:/C:/projects/netbeans/Calculator21TCWebApplication/build/web/WE
B-INF/lib/jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.cla
ss)
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/)
java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap
classloader, but this RI (from
jar:file:/C:/projects/netbeans/Calculator21TCWebApplication/build/web/WE
B-INF/lib/jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.cla
ss) 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/)
        at
com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBuilder.java:1
35)
        at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextIm
pl.java:389)
        at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:
253)
        at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:84)
        at
com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:86)
        at
com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.jav
a:126)
        at
com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.jav
a:125)
        at java.security.AccessController.doPrivileged(Native Method)
        at
com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIM
odelImpl.java:124)
        at
com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelIm
pl.java:63)
        at
com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.jav
a:229)
        at
com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.jav
a:304)
        at
com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.jav
a:170)
        at
com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:420)
        at
com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(D
eploymentDescriptorParser.java:232)
        at
com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(Deploymen
tDescriptorParser.java:133)
        at
com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextIn
itialized(WSServletContextListener.java:97)
        at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.j
ava:3763)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4211
)
        at
org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:117
5)
        at
org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:368
)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  ------
 
Thanks,
Prashant