Hi,

I have created a SOAP client with Apache CXF which uses Dispatch and
Service.Mode.MESSAGE to construct a JAX-WS dynamic call which is going to
be the base class used by BPMN to call any web service. By looking at the
activated OSGI bundles I was able to notice a dependancy conflict of
*xmlschema-core
*when using Axis2 and CXF.

Axis2 uses *xmlschema-core *version="1.4.7.wso2v3" and CXF uses
*xmlschema-core *version="2.0.3" . When the SOAP client is invoked CXF
would require the 2.0.3 version of *xmlschema-core  *but its picking up the
1.4.7 version.  To resolve this, I added the *xmlschema-core-2.0.3.jar *to
 repositary/components/dropins folder. When I do so and start the server  I
get the following exception:

*[2016-04-05 14:01:13,902] FATAL
{org.wso2.carbon.core.init.CarbonServerManager} -  WSO2 Carbon
initialization Failed*

*org.apache.axis2.AxisFault: Exception occured while loading the Axis
configuration from
/home/natasha/Documents/repos/temp/product-bps/modules/distribution/target/wso2bps-3.6.0-SNAPSHOT/repository/conf/axis2/axis2.xml*

* at
org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfiguration(CarbonAxisConfigurator.java:194)*

* at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)*

* at
org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65)*

* at
org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:398)*

* at
org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219)*

* at
org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:94)*


*Caused by: org.apache.axis2.deployment.DeploymentException:
org.wso2.carbon.core.multitenancy.MultitenantAddressingBasedDispatcher
cannot be found by axis2_1.6.1.wso2v17*

* at org.apache.axis2.deployment.util.Utils.loadHandler(Utils.java:149)*

* at
org.apache.axis2.deployment.AxisConfigBuilder.processPhaseList(AxisConfigBuilder.java:549)*

* at
org.apache.axis2.deployment.AxisConfigBuilder.processPhaseOrders(AxisConfigBuilder.java:580)*

How can I specify the version of *xmlschema-core *to be used by CXF when
creating the client?  Appreciate any help on this.


Best Regards,
*Natasha Wijesekare*

*Software Engineering Intern, WSO2  Inc:  http://wso2.com
<http://wso2.com/>*
*email  : [email protected] <[email protected]>*
*mobile: +94 771358651 <%2B94%20771358651>*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to