When I am using an customer security policy for my webservices in weblogic 10.3 today. I got an error "com.sun.xml.ws.policy.PolicyException: [failed to localize] WSP_0010_UNEXPANDED_POLICY_REFERENCE_NODE_FOUND_REFERENCING"
The weblogic document is kind of misleading me, when it talks about using the policy as '
@Policy(uri = "Wssp1.2-2007-SignBody-Fault.xml")'. Finally I have figured it out, without put the policy like '
@Policy(uri = "policy:Wssp1.2-EncryptBody.xml")', it actually reference a resource on the file system.
So if you want using a policy file from a deploy war file, you need put it in the /WEB-INF/policies/ and reference it as @Policy(uri = "policy:Wssp1.2-2007-SignBody-Fault.xml")'.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment