Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Apache CXF Client NoClassDefFounfError

depath
Level 2
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
smacdonald2008
Correct answer by
Level 10
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
Sham_HC
Level 10
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...

smacdonald2008
Correct answer by
Level 10
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

depath
Level 2
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.

depath
Level 2
Level 2

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

Any suggestions around that?