more information...the service is running on jboss 4.3.2.ga and i'm using jdk 1.6. the client is using another instance of jboss 4.2.3.ga and is using jdk 1.6 as well.
hope that helps. thx abe ________________________________ From: Abraham Washington <[email protected]> To: [email protected] Sent: Monday, December 22, 2008 11:15:14 AM Subject: rampart / security / callbacks hi all...i'm trying to use tuscany's policySet and callbacks for authentication, but i'm getting the error below. the client callback class is called, but the server class is not. here's my config for the client: <!-- WS Security POLICY SETS --><sca:policySet name="soasecurity:wsAuthenticationPolicy"provides="authentication"appliesTo="sca:binding.ws"><tuscany:wsConfigParam><parameter name="InflowSecurity"><action><items>UsernameToken</items><passwordCallbackClass>org.soa.services.security.client.ServerPWCBHandler</passwordCallbackClass></action></parameter></tuscany:wsConfigParam></sca:policySet> here's the server (my tuscany service) security: < sca:definitions xmlns="http://www.osoa.org/xmlns/sca/1.0"targetNamespace="http://www.osoa.org/xmlns/sca/1.0"xmlns:sca="http://www.osoa.org/xmlns/sca/1.0"xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"xmlns:soasecurity="http://org.soa.services"> <sca:policySet name="oasecurity:wsAuthenticationPolicy"provides="authentication"appliesTo="sca:binding.ws"><tuscany:wsConfigParam><parameter name="InflowSecurity"><action><items>UsernameToken</items><passwordCallbackClass>org.soa.services.security.server.ServerPWCBHandler</passwordCallbackClass></action></parameter></tuscany:wsConfigParam> </sca:policySet> 10:56:01,694 INFO [STDOUT] message -> org.apache.tuscany.sca.interfacedef.util.FaultException: Must Understand check failed for header http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd : Security 10:56:01,695 ERROR [STDERR] org.osoa.sca.ServiceRuntimeException: org.apache.tuscany.sca.interfacedef.util.FaultExceptio n: Must Understand check failed for header http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd : Security 10:56:01,697 ERROR [STDERR] at org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(Dat aTransformationInterceptor.java:136) 10:56:01,697 ERROR [STDERR] at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl er.java:287) 10:56:01,698 ERROR [STDERR] at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl er.java:154) 10:56:01,698 ERROR [STDERR] at $Proxy72.findOrganization(Unknown Source) 10:56:01,699 ERROR [STDERR] at org.soa.services.OrganizationServiceImpl.findOrganization(OrganizationServiceImp l.java:21) 10:56:01,699 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 10:56:01,699 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 10:56:01,700 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 10:56:01,700 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597) 10:56:01,701 ERROR [STDERR] at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invok e(JavaImplementationInvoker.java:132) 10:56:01,701 ERROR [STDERR] at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValu eInterceptor.java:112) 10:56:01,702 ERROR [STDERR] at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.ja va:61) 10:56:01,702 ERROR [STDERR] at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValu eInterceptor.java:112) 10:56:01,703 ERROR [STDERR] at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl er.java:287) 10:56:01,703 ERROR [STDERR] at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandl er.java:154) thx abe
