How to configure web service to use WS-Security from CXF in JBoss EAP 6

Solution Unverified - Updated -

Issue

  • I've added this to my example.war/META-INF/MANIFEST:
Dependencies: org.jboss.ws.cxf.jbossws-cxf-client export, org.apache.ws.security export, org.apache.cxf.main.cxf-rt-ws-security export
  • I get the following when deploying :
Caused by: java.lang.ClassNotFoundException: org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor from [Module "deployment.example.war:main" from Service Module Loader]
    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
    ... 26 more

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.0

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