Hi, I've been trying to wire my WSS4J interceptors into Spring security,
which I was able to do following Freeman's suggestions.
However, I'm facing the (whats looks to be a) common problem with
WebServiceContext when trying to enable method security.

Before adding the global-method-security line everything works well.
When I add it, I get an IllegalArgumentException which complaints that it
cannot set the WebServiceContext field to a "$Proxy131" (sorry, I'm not able
to copy the stack trace from here).

I found some posts on the subject, mostly answered by Sergei and jax-RS
related. I learned thatthe issue is related to spring AOP and to CGLIB
proxies and suggesting to add a setter in the service interface to solve te
issue. However, I added a setWebServiceContext(WebServiceContext wsc) to the
service interface, and still have no luck, it fails with identical exception
and message.

I'm using CXF 2.1.1, Spring 2.5, Spring-ws 1.5.9 and Spring-security
2.0.5.RELEASE.
Which steps should I take to be able to use method security?
Thanks again for all the help.

Reply via email to