You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Yann Blazart <ya...@bycode.fr> on 2014/11/25 15:39:40 UTC
Test UserNameToken WS
Hi !
I'm trying to test UserNameToken on WS.
But I got this message
Caused by: javax.security.auth.login.LoginException: Thread already
associated with a client identity. Refusing to overwrite.
at
org.apache.openejb.core.security.AbstractSecurityService.associate(AbstractSecurityService.java:210)
at
org.apache.openejb.core.security.AbstractSecurityService.associate(AbstractSecurityService.java:61)
at
org.apache.openejb.server.cxf.OpenEJBLoginValidator.verifyDigestPassword(OpenEJBLoginValidator.java:57)
Could someone help me ?
I sended my project. You can do an mvn tomee;run on the ear module to test
it.
And use sopaui with such message :
<soap:Envelope xmlns:chat="http://chaton.bpi.fr/" xmlns:soap="
http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<wsse:Security soap:mustUnderstand="true" xmlns:wsse="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
">
<wsse:UsernameToken wsu:Id="UsernameToken-3">
<wsse:Username>M07800</wsse:Username>
<wsse:Password Type="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText
">M0780000</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soap:Header>
<soap:Body>
<chat:untTest/>
</soap:Body>
</soap:Envelope>