Hi,

Can you try by excluding the other cxf-bundle while adding the dependency?

<dependency>
      <groupId>xxxxx</groupId>
      <artifactId>xxxxx</artifactId>
      <version>xxxx</version>
      <scope>compile</scope>
      <exclusions>
        <exclusion>
          <groupId>yyyyy</groupId>
          <artifactId>yyyyy</artifactId>
        </exclusion>
      </exclusions>
</dependency>

Thanks

On Thu, Apr 19, 2018 at 1:24 AM, Júnior <fjunio...@gmail.com> wrote:

> I found tha there is a bundle provided by wso2:
> cxf-bundle-2.6.1.wso2v2.jar
>
> Using it I am getting another problem:
>
> java.lang.LinkageError: loader constraint violation: when resolving method
> "org.apache.ws.commons.schema.XmlSchemaCollection.
> getNamespaceContext()Lorg/apache/ws/commons/schema/utils/NamespacePrefixList;"
> the class loader (instance of 
> org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader)
> of the current class, org/apache/cxf/common/xmlschema/SchemaCollection,
> and the class loader (instance of 
> org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader)
> for the method's defining class, 
> org/apache/ws/commons/schema/XmlSchemaCollection,
> have different Class objects for the type 
> org/apache/ws/commons/schema/utils/NamespacePrefixList
> used in the signature
>
>
> As I could see, there is a bundle exporting this package in a different
> version. Have you seen this error before?
>
> Thanks,
>
>
>
> 2018-04-17 19:25 GMT-03:00 Júnior <fjunio...@gmail.com>:
>
>> I tried adding the cxf-bundle:cxf-bundle-2.2.5.jar
>>
>> And I am receiving this error:
>>
>> gogo: BundleException: The bundle "org.apache.cxf.bundle_2.2.5 [172]"
>> could not be resolved. Reason: Missing Constraint: Import-Package:
>> javax.activation; version="[1.1.0,2.0.0)"
>> osgi>
>>
>> Do you know hwo to add this dependency?
>>
>> Thanks,
>>
>> 2018-04-17 6:16 GMT-03:00 Júnior <fjunio...@gmail.com>:
>>
>>> Hi Shakila,
>>>
>>> I am not building the jar, it is a third party jar. As I could see, It
>>> has no reference tô cxf, but only jax-ws.
>>>
>>> I am trying to add the required jars to the dropins folder, this is
>>> still in progress.
>>>
>>> Getting the jars from wso2/lib/runtimes/cxf
>>>
>>> Thanks
>>>
>>> Em ter, 17 de abr de 2018 00:32, Shakila Sasikaran <shak...@wso2.com>
>>> escreveu:
>>>
>>>> Hi,
>>>>
>>>> I hope you are building this jar from a maven project. Could you please
>>>> share the pom file of this application? Could you please import the
>>>> relevant package (org.apache.cxf.jaxws.spi) with correct version and
>>>> try?
>>>>
>>>> Thanks
>>>>
>>>> On Tue, Apr 17, 2018 at 5:12 AM, Júnior <fjunio...@gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I am adding a jar file that uses a JAX-WS client to invoke a web
>>>>> service. When I am trying to execute the code, I am getting this error:
>>>>>
>>>>> javax.xml.ws.spi.FactoryFinder$ConfigurationError: Provider
>>>>> org.apache.cxf.jaxws.spi.ProviderImpl not found
>>>>>
>>>>> Caused by: javax.xml.ws.spi.FactoryFinder$ConfigurationError:
>>>>> Provider org.apache.cxf.jaxws.spi.ProviderImpl not found
>>>>> at javax.xml.ws.spi.FactoryFinder$2.run(FactoryFinder.java:130)
>>>>> at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:220)
>>>>> at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:124)
>>>>> at javax.xml.ws.spi.FactoryFinder.access$200(FactoryFinder.java:44)
>>>>> at javax.xml.ws.spi.FactoryFinder$3.run(FactoryFinder.java:211)
>>>>> at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:220)
>>>>> at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:160)
>>>>> at javax.xml.ws.spi.Provider.provider(Provider.java:43)
>>>>> at javax.xml.ws.Service.<init>(Service.java:35)
>>>>>
>>>>>
>>>>> Do you know how to overcome this error?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> --
>>>>> Francisco Ribeiro
>>>>> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>>>>>
>>>>> _______________________________________________
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Shakila Sasikaran
>>>> Software Engineer
>>>> Mobile :+94 (0) 77 526 6848
>>>> shak...@wso2.com
>>>> WSO2, Inc.
>>>> lean . enterprise . middleware
>>>> http://www.wso2.com/
>>>>
>>>
>>
>>
>> --
>> Francisco Ribeiro
>> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>>
>
>
>
> --
> Francisco Ribeiro
> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>



-- 
Shakila Sasikaran
Software Engineer
Mobile :+94 (0) 77 526 6848
shak...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to