简体   繁体   English

WSDL生成文件中的ANT构建抛出错误

[英]ANT build throwing errors in WSDL generated file

I am using ANT to build my project. 我正在使用ANT来构建我的项目。 And it seems to be throwing the following errors in the files which were autogenerated from WSDL. 从WSDL自动生成的文件中似乎抛出了以下错误。

[javac] C:\Documents and Settings\Administrator\IBM\rationalsdp\workspace\BH\CPEr16Portal\source\com\ibm\cpe\bhwebservices\mdm\CPE6SOAP_HTTP_BindingStub.java:316: setUse(com.ibm.ws.webservices.engine.enum.Use) in com.ibm.ws.webservices.engine.description.OperationDesc cannot be applied to (com.ibm.ws.webservices.engine.enumtype.Use)
[javac]         _createUpdateContactPersonOperation0.setUse(com.ibm.ws.webservices.engine.enumtype.Use.LITERAL);
[javac]                                             ^
[javac] C:\Documents and Settings\Administrator\IBM\rationalsdp\workspace\BH\CPEr16Portal\source\com\ibm\cpe\bhwebservices\mdm\CPE6SOAP_HTTP_BindingStub.java:317: setStyle(com.ibm.ws.webservices.engine.enum.Style) in com.ibm.ws.webservices.engine.description.OperationDesc cannot be applied to (com.ibm.ws.webservices.engine.enumtype.Style)
[javac]         _createUpdateContactPersonOperation0.setStyle(com.ibm.ws.webservices.engine.enumtype.Style.DOCUMENT);
[javac]                                             ^
[javac] C:\Documents and Settings\Administrator\IBM\rationalsdp\workspace\BH\CPEr16Portal\source\com\ibm\cpe\bhwebservices\mdm\CPE6SOAP_HTTP_BindingStub.java:331: cannot find symbol
[javac] symbol  : variable SEND_TYPE_ATTR_PROPERTY
[javac] location: class com.ibm.wsspi.webservices.Constants
[javac]             mc.setProperty(com.ibm.wsspi.webservices.Constants.SEND_TYPE_ATTR_PROPERTY, Boolean.FALSE);
[javac]                                                               ^
[javac] C:\Documents and Settings\Administrator\IBM\rationalsdp\workspace\BH\CPEr16Portal\source\com\ibm\cpe\bhwebservices\mdm\CPE6SOAP_HTTP_BindingStub.java:332: cannot find symbol
[javac] symbol  : variable ENGINE_DO_MULTI_REFS_PROPERTY
[javac] location: class com.ibm.wsspi.webservices.Constants
[javac]             mc.setProperty(com.ibm.wsspi.webservices.Constants.ENGINE_DO_MULTI_REFS_PROPERTY, Boolean.FALSE);
[javac]                                                               ^
[javac] C:\Documents and Settings\Administrator\IBM\rationalsdp\workspace\BH\CPEr16Portal\source\com\ibm\cpe\bhwebservices\mdm\CPE6SOAP_HTTP_ServiceInformation.java:58: setStyle(com.ibm.ws.webservices.engine.enum.Style) in com.ibm.ws.webservices.engine.description.OperationDesc cannot be applied to (com.ibm.ws.webservices.engine.enumtype.Style)
[javac]         createUpdateContactPerson0Op.setStyle(com.ibm.ws.webservices.engine.enumtype.Style.DOCUMENT);
[javac]                                     ^
[javac] Note: * uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 5 errors

Clearly when the error shows cannot find symbol it means that it can not find the corresponding java class.. But however These do not throw errors in RAD. 显然,当错误显示找不到符号时,意味着它找不到相应的Java类。但是,这些不会在RAD中引发错误。 And the necessary java file WAS6.1 thinclient.jar is present in the build path. 构建路径中存在必需的Java文件WAS6.1 thinclient.jar。 So I am confused as to why the build is failing? 所以我对为什么构建失败感到困惑?

Can someone please guide me if I am missing something and if anything needs to be added in the ANT build file to get it to build correctly. 如果我缺少某些内容,并且需要在ANT构建文件中添加任何内容以使其正确构建,请有人指导我。

Regards Snehan Solomon 问候Snehan所罗门

There were some older version of jars in the ANT build path that were causing the build the fail, removing them fixed the issue, ANT构建路径中有一些较旧版本的jar,导致构建失败,将其删除可解决此问题,

Thanks Mike. 谢谢迈克。

Regards Snehan Solomon 问候Snehan所罗门

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM