gpt4 book ai didi

java - JBoss eap 6 中的 JBoss-webservices.xml 结构

转载 作者:行者123 更新时间:2023-11-29 05:27:54 25 4
gpt4 key购买 nike

<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

谁能帮我解决这个问题?

最佳答案

你有错误的 xmlns。

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

关于java - JBoss eap 6 中的 JBoss-webservices.xml 结构,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22070744/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com