Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 75929 invoked from network); 14 Dec 2007 14:04:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Dec 2007 14:04:19 -0000 Received: (qmail 33339 invoked by uid 500); 14 Dec 2007 14:04:07 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 33325 invoked by uid 500); 14 Dec 2007 14:04:07 -0000 Mailing-List: contact cxf-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-issues@incubator.apache.org Received: (qmail 33316 invoked by uid 99); 14 Dec 2007 14:04:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Dec 2007 06:04:07 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Dec 2007 14:04:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 51BA271420B for ; Fri, 14 Dec 2007 06:03:43 -0800 (PST) Message-ID: <5358404.1197641023309.JavaMail.jira@brutus> Date: Fri, 14 Dec 2007 06:03:43 -0800 (PST) From: "Thomas Diesler (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Updated: (CXF-1302) PolicyException on incorrect policy namespace In-Reply-To: <7563549.1197639823310.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-1302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Diesler updated CXF-1302: -------------------------------- Description: I'm trying to integrate CXF WS-RM into JBoss >From the example on the wiki http://cwiki.apache.org/CXF20DOC/wsrmconfiguration.html I use This leads to Caused by: org.apache.cxf.ws.policy.PolicyException: Expected exactly one child element of type {http://www.w3.org/ns/ws-policy}Policy. at org.apache.cxf.ws.policy.builder.primitive.NestedPrimitiveAssertion.(NestedPrimitiveAssertion.java:70) at org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder.build(AddressingAssertionBuilder.java:74) at org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl.build(AssertionBuilderRegistryImpl.java:102) at org.apache.cxf.ws.policy.PolicyBuilderImpl.processOperationElement(PolicyBuilderImpl.java:185) at org.apache.cxf.ws.policy.PolicyBuilderImpl.getPolicyOperator(PolicyBuilderImpl.java:123) at org.apache.cxf.ws.policy.PolicyBuilderImpl.getPolicy(PolicyBuilderImpl.java:119) was: I'm trying to integrate CXF WS-RM into JBoss >From the example on the wiki I use This leads to Caused by: org.apache.cxf.ws.policy.PolicyException: Expected exactly one child element of type {http://www.w3.org/ns/ws-policy}Policy. at org.apache.cxf.ws.policy.builder.primitive.NestedPrimitiveAssertion.(NestedPrimitiveAssertion.java:70) at org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder.build(AddressingAssertionBuilder.java:74) at org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl.build(AssertionBuilderRegistryImpl.java:102) at org.apache.cxf.ws.policy.PolicyBuilderImpl.processOperationElement(PolicyBuilderImpl.java:185) at org.apache.cxf.ws.policy.PolicyBuilderImpl.getPolicyOperator(PolicyBuilderImpl.java:123) at org.apache.cxf.ws.policy.PolicyBuilderImpl.getPolicy(PolicyBuilderImpl.java:119) because of if (Constants.URI_POLICY_NS.equals(namespaceURI)) { if (Constants.ELEM_POLICY.equals(localName)) { operator.addPolicyComponent(getPolicyOperator(childElement)); } else if (Constants.ELEM_EXACTLYONE.equals(localName)) { operator.addPolicyComponent(getExactlyOneOperator(childElement)); } else if (Constants.ELEM_ALL.equals(localName)) { operator.addPolicyComponent(getAllOperator(childElement)); } else if (Constants.ELEM_POLICY_REF.equals(localName)) { operator.addPolicyComponent(getPolicyReference(childElement)); } } else if (null != assertionBuilderRegistry) { Assertion a = assertionBuilderRegistry.build(childElement); if (null != a) { operator.addPolicyComponent(a); } } It seems that only http://schemas.xmlsoap.org/ws/2004/09/policy is a valid policy namespace. > PolicyException on incorrect policy namespace > --------------------------------------------- > > Key: CXF-1302 > URL: https://issues.apache.org/jira/browse/CXF-1302 > Project: CXF > Issue Type: Bug > Components: WS-* Components > Affects Versions: 2.0.3 > Reporter: Thomas Diesler > > I'm trying to integrate CXF WS-RM into JBoss > From the example on the wiki > http://cwiki.apache.org/CXF20DOC/wsrmconfiguration.html > I use > xmlns:jaxws='http://cxf.apache.org/jaxws' xmlns:p="http://cxf.apache.org/policy" > xsi:schemaLocation='http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd > http://cxf.apache.org/policy http://cxf.apache.org/schemas/policy.xsd > http://www.w3.org/2006/07/ws-policy http://www.w3.org/2006/11/ws-policy.xsd > http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd'> > > > > > > > > > > > > > > > > > > > > > > > > > > This leads to > Caused by: org.apache.cxf.ws.policy.PolicyException: Expected exactly one child element of type {http://www.w3.org/ns/ws-policy}Policy. > at org.apache.cxf.ws.policy.builder.primitive.NestedPrimitiveAssertion.(NestedPrimitiveAssertion.java:70) > at org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder.build(AddressingAssertionBuilder.java:74) > at org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl.build(AssertionBuilderRegistryImpl.java:102) > at org.apache.cxf.ws.policy.PolicyBuilderImpl.processOperationElement(PolicyBuilderImpl.java:185) > at org.apache.cxf.ws.policy.PolicyBuilderImpl.getPolicyOperator(PolicyBuilderImpl.java:123) > at org.apache.cxf.ws.policy.PolicyBuilderImpl.getPolicy(PolicyBuilderImpl.java:119) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.