java - Jboss LinkageError: loader constraint violation: when resolving overridden method -
i have 2 war files: , b web services using cxf
a uses web service in b.
b uses web service in a.
everything working fine in tomcat. when deployed in jboss, facing linkage error.
caused by: java.lang.linkageerror: loader constraint violation: when resolving overridden method "org.apache.cxf.jaxws.serviceimpl.createdispatch(ljavax/xml/ws/endpointreference;ljavax/xml/bind/jaxbcontext;ljavax/xml/ws/service$mode;[ljavax/xml/ws/webservicefeature;)ljavax/xml/ws/dispatch;" class loader (instance of org/jboss/classloader/spi/base/baseclassloader) of current class, org/apache/cxf/jaxws/serviceimpl, , superclass loader (instance of ), have different class objects type javax/xml/bind/jaxbcontext used in signature
i have removed jaxb-api-2.2.3.jar , jaxb-impl-2.2.4-1.jar war , tested. still facing same issue.
what reason? in advance.
depending on version of jboss using, there version of jaxb jars included it. check jboss_home/modules/system/layers/base folder.
if want jboss ignore jars has , use applications' instead, need explicitly tell so. can done using custom modules:
- create folder inside jboss_home/modules/system/layers/base/
<folder_name>
/main/ , put jars in it. - create module.xml file in folder , list down jar names
<resource-root>
. - create jboss-deployment-structure.xml file in web project's web-inf directory , list custom module here.
for more details, check link: https://docs.jboss.org/author/display/as7/class+loading+in+as7
Comments
Post a Comment