[1/2] cxf git commit: log warning when the addressing policy's namespace is not normalized

2016-02-02 Thread ay
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 0efd99c5e -> 5329ac50f


log warning when the addressing policy's namespace is not normalized


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/d4d75a09
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/d4d75a09
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/d4d75a09

Branch: refs/heads/3.0.x-fixes
Commit: d4d75a09cc8438a122e8e9ff57eaef8edef2fb44
Parents: 0efd99c
Author: Akitoshi Yoshida 
Authored: Tue Feb 2 15:42:49 2016 +0100
Committer: Akitoshi Yoshida 
Committed: Tue Feb 2 15:50:22 2016 +0100

--
 .../ws/addressing/policy/AddressingAssertionBuilder.java  | 10 +-
 1 file changed, 9 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/cxf/blob/d4d75a09/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/policy/AddressingAssertionBuilder.java
--
diff --git 
a/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/policy/AddressingAssertionBuilder.java
 
b/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/policy/AddressingAssertionBuilder.java
index 4f147e3..e49dac9 100644
--- 
a/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/policy/AddressingAssertionBuilder.java
+++ 
b/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/policy/AddressingAssertionBuilder.java
@@ -20,12 +20,14 @@
 package org.apache.cxf.ws.addressing.policy;
 
 import java.util.Map;
+import java.util.logging.Logger;
 
 import javax.xml.namespace.QName;
 
 import org.w3c.dom.Attr;
 import org.w3c.dom.Element;
 
+import org.apache.cxf.common.logging.LogUtils;
 import org.apache.cxf.ws.policy.PolicyConstants;
 import org.apache.cxf.ws.policy.builder.primitive.PrimitiveAssertion;
 import org.apache.neethi.Assertion;
