wsdl2java JDK 1.5 enum error [message #159135] |
Mon, 06 February 2006 08:59 |
Eclipse User |
|
|
|
I have seen quite a bit of discussion regarding this issue but have not
seen an exact solution that seems to work. The issues is...
I recently upgraded to Java 1.5 JDK, when I did all of my Web Service
clients that were generated from a wsdl file instantly contained an error.
The error was related to any references of the new Java key word "enum".
This included all the axis.enum references that were generated. I was
previously running Eclipse 3.1 w/ j2sdk1.4.2_08. I had Axis version
axis1_1. According to what I read, which made sense, Axis was using the
new key word "enum" in its package names and now there was a conflict.
Also, according to the information that I read it stated that if I
upgraded to Axis version axis1_3 that this issue would go away. So, I
upgraded the server to axis1_3 and this is my result.
I took my old clients that I had generated and changed all the references
from "axis.enum" to be "axis.constants", I had read that this was a
suitable solution to resolve this error with existing clients. I did
this, the error messages went away, and when I ran a test they seemed to
work fine.
I then tried another test, I generated a new client from an existing WSDL
file, I had expected with the axis upgrade that this would resolve the
"axis.enum" issue but it didn't. It still generates the "axis.enum"
package name and I still get the same error.
I have two questions:
1) Based upon the upgrades to Axis 1_3 and the JDK 1.5, how can I generate
a web service client from a wsdl without having to manually change the
package name from "axis.enum" to "axis.constants"?
2) Changing the axis package name from "axis.enum" to "axis.constants", is
there any issues with doing this? Has anyone seen any errors doing this?
Some more background about the upgrade:
- I changed the preferences Java->Installed JREs to JDK1.5.0_04
- I changed the perferences Java->Compiler to Compiler Compliance Level 5.0
- Project properties->Java Build Path->Libraries I changed to point to the
new Axis 1_3 jar files
Thanks for your help,
Ben
|
|
|
Powered by
FUDForum. Page generated in 0.04932 seconds