[prev in list] [next in list] [prev in thread] [next in thread] 

List:       esb-java-dev
Subject:    Re: [Dev] WSO2 EI - org.apache.cxf.jaxws.spi.ProviderImpl not found
From:       Júnior <fjunior87 () gmail ! com>
Date:       2018-04-19 12:11:40
Message-ID: CAOk1a-RO8qVswMjw8pBYThuDsgzxnDz-Bmc5uNCB-Ps+zt6euQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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 <shakila@wso2.com>:

> 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 <fjunior87@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.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 <fjunior87@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 <fjunior87@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 <shakila@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 <fjunior87@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.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
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Shakila Sasikaran
>>>>> Software Engineer
>>>>> Mobile :+94 (0) 77 526 6848
>>>>> shakila@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
> shakila@wso2.com
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
>



-- 
Francisco Ribeiro
*SCEA|SCJP|SCWCD|IBM Certified SOA Associate*

[Attachment #5 (text/html)]

<div dir="ltr">Hi Shakila,<div><br></div><div>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&#39;t know why it is using cxf as jaxws implementation, I think WSO2 uses \
it by default I think.</div><div><br></div><div>I am still trying to find a fix for \
that.</div><div><br></div><div>I will let you know when I find \
it.</div><div><br></div><div>Thanks,</div></div><div class="gmail_extra"><br><div \
class="gmail_quote">2018-04-19 1:19 GMT-03:00 Shakila Sasikaran <span \
dir="ltr">&lt;<a href="mailto:shakila@wso2.com" \
target="_blank">shakila@wso2.com</a>&gt;</span>:<br><blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div \
dir="ltr">Hi,<div><br></div><div>Can you try by excluding the other  <span \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:nor \
mal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spac \
ing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;wor \
d-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">cxf-bundle \
while adding the dependency?</span></div><div><span \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:nor \
mal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spac \
ing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;wor \
d-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span \
style="text-align:start;text-indent:0px;background-color:rgb(255,255,255);text-decorat \
ion-style:initial;text-decoration-color:initial;float:none;display:inline"><div>&lt;dependency&gt;</div><div> \
&lt;groupId&gt;xxxxx&lt;/groupId&gt;</div><div>         \
&lt;artifactId&gt;xxxxx&lt;/artifactId&gt;</div><div>         \
&lt;version&gt;xxxx&lt;/version&gt;</div><div>         \
&lt;scope&gt;compile&lt;/scope&gt;</div><div>         &lt;exclusions&gt;</div><div>   \
&lt;exclusion&gt;</div><div>               \
&lt;groupId&gt;yyyyy&lt;/groupId&gt;</div><div>               \
&lt;artifactId&gt;yyyyy&lt;/artifactId&gt;</div><div>            \
&lt;/exclusion&gt;</div><div>         &lt;/exclusions&gt;  \
</div><div>&lt;/dependency&gt;</div></span></div><div><span \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:nor \
mal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spac \
ing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;wor \
d-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:nor \
mal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spac \
ing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;wor \
d-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Thanks</span></div></div><div \
class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div \
class="gmail_quote">On Thu, Apr 19, 2018 at 1:24 AM, Júnior <span dir="ltr">&lt;<a \
href="mailto:fjunior87@gmail.com" target="_blank">fjunior87@gmail.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div dir="ltr">I found tha there is a bundle provided by \
wso2:  

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-sty \
le:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;lette \
r-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:norm \
al;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;te \
xt-decoration-color:initial;float:none;display:inline">cxf-bundle-2.6.1.wso2v2.jar</span>


<div><br></div><div>Using it I am getting another \
problem:</div><div><br></div><div>java.lang.LinkageError: loader constraint \
violation: when resolving method \
&quot;org.apache.ws.commons.schema.<wbr>XmlSchemaCollection.getNamespa<wbr>ceContext()Lorg/apache/ws/<wbr>commons/schema/utils/<wbr>NamespacePrefixList;&quot; \
the class loader (instance of \
org/eclipse/osgi/internal/base<wbr>adaptor/DefaultClassLoader) of the current class, \
org/apache/cxf/common/xmlschem<wbr>a/SchemaCollection, and the class loader (instance \
of org/eclipse/osgi/internal/base<wbr>adaptor/DefaultClassLoader) for the \
method&#39;s defining class, org/apache/ws/commons/schema/X<wbr>mlSchemaCollection, \
have different Class objects for the type \
org/apache/ws/commons/schema/u<wbr>tils/NamespacePrefixList used in the \
signature<br></div><div><br></div><div><br></div><div>As I could see, there is a \
bundle exporting this package in a different version. Have you seen this error \
before?</div><div><br></div><div>Thanks,</div><div><br></div><div><br></div></div><div \
class="m_3456557586740719426HOEnZb"><div class="m_3456557586740719426h5"><div \
class="gmail_extra"><br><div class="gmail_quote">2018-04-17 19:25 GMT-03:00 Júnior \
<span dir="ltr">&lt;<a href="mailto:fjunior87@gmail.com" \
target="_blank">fjunior87@gmail.com</a>&gt;</span>:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">I tried adding the \
cxf-bundle:cxf-bundle-2.2.5.ja<wbr>r<div><br></div><div>And I am receiving this \
error:</div><div><br></div><div><div>gogo: BundleException: The bundle \
&quot;org.apache.cxf.bundle_2.2.5 [172]&quot; could not be resolved. Reason: Missing \
Constraint: Import-Package: javax.activation; \
version=&quot;[1.1.0,2.0.0)&quot;</div><div>osgi&gt;  \
</div></div><div><br></div><div>Do you know hwo to add this \
dependency?</div><div><br></div><div>Thanks,</div></div><div \
class="m_3456557586740719426m_-6841310020414265002HOEnZb"><div \
class="m_3456557586740719426m_-6841310020414265002h5"><div \
class="gmail_extra"><br><div class="gmail_quote">2018-04-17 6:16 GMT-03:00 Júnior \
<span dir="ltr">&lt;<a href="mailto:fjunior87@gmail.com" \
target="_blank">fjunior87@gmail.com</a>&gt;</span>:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="auto">Hi Shakila,<div dir="auto"><br></div><div \
dir="auto">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.</div><div dir="auto"><br></div><div \
dir="auto">I am trying to add the required jars to the dropins folder, this is still \
in progress.</div><div dir="auto"><br></div><div dir="auto">Getting the jars from \
wso2/lib/runtimes/cxf</div><div dir="auto"><br></div><div \
dir="auto">Thanks</div></div><div \
class="m_3456557586740719426m_-6841310020414265002m_-7497774224683447239HOEnZb"><div \
class="m_3456557586740719426m_-6841310020414265002m_-7497774224683447239h5"><br><div \
class="gmail_quote"><div dir="ltr">Em ter, 17 de abr de 2018 00:32, Shakila Sasikaran \
&lt;<a href="mailto:shakila@wso2.com" target="_blank">shakila@wso2.com</a>&gt; \
escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div \
dir="ltr">Hi,<div><br></div><div>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 (<span \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:no \
rmal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spa \
cing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;wo \
rd-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-de \
coration-color:initial;float:none;display:inline">org.apache.cxf.jaxws.spi</span>) \
with correct version and try?  </div><div><br></div><div>Thanks</div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 17, 2018 at 5:12 AM, \
Júnior <span dir="ltr">&lt;<a href="mailto:fjunior87@gmail.com" rel="noreferrer" \
target="_blank">fjunior87@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>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:</div><div><br></div><div>javax.xml.ws.spi.FactoryFinder<wbr>$ConfigurationError: \
Provider org.apache.cxf.jaxws.spi.Provi<wbr>derImpl not \
found</div><div><br></div><div><div>Caused by: \
javax.xml.ws.spi.FactoryFinder<wbr>$ConfigurationError: Provider \
org.apache.cxf.jaxws.spi.Provi<wbr>derImpl not found</div><div><span \
style="white-space:pre-wrap">	</span>at \
javax.xml.ws.spi.FactoryFinder<wbr>$2.run(FactoryFinder.java:130)</div><div><span \
style="white-space:pre-wrap">	</span>at \
javax.xml.ws.spi.FactoryFinder<wbr>.doPrivileged(FactoryFinder.ja<wbr>va:220)</div><div><span \
style="white-space:pre-wrap">	</span>at \
javax.xml.ws.spi.FactoryFinder<wbr>.newInstance(FactoryFinder.jav<wbr>a:124)</div><div><span \
style="white-space:pre-wrap">	</span>at \
javax.xml.ws.spi.FactoryFinder<wbr>.access$200(FactoryFinder.java<wbr>:44)</div><div><span \
style="white-space:pre-wrap">	</span>at \
javax.xml.ws.spi.FactoryFinder<wbr>$3.run(FactoryFinder.java:211)</div><div><span \
style="white-space:pre-wrap">	</span>at \
javax.xml.ws.spi.FactoryFinder<wbr>.doPrivileged(FactoryFinder.ja<wbr>va:220)</div><div><span \
style="white-space:pre-wrap">	</span>at \
javax.xml.ws.spi.FactoryFinder<wbr>.find(FactoryFinder.java:160)</div><div><span \
style="white-space:pre-wrap">	</span>at \
javax.xml.ws.spi.Provider.prov<wbr>ider(Provider.java:43)</div><div><span \
style="white-space:pre-wrap">	</span>at \
javax.xml.ws.Service.&lt;init&gt;(Se<wbr>rvice.java:35)</div><div><br></div><div><br></div><div>Do \
you know how to overcome this error?</div><div><br></div><div>Thanks,</div><span \
class="m_3456557586740719426m_-6841310020414265002m_-7497774224683447239m_5466604300399904862m_6552657268849972596HOEnZb"><font \
color="#888888"><div><br></div>-- <br><div \
class="m_3456557586740719426m_-6841310020414265002m_-7497774224683447239m_5466604300399904862m_6552657268849972596m_1438822347614133825gmail_signature">Francisco \
Ribeiro<br><b><span style="color:rgb(153,153,153)">SCEA|SCJP|SCWCD|IBM Certified SOA \
Associate</span></b></div> </font></span></div></div>
<br>______________________________<wbr>_________________<br>
Dev mailing list<br>
<a href="mailto:Dev@wso2.org" rel="noreferrer" target="_blank">Dev@wso2.org</a><br>
<a href="http://wso2.org/cgi-bin/mailman/listinfo/dev" rel="noreferrer noreferrer" \
target="_blank">http://wso2.org/cgi-bin/mailma<wbr>n/listinfo/dev</a><br> \
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div \
class="m_3456557586740719426m_-6841310020414265002m_-7497774224683447239m_5466604300399904862m_6552657268849972596gmail_signature" \
data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div \
dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div \
dir="ltr"><span><font color="#888888">Shakila Sasikaran</font><br><font \
color="#888888">Software Engineer</font><br><font color="#888888">Mobile :+94 (0) 77 \
526 6848</font><div style="color:rgb(136,136,136)"><a href="mailto:shakila@wso2.com" \
rel="noreferrer" target="_blank">shakila@wso2.com</a></div><div \
style="color:rgb(136,136,136)"><span \
style="color:rgb(102,102,102);font-size:small">WSO2, Inc.  </span><br \
style="color:rgb(102,102,102);font-size:small"><span \
style="color:rgb(102,102,102);font-size:small">lean . enterprise . \
middleware</span><br></div><div><font color="#666666" size="2"><a \
href="http://www.wso2.com/" rel="noreferrer" \
target="_blank">http://www.wso2.com/</a></font><br></div></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
 </div>
