Jboss Fuse 6.3 + EAP 6.4 ClassCastException: класс org.apache.cxf.jaxb.JAXBDataBinding - PullRequest
0 голосов
/ 03 декабря 2018

У меня большая проблема с моим первым веб-сервисом, использующим Jboss Fuse.Мне нужно создать веб-службу SOAP WSDL, которая должна работать на EAP 6.4, это мой jboss-camel-context:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:cxf="http://camel.apache.org/schema/cxf"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd        http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd        http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd">
    <import resource="classpath:META-INF/cxf/cxf.xml"/>
    <bean class="com.test.camle_cxf_test_v1.CamelServiceRoute"
        id="camel" scope="singleton"/>
    <cxf:cxfEndpoint address="/TestRetrieve" id="customerEndpoint" serviceClass="com.test.ExamplePortType">
        <cxf:properties>
            <entry key="dataFormat" value="MESSAGE"/>
        </cxf:properties>
    </cxf:cxfEndpoint>
    <camelContext id="spring-context" xmlns="http://camel.apache.org/schema/spring">
        <route id="_route1">
            <from id="_from1" uri="cxf:bean:customerEndpoint"/>
            <process id="_process1" ref="camel"/>
        </route>
    </camelContext>
</beans>

После сборки пакета, используя maven, я поставил войну подпакет "развертывания" jboss, но во время развертывания я получаю эту ошибку:

, вызванная: java.lang.ClassCastException: class org.apache.cxf.jaxb.JAXBDataBinding на java.lang.Class.asSubclass (Class.java:3218) [rt.jar: 1.7.0_80-ea] в org.apache.cxf.common.classloader.ClassLoaderUtils.loadClass (ClassLoaderUtils.java:269) в org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.getJAXBClass (ReflectionServiceFactoryBean.java:239) в org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.createDefaultData * привязка * 100 * * * * * * 100 * 100 * решитеэто исключение?

Большое спасибо.

С уважением, Маттео.

...