Java 1.6 enum issue com.ibm.ws.webservices.engine.enum.Style.WRAPPED

I port my application from Java 1.4 to Java 1.6 and RSA 7.0 to RSA 8.0. When I open my projects that were previously in RSA 7.0, some of the files that are generated from WSDL get the following error:

"Syntax error on token, expected class; com.ibm.ws.webservices.engine could not be resolved for type"

For the following lines:

com.ibm.ws.webservices.engine.enum.Style.WRAPPED com.ibm.ws.webservices.engine.enum.Use.LITERAL 

When we manually changed the class path as shown below, it was compiled in version 1.6:

 com.ibm.ws.webservices.engine.enumtype.Style.WRAPPED com.ibm.ws.webservices.engine.enumtype.Use.LITERAL 

I tried many options, but could not find the right solution. I also posted the problem in another forum, but have not yet found a solution.

+4
source share
2 answers

I found a solution to my question myself, although it took a lot of time, so here is the solution.

  • change com.ibm.ws.webservice.engine.enum to com.ibm.ws.webservice.engine.enumtype
  • add "com.ibm.ws.webservices.thinclient_7.0.0.jar" to your classpath and recompile the code.

You can find "com.ibm.ws.webservices.thinclient_7.0.0.jar" in the <WAS HOME>/runtimes

+4
source

Changing the package structure seems inevitable, since enum is a keyword from Java5 onwards.
I ran into a similar problem when I converted a project from Java 1.4 to 1.5

+2
source

Source: https://habr.com/ru/post/1386365/


All Articles