Repository: cxf Updated Branches: refs/heads/master 5d45660c4 -> a0f096bbb
Log a warning when WSS4J not found. Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/a0f096bb Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/a0f096bb Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/a0f096bb Branch: refs/heads/master Commit: a0f096bbbe4bdb76a77e2e1b86e5270239ac2ef3 Parents: 5d45660 Author: Colm O hEigeartaigh <[email protected]> Authored: Fri Jan 15 16:37:21 2016 +0000 Committer: Colm O hEigeartaigh <[email protected]> Committed: Fri Jan 15 16:37:21 2016 +0000 ---------------------------------------------------------------------- .../apache/cxf/ws/security/policy/WSSecurityPolicyLoader.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/a0f096bb/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/WSSecurityPolicyLoader.java ---------------------------------------------------------------------- diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/WSSecurityPolicyLoader.java b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/WSSecurityPolicyLoader.java index 5f2c1e9..f149056 100644 --- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/WSSecurityPolicyLoader.java +++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/WSSecurityPolicyLoader.java @@ -107,12 +107,9 @@ public final class WSSecurityPolicyLoader implements PolicyInterceptorProviderLo 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 String error = "Could not load or register WS-SecurityPolicy related classes. " + "Please check that (the correct version of) Apache WSS4J is on the classpath"; + LOG.log(Level.WARNING, error + ": " + t.getMessage()); LOG.log(Level.FINE, error, t); } }
