org.jboss.ws.WSException: Cannot find required security resource when using JBossWS Native in EAP 5
Issue
- I'm setting a URL in
key-store-password
andtrust-store-file
fields of thejboss-wsse-server.xml
file, and when I deploy my application to JBoss I have the following error:
Caused by: org.jboss.ws.WSException: Cannot find required security resource: file://C:/server.keystore
at org.jboss.ws.metadata.wsse.WSSecurityConfigFactory.getResource(WSSecurityConfigFactory.java:114)
at org.jboss.ws.metadata.wsse.WSSecurityConfigFactory.initKeystorePath(WSSecurityConfigFactory.java:89)
at org.jboss.ws.metadata.wsse.WSSecurityConfigFactory.createConfiguration(WSSecurityConfigFactory.java:72)
at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:132)
at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java:52)”
- Keystores and trust stores referenced in jboss-wsse-server.xml are relative to deployed web project. User needs to be able to reference keystores that are not part of the EAR file, e.g. using absolute file paths or URL. Is this possible.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 5.x
- Red Hat JBoss SOA Platform (SOA-P)
- 5.3.1
- JBossWS Native
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.