You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "brad (JIRA)" <ji...@apache.org> on 2010/01/12 04:04:15 UTC

[jira] Commented: (SMX4-459) ClassCastException when using WSS actions in interceptors for CXF binding components

    [ https://issues.apache.org/activemq/browse/SMX4-459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56862#action_56862 ] 

brad commented on SMX4-459:
---------------------------

I've attached a full sample you can build to reproduce this issue. Just place wss4j-1.5.8.jar into the base directory before you run the Ant build file.

> ClassCastException when using WSS actions in interceptors for CXF binding components
> ------------------------------------------------------------------------------------
>
>                 Key: SMX4-459
>                 URL: https://issues.apache.org/activemq/browse/SMX4-459
>             Project: ServiceMix 4
>          Issue Type: Bug
>            Reporter: brad
>            Priority: Critical
>         Attachments: usernameToken.zip
>
>
> I've created a simple JBI service assembly where the CXF binding component has a WSS4JInInterceptor configured, which specifies the "UsernameToken" action.
> The service assembly works well in 3.3.1 - all I need to do is add "admin=password", for example, to the users-passwords.properties and the component is functional.
> In 4.1.0 I've first had to overcome the classpath issue I've raised in SMX4-457, after which the component can be successfully deployed. However, when I try to send a request to the service I see the following exception:
> *java.lang.ClassCastException: org.apache.ws.security.processor.UsernameTokenProcessor cannot be cast to org.apache.ws.security.processor.Processor*
> Since my classpath.xml is quite specific, I don't understand the reason for this problem or a way to get around it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.