@@ -39,6 +41,8 @@ import 
org.apache.neethi.builders.xml.XMLPrimitiveAssertionBuilder;
  * 
  */
 public class AddressingAssertionBuilder implements AssertionBuilder {
+private static final Logger LOG = 
+LogUtils.getL7dLogger(AddressingAssertionBuilder.class);
 
 private static final QName[] KNOWN_ELEMENTS = {
 MetadataConstants.ADDRESSING_ASSERTION_QNAME,
@@ -80,7 +84,11 @@ public class AddressingAssertionBuilder implements 
AssertionBuilder {
   mp,
   policy);
 }
-} .build(elem, factory); 
+}.build(elem, factory);
+if 
(!MetadataConstants.ADDRESSING_ASSERTION_QNAME.equals(nap.getName())) {
+// this happens when neethi fails to recognize the specified 
addressing policy
+LOG.warning("Unable to recognize the addressing policy");
+}
 return nap;
 } else if (MetadataConstants.ANON_RESPONSES_ASSERTION_QNAME.equals(qn)
 || 
MetadataConstants.ANON_RESPONSES_ASSERTION_QNAME_0705.equals(qn)) {



cxf git commit: log warning when the addressing policy's namespace is not normalized

2016-02-02 Thread ay
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes f183b9f00 -> cb815b823


log warning when the addressing policy's namespace is not normalized


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/cb815b82
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/cb815b82
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/cb815b82

Branch: refs/heads/3.1.x-fixes
Commit: cb815b823006e26ccd8f06c0a75aaa1f23c889b7
Parents: f183b9f
Author: Akitoshi Yoshida 
Authored: Tue Feb 2 15:42:49 2016 +0100
Committer: Akitoshi Yoshida 
Committed: Tue Feb 2 15:47:12 2016 +0100

--
 .../ws/addressing/policy/AddressingAssertionBuilder.java  | 10 +-
 1 file changed, 9 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/cxf/blob/cb815b82/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/policy/AddressingAssertionBuilder.java
--
diff --git 
a/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/policy/AddressingAssertionBuilder.java
 
b/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/policy/AddressingAssertionBuilder.java
index 662b819..e49dac9 100644
--- 
a/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/policy/AddressingAssertionBuilder.java
+++ 
b/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/policy/AddressingAssertionBuilder.java
@@ -20,12 +20,14 @@
 package org.apache.cxf.ws.addressing.policy;
 
 import java.util.Map;
+import java.util.logging.Logger;
 
 import javax.xml.namespace.QName;
 
 import org.w3c.dom.Attr;
 import org.w3c.dom.Element;
 
+import org.apache.cxf.common.logging.LogUtils;
 import org.apache.cxf.ws.policy.PolicyConstants;
 import org.apache.cxf.ws.policy.builder.primitive.PrimitiveAssertion;
 import org.apache.neethi.Assertion;
@@ -39,6 +41,8 @@ import 
org.apache.neethi.builders.xml.XMLPrimitiveAssertionBuilder;
  * 
  */
 public class AddressingAssertionBuilder implements AssertionBuilder {
+private static final Logger LOG = 
+LogUtils.getL7dLogger(AddressingAssertionBuilder.class);
 
 private static final QName[] KNOWN_ELEMENTS = {
 MetadataConstants.ADDRESSING_ASSERTION_QNAME,
@@ -80,7 +84,11 @@ public class AddressingAssertionBuilder implements 
AssertionBuilder {
   mp,
   policy);
 }
-}.build(elem, factory); 
+}.build(elem, factory);
+if 
(!MetadataConstants.ADDRESSING_ASSERTION_QNAME.equals(nap.getName())) {
+// this happens when neethi fails to recognize the specified 
addressing policy
+LOG.warning("Unable to recognize the addressing policy");
+}
 return nap;
 } else if (MetadataConstants.ANON_RESPONSES_ASSERTION_QNAME.equals(qn)
 || 
MetadataConstants.ANON_RESPONSES_ASSERTION_QNAME_0705.equals(qn)) {



cxf git commit: log warning when the addressing policy's namespace is not normalized

2016-02-02 Thread ay
Repository: cxf
Updated Branches:
  refs/heads/master abcc137cb -> 68c201f36


log warning when the addressing policy's namespace is not normalized


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/68c201f3
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/68c201f3
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/68c201f3

Branch: refs/heads/master
Commit: 68c201f362df013cb2c08f0a5a9bd3eaba555710
Parents: abcc137
Author: Akitoshi Yoshida 
Authored: Tue Feb 2 15:42:49 2016 +0100
Committer: Akitoshi Yoshida 
Committed: Tue Feb 2 15:42:49 2016 +0100

--
 .../ws/addressing/policy/AddressingAssertionBuilder.java  | 10 +-
 1 file changed, 9 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/cxf/blob/68c201f3/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/policy/AddressingAssertionBuilder.java
--
diff --git 
a/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/policy/AddressingAssertionBuilder.java
 
b/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/policy/AddressingAssertionBuilder.java
index 662b819..e49dac9 100644
--- 
a/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/policy/AddressingAssertionBuilder.java
+++ 
b/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/policy/AddressingAssertionBuilder.java
@@ -20,12 +20,14 @@
 package org.apache.cxf.ws.addressing.policy;
 
 import java.util.Map;
+import java.util.logging.Logger;
 
 import javax.xml.namespace.QName;
 
 import org.w3c.dom.Attr;
 import org.w3c.dom.Element;
 
+import org.apache.cxf.common.logging.LogUtils;
 import org.apache.cxf.ws.policy.PolicyConstants;
 import org.apache.cxf.ws.policy.builder.primitive.PrimitiveAssertion;
 import org.apache.neethi.Assertion;
@@ -39,6 +41,8 @@ import 
org.apache.neethi.builders.xml.XMLPrimitiveAssertionBuilder;
  * 
  */
 public class AddressingAssertionBuilder implements AssertionBuilder {
+private static final Logger LOG = 
+LogUtils.getL7dLogger(AddressingAssertionBuilder.class);
 
 private static final QName[] KNOWN_ELEMENTS = {
 MetadataConstants.ADDRESSING_ASSERTION_QNAME,
@@ -80,7 +84,11 @@ public class AddressingAssertionBuilder implements 
AssertionBuilder {
   mp,
   policy);
 }
-}.build(elem, factory); 
+}.build(elem, factory);
+if 
(!MetadataConstants.ADDRESSING_ASSERTION_QNAME.equals(nap.getName())) {
+// this happens when neethi fails to recognize the specified 
addressing policy
+LOG.warning("Unable to recognize the addressing policy");
+}
 return nap;
 } else if (MetadataConstants.ANON_RESPONSES_ASSERTION_QNAME.equals(qn)
 || 
MetadataConstants.ANON_RESPONSES_ASSERTION_QNAME_0705.equals(qn)) {