java 1.6 枚举问题 com.ibm.ws.webservices.engine.enum.Style.WRAPPED
我正在将应用程序从 Java 1.4 迁移到 Java 1.6,并将 RSA 7.0 迁移到 RSA 8.0 当我打开以前在 RSA 7.0 中的项目时,一些从 WSDL 生成的文件出现以下错误:
“令牌语法错误,预期类; com.ibm.ws.webservices.engine 无法解析为类型”
对于以下几行:
com.ibm.ws.webservices.engine.enum.Style.WRAPPED
com.ibm.ws.webservices.engine.enum.Use.LITERAL
当我们手动更改类路径(如下所示)时,它在 1.6 中编译:
com.ibm.ws.webservices.engine.enumtype.Style.WRAPPED
com.ibm.ws.webservices.engine.enumtype.Use.LITERAL
我尝试了很多选项,但找不到正确的解决方案。我也在其他论坛上发布了该问题,但到目前为止似乎还没有解决方案。
I am migrating my application from Java 1.4 to Java 1.6 and RSA 7.0 to RSA 8.0
When I am opening my projects which used to be in RSA 7.0, some of the files which are generated from WSDL, getting the following error:
“Syntax error on token , class expected ;
com.ibm.ws.webservices.engine cannot be resolved to a type”
For the below lines:
com.ibm.ws.webservices.engine.enum.Style.WRAPPED
com.ibm.ws.webservices.engine.enum.Use.LITERAL
When we manually changed the class path like below it compiled in 1.6:
com.ibm.ws.webservices.engine.enumtype.Style.WRAPPED
com.ibm.ws.webservices.engine.enumtype.Use.LITERAL
I have tried many option but couldn't find the proper solution. I have also posted the problem in other forum but looks like no solution so far.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我自己找到了我的问题的解决方案,尽管花了很长时间,所以这里是解决方案。
com.ibm.ws.webservice.engine.enum
更改为com.ibm.ws.webservice.engine.enumtype
"com.ibm.ws.webservices .thinclient_7.0.0.jar”
到您的类路径并重新编译代码。您可以在
/runtimes
文件夹中找到“com.ibm.ws.webservices.thinclient_7.0.0.jar”I have found the solution to my question by myself, though it took long time, so here is the solution.
com.ibm.ws.webservice.engine.enum
tocom.ibm.ws.webservice.engine.enumtype
"com.ibm.ws.webservices.thinclient_7.0.0.jar"
to your classpath and recompile the code.You can find the "com.ibm.ws.webservices.thinclient_7.0.0.jar" in your
<WAS HOME>/runtimes
folder更改包结构似乎是不可避免的,因为 enum 是从 Java5 开始的关键字。
当我将项目从 Java 1.4 转换为 1.5 时,我遇到了类似的问题
Changing the package structure seems inevitable since enum is a keyword from Java5 onwards.
I have faced a similar issue when I converted a project from Java 1.4 to 1.5