[jboss-jira] [JBoss JIRA] (WFLY-6335) CXF-6799: java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.reflect.TypeVariable

Alessio Soldano (JIRA) issues at jboss.org
Fri Aug 10 11:44:00 EDT 2018


     [ https://issues.jboss.org/browse/WFLY-6335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alessio Soldano resolved WFLY-6335.
-----------------------------------
    Resolution: Out of Date


With WildFly currently consuming Apache CXF 3.2.5, this bug fix is already available.

> CXF-6799: java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.reflect.TypeVariable
> -----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WFLY-6335
>                 URL: https://issues.jboss.org/browse/WFLY-6335
>             Project: WildFly
>          Issue Type: Bug
>          Components: Web Services
>            Reporter: Bartosz Baranowski
>            Assignee: Alessio Soldano
>
> Description of problem:
> 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
(v7.5.0#75005)


More information about the jboss-jira mailing list