On Tue, Apr 5, 2016 at 3:09 PM, Natasha Wijesekara <[email protected]> wrote:

> 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.
>

Which CXF version (osgi bundle) you are using? What are its imports for the
above xmlschema related packages? Why it is getting wired to 1.4.7 version?
Is this client an OSGi bundle and how does it use CXF packages?

You could restrict which package to use using the version at OSGi imports.
For it to work, you need to answer the above questions.

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:
>

You cant use the new xmlschema version as there are some significant code
changes needed with previous axis2 version (1.6.x) which were fixed with
the upgrade - https://issues.apache.org/jira/browse/AXIS2-5239


> *[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>*
>



-- 
*Kishanthan Thangarajah*
Associate Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com <http://kishanthan.wordpress.com>*
Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to