java.lang.IllegalStateException:start标签已被写为wso2 as

时间:2014-05-18 21:06:48

标签: java spring web-services wso2

我创建了一个JAX-WS项目wso2开发人员工作室。 在这个项目中,我继承了接口DocumentRegistryPortType,我们可以在Rahul(http://repo1.maven.org/maven2/com/github/rahulsom/ihe-iti/0.7/ihe-iti-0.7.jar)开发的lib中找到它!  当我尝试访问WSO2 AS中的wsdl时,显示以下错误。

[2014-05-19 01:15:46,943]  INFO {org.apache.cxf.service.factory.ReflectionServiceFactoryBean} -  Creating Service {urn:ihe:iti:xds-b:2007}DocumentRegistry_Service from class ihe.iti.xds_b._2007.DocumentRegistryPortType
[2014-05-19 01:15:51,080]  INFO {org.springframework.beans.factory.support.DefaultSingletonBeanRegistry} -  Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6bc684d1: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,DocumentRegistry]; root of factory hierarchy
[2014-05-19 01:15:51,081] ERROR {org.apache.catalina.core.ApplicationContext} -  StandardWrapper.Throwable
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'DocumentRegistry': Invocation of init method failed; nested exception is java.lang.IllegalStateException: start tag has already been written

知道这可能是什么错误吗?

这是我的cxf-servlet.xml文件。包的名称是jax,类是DocumentRegistry。 DocumetRegistryPortType的这个类实现。

<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:jaxws="http://cxf.apache.org/jaxws" 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://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
    <jaxws:server id="DocumentRegistry" address="/servicio">
        <jaxws:serviceBean>
            <bean  class="jax.DocumentRegistry"/>
        </jaxws:serviceBean>
    </jaxws:server>
</beans>

0 个答案:

没有答案