Hi
I am testing ws-policy and in cxf.xml I have the following defined.
<cxf:bus>
<cxf:inInterceptors>
<ref bean="policyIn" />
</cxf:inInterceptors>
<cxf:features>
<p:policies/>
</cxf:features>
</cxf:bus>
<p:externalAttachment location="classpath:/policies.xml"/>
<bean id="policyIn" class="org.apache.cxf.ws.policy.PolicyInInterceptor"/>
In policies.xml I have the following:
<wsp:PolicyAttachment>
<wsp:AppliesTo>
<wsa:EndpointReference>
<wsa:Address>/TestService</wsa:Address>
</wsa:EndpointReference>
</wsp:AppliesTo>
<wsp:Policy>
<sp:HttpsToken RequireClientCertificate="true">
<wsp:Policy/>
</sp:HttpsToken>
</wsp:Policy>
</wsp:PolicyAttachment>
When I ran my app with policies enabled I got "None of the policy
alternatives can be satisfied." error.
I figured out that I need to include wss4j.jar in my class path.
Is there any other jar file that I can use instead of wss4j.jar?
If not how can I get around without using wss4j.jar?
Thanks
Steve