You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Chris Dolphy (JIRA)" <ji...@apache.org> on 2016/02/26 04:13:18 UTC

[jira] [Commented] (CXF-6799) java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.reflect.TypeVariable

    [ https://issues.apache.org/jira/browse/CXF-6799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15168342#comment-15168342 ] 

Chris Dolphy commented on CXF-6799:
-----------------------------------

This may be the same as CXF-5994, but I don't have the WSDL mentioned to verify.

> java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.reflect.TypeVariable
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-6799
>                 URL: https://issues.apache.org/jira/browse/CXF-6799
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 2.7.17
>         Environment: EAP 6.4.5;  jdk1.7.0_75
>            Reporter: Chris Dolphy
>
> Deploying test web service gives on JBoss startup:
> Caused by: java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.reflect.TypeVariable
> 	at org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:251)
> Generated web service class has the following element which has issues with the JAXB binding:
>     @XmlElementRefs({
>         @XmlElementRef(name = "Salutation", namespace = "http://ws.gss.redhat.com/", type = JAXBElement.
>         @XmlElementRef(name = "Name", namespace = "http://ws.gss.redhat.com/", type = JAXBElement.class)
>     })
>     protected JAXBElement<String> [] salutationAndName;
> Web service was generated from WSDL with <jaxb:globalBindings collectionType="indexed" /> and the  following schema:
>       <xs:complexType name="Greetings">
>           <xs:sequence maxOccurs="unbounded">
>               <xs:element name="Salutation" type="xsd:string"/>
>               <xs:element name="Name" type="xsd:string"/>
>           </xs:sequence>
>       </xs:complexType>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)