【问题标题】:JBoss-webservices.xml structure in JBoss eap 6JBoss eap 6 中的 JBoss-webservices.xml 结构
【发布时间】:2014-02-27 13:58:47
【问题描述】:
<webservices xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices   
/xsd/j2ee_web_services_1_1.xsd" version="1.1">
<webservice-description>
<webservice-description-name>CAPPLANService</webservice-description-name>
<wsdl-file>/wsdls/capplan.wsdl</wsdl-file>
<jaxrpc-mapping-file>WEB-INF/CAPPLANService.xml</jaxrpc-mapping-file>
<port-component>
<port-component-name>CAPPLANEndpointPort</port-component-name>
<wsdl-port>CAPPLANEndpointPort</wsdl-port>
<service-endpoint-interface>
com.eds.www.AirlineSOASchema.CAPPLAN.CAPPLANPortTypeImplPortType
</service-endpoint-interface>
<service-impl-bean>
<servlet-link>CAPPLANServiceServlet</servlet-link>
</service-impl-bean>
</port-component>
</webservice-description>
</webservices>

我正在使用这个 xml 文件。 但是在编译时出现以下错误,

16:17:22,837 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."capplan.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."capplan.war".PARSE: JBAS018733: Failed to process phase PARSE of deployment "capplan.war"
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]
    at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
Caused by: javax.xml.ws.WebServiceException: JBWS021004: Failed to unmarshall vfs:/C:/jboss-eap-6.1/standalone/deployments/capplan.war/WEB-INF/jboss-webservices.xml
    at org.jboss.wsf.spi.metadata.webservices.JBossWebservicesFactory.load(JBossWebservicesFactory.java:111)
    at org.jboss.as.webservices.deployers.JBossWebservicesDescriptorDeploymentProcessor.deploy(JBossWebservicesDescriptorDeploymentProcessor.java:53)
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
    ... 5 more
Caused by: java.lang.IllegalStateException: JBWS021001: Unexpected element parsing vfs:/C:/jboss-eap-6.1/standalone/deployments/capplan.war/WEB-INF/jboss-webservices.xml: webservices
    at org.jboss.wsf.spi.metadata.webservices.JBossWebservicesFactory.parse(JBossWebservicesFactory.java:160)
    at org.jboss.wsf.spi.metadata.webservices.JBossWebservicesFactory.load(JBossWebservicesFactory.java:109)
    ... 7 more

谁能帮我解决这个问题?

【问题讨论】:

    标签: java xml web-services jboss


    【解决方案1】:

    你有错误的 xmlns。

    <webservices xmlns="http://www.jboss.com/xml/ns/javaee">
        <!-- Rest of your file here -->
    </webservices>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-08-05
      • 2019-05-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多