- This topic has 8 replies, 6 voices, and was last updated 13 years, 2 months ago by Brian Fernandes.
-
AuthorPosts
-
Steve OlsonMemberI have a small problem – We have some projects using jax-ws2.2.1 downloaded from the normal site. Since this is a little newer than the support that comes with MyEclipse, we see a spurious compile error on source generated by the 2.2.1 version of WSIMPORT.
Is there a way to get MyEclipse 8.6 to use jax-ws 2.2.1 for the inline compiles? If not, is 2.2.1 scheduled for the next release by any chance?
The source itself that wsimport generates is fine, as ANT scripts will build it just fine as long as the wsimport task has the xendorsed=”true” tag specified. The default JRE (1.6.0_21) has the updated jaxb-api.jar and jaxws-api.jar in lib/ext, as does the jre inside the JDK. But in eclipse, the generated service classes for each service referenced has a syntax error about a missing constructor definition. So something that myeclipse is using for the real-time inside-the-ide compiles is still using old jax-ws stuff.
I know the JRE insdie eclipse is older. 1.6.0_21 (with the updated stuff in lib/ext) is marked as the JRE for the project in question, but that doesn’t seem to help the problem. Inline compiles still don’t seem to use the jaxws-api.jar that has the new stuff needed.
This is definitely a low priority – it doesn’t stop me from debugging under Tomcat, or from doing deploys, so the only minor annoyance is the false syntax error messages in the Errors window, and the red Xs in the package explorer window.
In case it’s useful, the errors all look like this one:
“The constructor Service(URL, QName, WebServiceFeature[]) is undefined”
3 of these happen on each generated @WebServiceClient class. I believe this constructor signature is new with Jax-ws 2.2.0.
Thanks in advance for any help/info…
support-shaliniMemberskolson,
Can you try updating the libraries provided by MyEclipse? Go to Window > Preferences > MyEclipse > Project Capabilities > Web-Services > JAX-WS. Here you can choose either API Libraries or Runtime Libraries and add the new Jar files.
Please note that any changes made to the libraries here will effect all the projects using those libraries.
Let me know how that works for you.
Steve OlsonMemberThanks – I looked and there are two jars in there that don’t look like they come from the jax-ws project (maybe xfire?). But the classes inside look like they are the same endorsed packages as the spec ones. The names are webservices-api.jar and webservices-extra-api.jar. So I’m guessing I should remove these, and replace them with the jax-ws project (Metro) ones, is that correct? The API endorsed jars from the jax-ws project are jaxb-api.jar and jaxws-api.jar.
The above takes care of the API jars, but it looks like there is also a pair of runtime jars, which should probably also match. To save me some looking, do you know what the jax-ws equivalent jars are for runtime? I’m sure at least one of the is jaxws-rt.jar, but am unsure of any others. The two names in the current stuff are webservices-extra.jar and webservices-extra.jar.
Steve OlsonMemberOOPS! I tried the above, and it didn’t help, but I realized when i tried it I was on one of our older images that was still on MyEclipse 7.5. So keep that in mind about the second post (from today). The problem happens on both versions, but I haven’t tried the above fix on an 8.6 install yet.
FYI on 7.5 I tried the above change and it didn’t help. I then did a clean, no help. Just for paranoia’s sake, I then tried cycling eclipse, no help. Same spurious syntax error.
support-shaliniMemberskolson,
I shall escalate this issue to the dev team member.
They will get back to you on this
agthomasMemberI have the same issue.
(How to use jax-ws 2.2.1 with MyEclipse 8.6)
If this is addressed please share.Thanks
THomas
Moises LejterMemberHi!
I just ran into this issue, myself. Is there a recommended way to proceed?
(It would be great if, when such an issue is addressed, the answer were to be posted here – in addition to emailing the original poster…)Thank you!
Moises
support-swapnaModeratormoilejter ,
Sorry for the delay. I have escalated this one to a dev team member. They will get back to you.
Sorry for the inconvenience caused.
Brian FernandesModeratorMoises,
Official support for JAX-WS 2.1 has been pushed to the 10.1 release.
In the interim, to libraries to be replaced are at Window > Preferences > MyEclipse > Project Capabilities > Web Services > JAX-WS.
These are libraries directly from the JAX-WS reference implementation (you might notice XFire in the path but that is only the name of the bundle housing the libraries, ignore it).
If you could update these libraries with the latest versions and please let me know exactly what is going wrong with your environment, I can help further. If you see any errors in the problems view, please paste them here.
-
AuthorPosts