如何忽略jbosseap6中的webservice错误?

krcsximq  于 2021-07-09  发布在  Java
关注(0)|答案(0)|浏览(178)

我必须为WebSphere6.1(只有jax-rpc/java1.5)和JBossEAP6(jax-ws/java7)制作一个兼容的.ear。websphere6.1中有一个webservice可以与jax-rpc一起工作,我想使用jax-ws在jboss中创建完全相同的webservice。但我的问题是,一旦jboss在jax-rpc服务中遇到错误,它就会停止部署应用程序的其余部分。有没有办法让jboss忽略jax-rpc服务而只初始化jax-ws?或者可以使用deployment.xml完全停用jax-rpc吗?
当做
编辑:

ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.deployment.subunit."YYY.ear"."waYYY.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."YYY.ear"."waYYY.war".INSTALL: JBAS018733: N'a pas pu traiter la phase INSTALL de subdeployment "waYYY.war" of deployment "YYY.ear"
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
    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_40]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_40]
    at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]
Caused by: org.jboss.ws.WSException: JBWS025146: Cannot obtain java type mapping for: {urn:YYYEventWS/types}doConsume
    at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.processDocElement(JAXRPCMetaDataBuilder.java:583)
    at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.buildParameterMetaDataDoc(JAXRPCMetaDataBuilder.java:840)
    at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.setupOperationsFromWSDL(JAXRPCMetaDataBuilder.java:202)
    at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCServerMetaDataBuilder.buildMetaData(JAXRPCServerMetaDataBuilder.java:197)
    at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.start(UnifiedMetaDataDeploymentAspect.java:58)
    at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74)
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
    ... 5 more

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题