Author: ashakirin
Date: Tue Nov 26 16:14:08 2013
New Revision: 1545706

URL: http://svn.apache.org/r1545706
Log:
Log original exception in case if inbound policy verification is failed. 
Simplifies problem analysis.

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

Modified: 
cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyVerificationInInterceptor.java
URL: 
http://svn.apache.org/viewvc/cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyVerificationInInterceptor.java?rev=1545706&r1=1545705&r2=1545706&view=diff
==============================================================================
--- 
cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyVerificationInInterceptor.java
 (original)
+++ 
cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyVerificationInInterceptor.java
 Tue Nov 26 16:14:08 2013
@@ -20,6 +20,7 @@
 package org.apache.cxf.ws.policy;
 
 import java.util.List;
+import java.util.logging.Level;
 import java.util.logging.Logger;
 
 import javax.xml.namespace.QName;
@@ -103,6 +104,7 @@ public class PolicyVerificationInInterce
                 message.getExchange().put("ws-policy.validated.alternatives", 
usedAlternatives);
             }
         } catch (PolicyException ex) {
+            LOG.log(Level.SEVERE, "Inbound policy verification failed: " + 
ex.getMessage(), e);
             //To check if there is ws addressing policy violation and throw 
WSA specific 
             //exception to pass jaxws2.2 tests
             if (ex.getMessage().indexOf("Addressing") > -1) {


Reply via email to