cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r764599 - /cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/WSSecurityPolicyLoader.java
Date Mon, 13 Apr 2009 20:17:46 GMT
Author: dkulp
Date: Mon Apr 13 20:17:46 2009
New Revision: 764599

URL: http://svn.apache.org/viewvc?rev=764599&view=rev
Log:
[CXF-2162] If wss4j not found, continue and trap out if it's needed later

Modified:
    cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/WSSecurityPolicyLoader.java

Modified: cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/WSSecurityPolicyLoader.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/WSSecurityPolicyLoader.java?rev=764599&r1=764598&r2=764599&view=diff
==============================================================================
--- cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/WSSecurityPolicyLoader.java
(original)
+++ cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/WSSecurityPolicyLoader.java
Mon Apr 13 20:17:46 2009
@@ -73,7 +73,14 @@
     @PostConstruct
     public void register() {
         registerBuilders();
-        registerProviders();
+        try {
+            registerProviders();
+        } catch (Throwable t) {
+            //probably wss4j isn't found or something. We'll ignore this
+            //as the policy framework will then not find the providers
+            //and error out at that point.  If nothing uses ws-securitypolicy
+            //no warnings/errors will display
+        }
     }
     public void registerBuilders() {
         AssertionBuilderRegistry reg = bus.getExtension(AssertionBuilderRegistry.class);



Mime
View raw message