How to configure web service to use WS-Security from CXF in JBoss EAP 6
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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
