Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Apache CXF Client NoClassDefFounfError

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

4 Replies

Avatar

Level 10

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

Avatar

Correct answer by
Level 10

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

Avatar

Level 2

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.

Avatar

Level 2

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

Any suggestions around that?