Hi
Is it possible your build is pulling in two different versions of the JAXB library ?
Thanks
From: Yadav Samar [mailto:Samar.Yadav_at_us.mcd.com]
Sent: 27 February 2014 17:29
To: users_at_jersey.java.net
Subject: [Jersey] Jersy related Issue
Hi,
I am trying to deploy the REST full web service on JBOSS 5.1 and getting below error. Can you help?
java.lang.Thread.run(Thread.java:662)
root cause
java.lang.LinkageError: loader constraint violation: when resolving method "javax.xml.bind.JAXBElement.<init>(Ljavax/xml/namespace/QName;Ljava/lang/Class;Ljava/lang/Object;)V" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, com/sun/jersey/server/wadl/WadlGeneratorImpl, and the class loader (instance of <bootloader>) for resolved class, javax/xml/bind/JAXBElement, have different Class objects for the type javax/xml/namespace/QName used in the signature
com.sun.jersey.server.wadl.WadlGeneratorImpl.createResponse(WadlGeneratorImpl.java:176)
com.sun.jersey.server.wadl.WadlBuilder.generateResponse(WadlBuilder.java:351)
com.sun.jersey.server.wadl.WadlBuilder.generateMethod(WadlBuilder.java:161)
com.sun.jersey.server.wadl.WadlBuilder.generateResource(WadlBuilder.java:291)
com.sun.jersey.server.wadl.WadlBuilder.generate(WadlBuilder.java:102)
com.sun.jersey.server.impl.wadl.WadlApplicationContextImpl.getApplication(WadlApplicationContextImpl.java:73)
com.sun.jersey.server.impl.wadl.WadlResource.<init>(WadlResource.java:73)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
java.lang.reflect.Constructor.newInstance(Constructor.java:513)
com.sun.jersey.server.spi.component.ResourceComponentConstructor._construct(ResourceComponentConstructor.java:173)
com.sun.jersey.server.spi.component.ResourceComponentConstructor.construct(ResourceComponentConstructor.java:155)
com.sun.jersey.server.impl.resource.SingletonFactory$Singleton.init(SingletonFactory.java:129)
com.sun.jersey.server.impl.model.ResourceClass.init(ResourceClass.java:200)
com.sun.jersey.server.impl.application.WebApplicationImpl.getResourceClass(WebApplicationImpl.java:315)
com.sun.jersey.server.impl.application.WebApplicationImpl.initWadlResource(WebApplicationImpl.java:844)
com.sun.jersey.server.impl.application.WebApplicationImpl.processRootResources(WebApplicationImpl.java:815)
com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:590)
com.sun.jersey.spi.spring.container.servlet.SpringServlet.initiate(SpringServlet.java:99)
com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(ServletContainer.java:242)
com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:449)
com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:169)
com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:281)
com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:442)
javax.servlet.GenericServlet.init(GenericServlet.java:212)
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:419)
org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:403)
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2036)
java.lang.Thread.run(Thread.java:662)
note The full stack trace of the root cause is available in the JBoss Web/2.1.11.GA logs.
Please feel free to contact me if you have any questions or need any additional information.
Thanks
_____________________________________________________________________________________________
Samar Bahadur Yadav | IT Enterprise | McDonald's Corporation
2111 McDonald's Drive | Oak Brook, Illinois 60523 | Office: 630.623.6168 | Mobile: 630.418.9539 | mailto:samar.yadav_at_us.mcd.com
________________________________
The information contained in this e-mail and any accompanying documents is confidential, may be privileged, and is intended solely for the person and/or entity to whom it is addressed (i.e. those identified in the "To" and "cc" box). They are the property of McDonald's Corporation. Unauthorized review, use, disclosure, or copying of this communication, or any part thereof, is strictly prohibited and may be unlawful. If you have received this e-mail in error, please return the e-mail and attachments to the sender and delete the e-mail and attachments and any copy from your system. McDonald's thanks you for your cooperation.
Verizon Ireland Limited - registered in Ireland - registered number 224334 - registered office at Erne Street, Dublin 2, Ireland - VAT number 8224334A