</blockquote></div></div></div></blockquote></div><br><br \
clear="all"><div><br></div>-- <br><div \
class="m_3456557586740719426m_-6841310020414265002m_-7497774224683447239gmail_signature" \
data-smartmail="gmail_signature">Francisco Ribeiro<br><b><span \
style="color:rgb(153,153,153)">SCEA|SCJP|SCWCD|IBM Certified SOA \
Associate</span></b></div> </div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div \
class="m_3456557586740719426m_-6841310020414265002gmail_signature" \
data-smartmail="gmail_signature">Francisco Ribeiro<br><b><span \
style="color:rgb(153,153,153)">SCEA|SCJP|SCWCD|IBM Certified SOA \
Associate</span></b></div> </div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div \
class="m_3456557586740719426gmail_signature" data-smartmail="gmail_signature"><div \
dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div \
dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span><font color="#888888">Shakila \
Sasikaran</font><br><font color="#888888">Software Engineer</font><br><font \
color="#888888">Mobile :+94 (0) 77 526 6848</font><div \
style="color:rgb(136,136,136)"><a href="mailto:shakila@wso2.com" \
target="_blank">shakila@wso2.com</a></div><div style="color:rgb(136,136,136)"><span \
style="color:rgb(102,102,102);font-size:small">WSO2, Inc.  </span><br \
style="color:rgb(102,102,102);font-size:small"><span \
style="color:rgb(102,102,102);font-size:small">lean . enterprise . \
middleware</span><br></div><div><font color="#666666" size="2"><a \
href="http://www.wso2.com/" \
target="_blank">http://www.wso2.com/</a></font><br></div></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
 </div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div \
class="gmail_signature" data-smartmail="gmail_signature">Francisco \
Ribeiro<br><b><span style="color:rgb(153,153,153)">SCEA|SCJP|SCWCD|IBM Certified SOA \
Associate</span></b></div> </div>



_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic