Hi,

We've gotten this error after migrating to CXF 2.2.3 (server side):

Caused by: org.apache.ws.security.WSSecurityException: General security
error (WSSecurityEngine: No password callback supplied)
        at
org.apache.ws.security.processor.UsernameTokenProcessor.handleUsernameToken(UsernameTokenProcessor.java:84)
        at
org.apache.ws.security.processor.UsernameTokenProcessor.handleToken(UsernameTokenProcessor.java:54)
        at
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:326)
        at
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:243)
        at
org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:198)

On the server side we have:

    <bean id="wss4jInInterceptor"
class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
        <constructor-arg>
            <map>
                <entry key="passwordCallbackClass"
                    value="com.XXX.XXX.XXXX" />
                <entry key="action" value="UsernameToken Timestamp
NoSecurity" />
            </map>
        </constructor-arg>
    </bean>

On the client side we are using Axis and we use this to configure it:

        Stub axisPort = (Stub) locator.getUserServicePort();
        axisPort._setProperty(WSHandlerConstants.ACTION,
WSHandlerConstants.USERNAME_TOKEN);
        axisPort._setProperty(UsernameToken.PASSWORD_TYPE,
WSConstants.PW_TEXT);
        axisPort._setProperty(WSHandlerConstants.USER, user);
        axisPort._setProperty(WSHandlerConstants.PW_CALLBACK_REF, new
PasswordCallback(password));

Any idea of what could have changed? That worked with CXF 2.0.7

Thank you,

Gabriel
-- 
View this message in context: 
http://www.nabble.com/Error%3A-General-security-error-%28WSSecurityEngine%3A-No-password-callback-supplied%29-tp25829118p25829118.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to