ClassNotFoundException when trying to use CXF's org.apache.cxf.jaxws.JaxWsProxyFactoryBean and org.apache.cxf.frontend.ClientProxy

Solution Verified - Updated -

Issue

  • I'm trying to initialize org.apache.cxf.jaxws.JaxWsProxyFactoryBean in my component's @PostConstruct method, but I'm getting the following error:
Caused by: java.lang.ClassNotFoundException: org.apache.cxf.jaxws.JaxWsProxyFactoryBean 
  • We are getting the following below exception:
 Caused by: java.lang.NoClassDefFoundError: org/apache/cxf/frontend/ClientProxy

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content