Hello, I think this is a newbie Spring error on my part, but I'm getting the error message below when attempting to use the new WS-SecurityPolicy functionality in CXF 2.2.[1]. Here's my error stack:
[INFO] WARNING: Failed to create application context. [INFO] org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 16 in XML document from class path resource [cxf.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'jaxws:client'. [INFO] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404) [INFO] at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.doLoadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:108) [INFO] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342) Here's the cxf.xml I'm trying to load: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:cxf="http://cxf.apache.org/core" xmlns:p="http://cxf.apache.org/policy" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xsi:schemaLocation=" http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd http://cxf.apache.org/policy http://cxf.apache.org/schemas/policy.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> <jaxws:client name="{http://www.example.org/doubleit}DoubleItPort.http-conduit"> <jaxws:properties> <entry key="ws-security.callback-handler" value="demo.hw.client.KeystorePasswordCallback" /> <entry key="ws-security.username" value="Alice" /> <entry key="ws-security.signature.properties" value="alice.properties" /> <entry key="ws-security.encryption.username" value="Bob"/> <entry key="ws-security.encryption.properties" value="bob.properties" /> </jaxws:properties> </jaxws:client> <cxf:bus> <cxf:features> <p:policies /> <cxf:logging /> </cxf:features> </cxf:bus> </beans> Any idea what the problem is? Thanks, Glen [1] http://www.nabble.com/Re%3A-WS-SecurityPolicy-in-CXF-2.1.x%2C-or-just-2.2--p19837200.html -- View this message in context: http://www.nabble.com/%22The-matching-wildcard-is-strict-but-no-declaration-can-be-found%22-error-tp20353811p20353811.html Sent from the cxf-user mailing list archive at Nabble.com.
