[jboss-user] [JBoss Web Services] - Ws-Security jboss-wsse-server.xml deployed in EAR cant find keystore

Ken Barnes do-not-reply at jboss.com
Wed Sep 12 08:46:36 EDT 2012

Ken Barnes [https://community.jboss.org/people/kenbarnes] created the discussion

"Ws-Security jboss-wsse-server.xml deployed in EAR cant find keystore"

To view the discussion, visit: https://community.jboss.org/message/759184#759184

I have an ear with 8 or so jboss native web service deployments that I want to enforce signature via ws-security. I have been able to get a single web service to work but what I want to to is to not have to include the jboss-wsse-server.xml and the truststore/keystore in every war deployment but include it only once in the ear.  When I move the keystore/truststore into the META-INF of the ear and attempt to reference via 

<?xml version="1.0" encoding="UTF-8"?>
     <jboss-ws-security xmlns=" http://www.jboss.com/ws-security/config http://www.jboss.com/ws-security/config" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation=" http://www.jboss.com/ws-security/config http://www.jboss.com/ws-security/config  http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">

       <!--<sign type="x509v3" alias="wsse"></sign>-->
           <signature ></signature>

I get a cannot find required security resource META-INF/jboss.keystore thrown as an exception from WSSecurityConfigFactory. 

Is there a way to only deploy the keystore/truststore and jboss-wsse-server.xml once in the ear and reference it from multiple wars deployed with ear as well. Or is there a way that I can read in the truststore/keystore from the file system to user?

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120912/cb6fcc28/attachment-0001.html 

More information about the jboss-user mailing list