Hi Shakila, Actually I am not building the jar file, it is a third-party jar. I am just including the jar file into the lib folder. Also, don't know why it is using cxf as jaxws implementation, I think WSO2 uses it by default I think.
I am still trying to find a fix for that. I will let you know when I find it. Thanks, 2018-04-19 1:19 GMT-03:00 Shakila Sasikaran <[email protected]>: > 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 <[email protected]> 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.getNamespa >> ceContext()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 <[email protected]>: >> >>> 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 <[email protected]>: >>> >>>> 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 <[email protected]> >>>> 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 <[email protected]> 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.ja >>>>>> va: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.ja >>>>>> va: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 >>>>>> [email protected] >>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Shakila Sasikaran >>>>> Software Engineer >>>>> Mobile :+94 (0) 77 526 6848 >>>>> [email protected] >>>>> 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 > [email protected] > WSO2, Inc. > lean . enterprise . middleware > http://www.wso2.com/ > -- Francisco Ribeiro *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
