找到一个意外的Node #text,其名称为null,文本内容为=

时间:2016-04-01 18:19:22

标签: java wsdl weblogic cxf

在将服务部署到weblogic时,尽管cxf成功生成了源代码,但我得到了以下异常:

weblogic.management.DeploymentException: Error encountered during prepare phase
of deploying WebService module 'brt-service-1.0.war'. While deploying WebService
module 'brt-service-1.0.war'.  Error encountered while attempting to Load WSDL
Definitions for WSDL: 'zip:C:/devapps/weblogicDomain/servers/myserver/tmp/_WL_us
er/_appsdir_brt-service-1.0_war/l2mgsr/war/WEB-INF/lib/_wl_cls_gen.jar!/brt.wsdl
'.  Found an un expeced Node #text with name = null and with text content =
    at weblogic.wsee.deploy.WSEEModule.prepare(WSEEModule.java:149)
    at weblogic.wsee.deploy.AppDeploymentExtensionFactory.prepare(AppDeploym
entExtensionFactory.java:79)
    at weblogic.wsee.deploy.AppDeploymentExtensionFactory.access$100(AppDepl
oymentExtensionFactory.java:15)
    at weblogic.wsee.deploy.AppDeploymentExtensionFactory$1.prepare(AppDeplo
ymentExtensionFactory.java:219)
    at weblogic.application.internal.flow.AppDeploymentExtensionFlow.prepare
(AppDeploymentExtensionFlow.java:23)
    Truncated. see log file for complete stacktrace
Caused By: weblogic.wsee.wsdl.WsdlException: Found an un expeced Node #text with
 name = null and with text content =
    at weblogic.wsee.wsdl.WsdlReader.checkDomElement(WsdlReader.java:106)
    at weblogic.wsee.wsdl.internal.WsdlExtensibleImpl.parse(WsdlExtensibleIm
pl.java:114)
    at weblogic.wsee.wsdl.internal.WsdlDefinitionsImpl.parseChild(WsdlDefini
tionsImpl.java:564)
    at weblogic.wsee.wsdl.internal.WsdlExtensibleImpl.parse(WsdlExtensibleIm
pl.java:116)
    at weblogic.wsee.wsdl.internal.WsdlDefinitionsImpl.parse(WsdlDefinitions
Impl.java:501)
    Truncated. see log file for complete stacktrace

1 个答案:

答案 0 :(得分:0)

我并不为这让我找到多久感到骄傲。简单的事情往往是最难的。

<wsdl:part name="response" element="beans:changeRequestSubmitRes"/>]

这个错误的拼写错误并没有给CXF造成问题,但Weblogic,至少在10.3.6,并不知道如何处理它。