Unable to build bundle if scope is given as "provided".
Hi All,
We are using CXF API 3.2.0 for accessing SOAP webservice in AEM.
We are have included below given dependency for cxf-rt-frontend-jaxws with default scope.
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>3.2.0</version>
</dependency>
While invoking the webservice, we are getting below given exception,
java.lang.LinkageError: loader constraint violation: when resolving overridden method "org.apache.cxf.jaxb.attachment.JAXBAttachmentMarshaller.addMtomAttachment(Ljavax/activation/DataHandler;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;" the class loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) of the current class, org/apache/cxf/jaxb/attachment/JAXBAttachmentMarshaller, and its superclass loader (instance of <bootloader>), have different Class objects for the type javax/activation/DataHandler used in the signature
As some one suggested, we have changed the scope as "provided", but after that we are getting build error saying,
Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://cxf.apache.org/jaxws].
Have anyone faced similar issue?Could any one help us in fixing this?
Thanks,
Anusha