Index: modules/testsuite/cxf-tests/scripts/cxf-samples-jars-jaxws.xml =================================================================== --- modules/testsuite/cxf-tests/scripts/cxf-samples-jars-jaxws.xml (revision 17777) +++ modules/testsuite/cxf-tests/scripts/cxf-samples-jars-jaxws.xml (working copy) @@ -59,7 +59,7 @@ @@ -72,7 +72,7 @@ @@ -96,7 +96,7 @@ - + - + @@ -217,7 +217,7 @@ - + @@ -246,7 +246,7 @@ - + + + + + @@ -343,7 +347,11 @@ + + + + Index: modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/policy/basic/AnnotatedBouncyCastleJCEProviderRegistrator.java =================================================================== --- modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/policy/basic/AnnotatedBouncyCastleJCEProviderRegistrator.java (revision 0) +++ modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/policy/basic/AnnotatedBouncyCastleJCEProviderRegistrator.java (working copy) @@ -0,0 +1,21 @@ +package org.jboss.test.ws.jaxws.samples.wsse.policy.basic; + +import java.security.Security; + +import javax.servlet.ServletConfig; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; + +import org.bouncycastle.jce.provider.BouncyCastleProvider; + +@WebServlet(loadOnStartup = 1) +public class AnnotatedBouncyCastleJCEProviderRegistrator extends HttpServlet { + + private static final long serialVersionUID = -4943740805317142078L; + + @Override + public void init(ServletConfig config) throws ServletException { + Security.addProvider(new BouncyCastleProvider()); + } +} Index: modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/policy/basic/BouncyCastleJCEProviderRegistrator.java =================================================================== --- modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/policy/basic/BouncyCastleJCEProviderRegistrator.java (revision 0) +++ modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsse/policy/basic/BouncyCastleJCEProviderRegistrator.java (working copy) @@ -0,0 +1,19 @@ +package org.jboss.test.ws.jaxws.samples.wsse.policy.basic; + +import java.security.Security; + +import javax.servlet.ServletConfig; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServlet; + +import org.bouncycastle.jce.provider.BouncyCastleProvider; + +public class BouncyCastleJCEProviderRegistrator extends HttpServlet { + + private static final long serialVersionUID = -4943740805317142078L; + + @Override + public void init(ServletConfig config) throws ServletException { + Security.addProvider(new BouncyCastleProvider()); + } +} Index: modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/policy/basic/gcm/WEB-INF/web.xml =================================================================== --- modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/policy/basic/gcm/WEB-INF/web.xml (revision 17777) +++ modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/policy/basic/gcm/WEB-INF/web.xml (working copy) @@ -5,8 +5,14 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> + JCEProviderRegistrator + org.jboss.test.ws.jaxws.samples.wsse.policy.basic.BouncyCastleJCEProviderRegistrator + 1 + + TestService org.jboss.test.ws.jaxws.samples.wsse.policy.basic.ServiceImpl + 1 TestService Index: modules/testsuite/cxf-tests/pom.xml =================================================================== --- modules/testsuite/cxf-tests/pom.xml (revision 17765) +++ modules/testsuite/cxf-tests/pom.xml (working copy) @@ -1,11 +1,11 @@ 4.0.0 - + JBoss Web Services - Stack CXF Specific Tests jbossws-cxf-specific-tests jar - + org.jboss.ws.cxf @@ -13,7 +13,7 @@ 4.2.0-SNAPSHOT ../pom.xml - + @@ -22,7 +22,7 @@ version specified in the jbossws-cxf main pom.xml to test there're no classloading clashes --> 2.6.6 - + org.jboss.ws.cxf @@ -41,6 +41,12 @@ test + org.bouncycastle + bcprov-jdk16 + 1.46 + + + junit junit provided @@ -49,10 +55,10 @@ - - noprepare @@ -74,6 +80,11 @@ + + + + + @@ -214,7 +225,7 @@ - + - +