You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Glen Mazza <gl...@gmail.com> on 2008/11/03 13:01:47 UTC
Re: WS-SecurityPolicy in CXF 2.1.x, or just 2.2?
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(FailFastProblemReporter.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
--
View this message in context: http://www.nabble.com/WS-SecurityPolicy-in-CXF-2.1.x%2C-or-just-2.2--tp19830360p20301570.html
Sent from the cxf-dev mailing list archive at Nabble.com.
Re: WS-SecurityPolicy in CXF 2.1.x, or just 2.2?
Posted by Glen Mazza <gl...@gmail.com>.
Thanks, that was it--needed to add that and the cxf-rt-ws-security dependency
as well. Now different error messages but I'm fighting through them.
Glen
dkulp wrote:
>
>
> 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
>
>
--
View this message in context: http://www.nabble.com/WS-SecurityPolicy-in-CXF-2.1.x%2C-or-just-2.2--tp19830360p20306916.html
Sent from the cxf-dev mailing list archive at Nabble.com.
Re: WS-SecurityPolicy in CXF 2.1.x, or just 2.2?
Posted by Daniel Kulp <dk...@apache.org>.
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