[jboss-user] [JBossWS] - Re: Call a web service

rodosa do-not-reply at jboss.com
Sat Mar 15 16:54:26 EDT 2008


If I run the client as Java application the following exception it's thrown:


  | java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/C:/jboss-4.2.2.GA/client/jaxb-impl.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/)
  | 	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)
  | 	at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | 	at java.lang.reflect.Method.invoke(Unknown Source)
  | 	at javax.xml.bind.ContextFinder.newInstance(Unknown Source)
  | 	at javax.xml.bind.ContextFinder.find(Unknown Source)
  | 	at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
  | 	at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
  | 	at com.sun.xml.ws.spi.ProviderImpl.getEPRJaxbContext(ProviderImpl.java:186)
  | 	at com.sun.xml.ws.spi.ProviderImpl.<clinit>(ProviderImpl.java:65)
  | 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  | 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
  | 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
  | 	at java.lang.reflect.Constructor.newInstance(Unknown Source)
  | 	at java.lang.Class.newInstance0(Unknown Source)
  | 	at java.lang.Class.newInstance(Unknown Source)
  | 	at javax.xml.ws.spi.FactoryFinder.newInstance(Unknown Source)
  | 	at javax.xml.ws.spi.FactoryFinder.find(Unknown Source)
  | 	at javax.xml.ws.spi.Provider.provider(Unknown Source)
  | 	at javax.xml.ws.Service.<init>(Unknown Source)
  | 	at client.JbpmServiceService.<init>(JbpmServiceService.java:42)
  | 	at client.JbpmWSClient.<clinit>(JbpmWSClient.java:85)
  | Exception in thread "main" 
  | 

I've put jaxb-api.jar in the lib/endorsed folder but it doesn't work. 

Any ideas?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136910#4136910

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136910



More information about the jboss-user mailing list