Apache CXF Client NoClassDefFounfError | Community
Skip to main content
New Participant
October 16, 2015
Solved

Apache CXF Client NoClassDefFounfError

  • October 16, 2015
  • 4 replies
  • 3307 views

java.lang.NoClassDefFoundError: org/apache/cxf/frontend/ClientProxy

what bundle should I Install in to the Felix console  to get this issue fixed?

Can some one please let me know what is the appropriate bundle for running  Apache CXF. I am trying to add timeouts to the SOAP call using the Client interface?

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

We have a community article that successfully invokes a 3rd party WSDL from an OSGi bundle that is built using Apache CXF.

[img]WSClient.png[/img]

This data was returned by the web service. 

See:

http://helpx.adobe.com/experience-manager/using/creating-cxf-bundles-consume-web.html

4 replies

Sham_HC
New Participant
October 16, 2015

Have you set classloader to CXF bundle class loader (Thread.currentThread().setContextClassLoader) to avoid OSGI classloader problems?   

http://www.pro-vision.de/content/medialib/pro-vision/production/adaptto/2011/110915_adaptto_slingcxf-pdf/_jcr_content/renditions/rendition.file/110915_adaptto_sling_cxf.pdf

smacdonald2008
smacdonald2008Accepted solution
New Participant
October 16, 2015

We have a community article that successfully invokes a 3rd party WSDL from an OSGi bundle that is built using Apache CXF.

[img]WSClient.png[/img]

This data was returned by the web service. 

See:

http://helpx.adobe.com/experience-manager/using/creating-cxf-bundles-consume-web.html

depathAuthor
New Participant
October 16, 2015

I tried the article for consuming the webservice and it works for me.

I did not run in to any issues when i did that. Right now i am in a different scenario.

I am using a maven project and i add those dependencies to the POM. I see CXF in the import package under the Manifest Header but i still get the NoClassDefFounfError.

depathAuthor
New Participant
October 16, 2015

Probably Apache CXF have to to be installed on the Felix console to get the issue fixed?

Any suggestions around that?