java.lang.ClassCastException: com.sun.xml.ws.message.jaxb.JAXBHeader cannot be cast to com.sun.xml.ws.security.opt.impl.outgoing.SecurityHeader

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

java.lang.ClassCastException: com.sun.xml.ws.message.jaxb.JAXBHeader cannot be cast to com.sun.xml.ws.security.opt.impl.outgoing.SecurityHeader

rsltr
Hello everybody

I use:
Metro/2.2-b13 (branches/2.2-6964; 2012-01-09T18:04:18+0000) JAXWS-RI/2.2.6-promoted-b20 JAXWS/2.2 svn-revision#unknown: Stub for http://10.126.181.71/ISIService/V8/IdentificationService.svc?wsdl

Oracle GlassFish Server 3.1.2 (build 23)

My SoapMessage:

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" 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"><S:Header><wsse:Security S:actor="RSMEVAUTH" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:BinarySecurityToken EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="CertId">MIII9DCCC .....</wsse:BinarySecurityToken><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#gostr34102001-gostr3411"/><Reference URI="#body"><Transforms><Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></Transforms><DigestMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#gostr3411"/><DigestValue>62sgvDihHX5BcoUlbMyR1u8i1m9FSDQ5h5rjz/wuv9w=</DigestValue></Reference></SignedInfo><SignatureValue>/YTXoyfY/iFNQSOLg8kLzhKh//8TH7MHIH2tCyvR4+F0GNpO4GQ8/qDdSkAG5HpLuX9Dk5QBdCAX
JX48lt76Pw==</SignatureValue><KeyInfo><wsse:SecurityTokenReference><wsse:Reference URI="#CertId" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/></wsse:SecurityTokenReference></KeyInfo></Signature></wsse:Security></S:Header><S:Body wsu:Id="body"> .......  </S:Body></S:Envelope>

After sending :

java.lang.ClassCastException: com.sun.xml.ws.message.jaxb.JAXBHeader cannot be cast to com.sun.xml.ws.security.opt.impl.outgoing.SecurityHeader

How do I fix this?

Reply | Threaded
Open this post in threaded view
|

Re: java.lang.ClassCastException: com.sun.xml.ws.message.jaxb.JAXBHeader cannot be cast to com.sun.xml.ws.security.opt.impl.outgoing.SecurityHeader

yaroska
Hi,

It’s not obvious where is the problem. Can you try to provide testcase which will reproduce the issue?


Yarda

> On 21 May 2015, at 10:39, rsltr <[hidden email]> wrote:
>
> Hello everybody
>
> I use:
> Metro/2.2-b13 (branches/2.2-6964; 2012-01-09T18:04:18+0000)
> JAXWS-RI/2.2.6-promoted-b20 JAXWS/2.2 svn-revision#unknown: Stub for
> http://10.126.181.71/ISIService/V8/IdentificationService.svc?wsdl
>
> Oracle GlassFish Server 3.1.2 (build 23)
>
> My SoapMessage:
>
> <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
> 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"><S:Header><wsse:Security
> S:actor="RSMEVAUTH"
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:BinarySecurityToken
> EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
> ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
> wsu:Id="CertId">MIII9DCCC .....</wsse:BinarySecurityToken><Signature
> xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod
> Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><SignatureMethod
> Algorithm="http://www.w3.org/2001/04/xmldsig-more#gostr34102001-gostr3411"/><Reference
> URI="#body"><Transforms><Transform
> Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></Transforms><DigestMethod
> Algorithm="http://www.w3.org/2001/04/xmldsig-more#gostr3411"/><DigestValue>62sgvDihHX5BcoUlbMyR1u8i1m9FSDQ5h5rjz/wuv9w=</DigestValue></Reference></SignedInfo><SignatureValue>/YTXoyfY/iFNQSOLg8kLzhKh//8TH7MHIH2tCyvR4+F0GNpO4GQ8/qDdSkAG5HpLuX9Dk5QBdCAX
> JX48lt76Pw==</SignatureValue><KeyInfo><wsse:SecurityTokenReference><wsse:Reference
> URI="#CertId"
> ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/></wsse:SecurityTokenReference></KeyInfo></Signature></wsse:Security></S:Header><S:Body
> wsu:Id="body"> .......  </S:Body></S:Envelope>
>
> After sending :
>
> java.lang.ClassCastException: com.sun.xml.ws.message.jaxb.JAXBHeader cannot
> be cast to com.sun.xml.ws.security.opt.impl.outgoing.SecurityHeader
>
> How do I fix this?
>
>
>
>
>
> --
> View this message in context: http://metro.1045641.n5.nabble.com/java-lang-ClassCastException-com-sun-xml-ws-message-jaxb-JAXBHeader-cannot-be-cast-to-com-sun-xml-wsr-tp5710484.html
> Sent from the Metro - Users mailing list archive at Nabble.com.