- This topic has 10 replies, 4 voices, and was last updated 15 years, 5 months ago by Brian Fernandes.
-
AuthorPosts
-
shakeelabbasMemberhello
this stupid error has eaten my brain…….
when i am trying to generate new web service i got the following error
An internal error occurred during: “Generating JAX-WS Web Services”.
Bad version number in .class fileNOTE that it occurs in case when i am trying with jdk jdk1.6.0_12 or jdk 1.6 simply
but it works fine with jdk 1.5
i have to use jdk 1.6 but this error stop me doing so
i am stucked here ………
u can also try iam using
MyEclipse Blue Edition
Version: 7.0 Blue
Build id: 7.0-Blue-20081201plz help
one more thing i have tried this sol as well “eclipse.exe -clean”
regards
Shakeel Abbas
Loyal WaterMemberNOTE that it occurs in case when i am trying with jdk jdk1.6.0_12 or jdk 1.6 simply
but it works fine with jdk 1.5
Where are you changing the JDK to 1.6? Are you making this change at the project level?
Brian FernandesModeratorShakeel,
As Nipun asked, where are you changing the JDK version? If you are setting the project Java version to 1.6, it may be necessary to run Eclipse with the same Java version as well. You can check the Java version Eclipse is using by going to MyEclipse > Installation Summary > Installation Details, see the Java version property.
To specify a Java version explicitly, you need to start eclipse with something like “eclipse -vm c:\program files\java\jre6\bin\javaw.exe” (please correct the path to point to the javaw.exe on your machine).
Hope this helps
shakeelabbasMemberThanks Nipun , thanks Brian 🙂
i has changed the jdk from window>prefrences ……..then java…….installed jres and add a brand new JDK 1.6 u 12 ……
as Brain indicated ” run Eclipse with the same Java version as well” i have done this ….. but now a mysterious response by myeclispe ……….
now when i click on “New Web Service” and then select my project ………………. an stupid message appears along with little red cirle with a white curly cross “Project must be a JEE 5 web project”…
thanks for the help……………
shakeelabbasMemberany more clues plz 🙂
Loyal WaterMemberHave you tried running though our web service tutorials? Are you able to go through all the steps without issues?
http://www.myeclipseide.com/documentation/quickstarts/webservices_jaxws/
shakeelabbasMemberYes Nipun… i have tried this web tutorial and infact i am following this tutorial
let me explain on which step i face the problem…. according to this tutorial
the problem is at step 5 in this tutorial ..
when i click new web service> then select the project from select menu…… the same message appears as i indicated before …..”Project must be a JEE 5 web project”…
here i am stuck …. u can also try this
let me tell u one think last night during surfing i come across an topic similar to this in which it is clearly stated MYEclipse dont support java Ws webservices with jdk 1.6 ……….. is this true……??
shakeelabbasMemberyes i found it here
http://www.myeclipseide.org/index.php?name=PNphpBB2&file=viewtopic&p=78599
Brian FernandesModeratorShakeel,
Please see my clarification here: http://www.myeclipseide.org/index.php?name=PNphpBB2&file=viewtopic&p=102747#102747
Also, the instructions I provided earlier to run with Java 6 were incorrect for MyEclipse 7, please see the above link for the correct instructions.
Once you follow the above, please go to MyEclipse > Installation Summary > Installation Details, see the Java version property, does this report 1.6 or does it still say 1.5?
when i click new web service> then select the project from select menu…… the same message appears as i indicated before …..”Project must be a JEE 5 web project”…
What does the Info field on the wizard say when you select this project?
I apologize for the mis-communication, please let us know if this works for you.
Dan AlonsoMemberi notice this post is not answered… and i have the same problem..
Quote:
when i click new web service> then select the project from select menu…… the same message appears as i indicated before …..”Project must be a JEE 5 web project”…the info field says J2EE 1.4 Web Project...
there is a way to create a web service with this version?thank u.
Brian FernandesModeratorDannmx,
In MyEclipse Blue you can use JAX-RPC to create web services in J2EE 1.4 projects – to be deployed to WebSphere. I’m afraid our other web service solutions, (REST, JAX-WS, XFire) all require JEE 5.
-
AuthorPosts