cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: WS-SecurityPolicy in CXF 2.1.x, or just 2.2?
Date Mon, 03 Nov 2008 16:21:18 GMT

Glen,

Is this maven based?    Have you added a dependency on the cxf-rt-ws-policy 
artifact?

Dan


On Monday 03 November 2008 7:01:47 am Glen Mazza wrote:
> dkulp wrote:
> > Actually, the CLIENT side stuff is MUCH better tested right now.   I've
> > been using the live MS WCF tests at:
> > http://mssoapinterop.org/ilab/
> > as my testcases.   For the most part, I just run wsdl2java on the wsdls
> > and have a simple client that calls on them.   For each "test case", the
> > spring config sets the properties that are needed.     For example, I
> > have:
> >
> > Turn on the policy stuff:  (this will probably be the default for 2.2 if
> > it all works and doesn't affect performance)
> >     <cxf:bus>
> >         <cxf:features>
> >             <p:policies/>
> >             <cxf:logging/>
> >         </cxf:features>
> >     </cxf:bus>
> >
> > ...
>
> I'm attempting to do this via the following file, which I'm calling cxf.xml
> and placing in the classpath of my SOAP client:
>
> <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"
>        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">
>
>     <cxf:bus>
>         <cxf:features>
>             <p:policies/>
>             <cxf:logging/>
>         </cxf:features>
>     </cxf:bus>
> </beans>
>
> But I'm getting this error, and Google searches are not helping me:
>
> [INFO] WARNING: Failed to create application context.
> [INFO]
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
> Configuration problem: Unable to locate Spring NamespaceHandler for XML
> schema namespace [http://cxf.apache.org/policy]
> [INFO] Offending resource: class path resource [cxf.xml]
> [INFO]
> [INFO] 	at
> org.springframework.beans.factory.parsing.FailFastProblemReporter.error(Fai
>lFastProblemReporter.java:68) [INFO] 	at
> org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext
>.java:85) [INFO] 	at
> org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext
>.java:80)
>
> Any idea what I'm doing wrong?
>
> Thanks,
> Glen



-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog

Mime
View raw message