This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 446080 - Remove the javax.xml.bind bundle from WTP
Summary: Remove the javax.xml.bind bundle from WTP
Status: RESOLVED FIXED
Alias: None
Product: WTP Webservices
Classification: WebTools
Component: jst.ws.jaxws (show other bugs)
Version: 3.6.1   Edit
Hardware: All All
: P3 critical (vote)
Target Milestone: 3.6.2   Edit
Assignee: Shane Clarke CLA
QA Contact: Shane Clarke CLA
URL:
Whiteboard: PMC_Approved
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-06 14:24 EDT by Konstantin Komissarchik CLA
Modified: 2014-10-31 10:44 EDT (History)
11 users (show)

See Also:
shane_clarke: pmc_approved? (david_williams)
shane_clarke: pmc_approved? (raghunathan.srinivasan)
shane_clarke: pmc_approved? (naci.dai)
shane_clarke: pmc_approved? (neil.hauge)
cbridgha: pmc_approved+
shane_clarke: pmc_approved? (kaloyan)
shane_clarke: pmc_approved? (ccc)


Attachments
javax.xml.bind dependency removal patch (14.48 KB, patch)
2014-10-23 06:00 EDT, Shane Clarke CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Komissarchik CLA 2014-10-06 14:24:16 EDT
We are seeing numerous OSGi wiring issues related to the javax.xml.bind package that started to crop up on Luna after Equinox changed wiring rules to not always prefer the version of the package that originates from the JDK.

Some of these problems can be resolved by changing what other bundles require/import, but some have no clear solutions. Equinox just fails to compute the correct wiring and some bundles don't activate. Sometimes, but not always, launching Eclipse with -clean will compute the correct wiring.

While an argument can be made that this is an Equinox problem, there hasn't been any progress on finding a solution. The changes made in Luna that caused these problems to start cropping up have been characterized as legitimate.

The simplest solution on our end to resolve all of these issues is to stop distributing the javax.xml.bind bundle as part of WTP. The javax.xml.bind package is available in Java 6, which is two Java versions ago. There unlikely to be a legitimate requirement for keeping BREE at Java 5, especially when many other plugins are already at BREE 6.

Please consider this for Luna SR2.
Comment 1 Konstantin Komissarchik CLA 2014-10-06 15:52:13 EDT
I notice that old versions of Mylyn, for instance, included javax.xml.bind bundle (a newer version than what WTP is ditributing), but they have long ago moved away from this.
Comment 2 Konstantin Komissarchik CLA 2014-10-06 16:02:55 EDT
The javax.xml.bind bundle is installed due to a dependency in org.eclipse.jst.ws.cxf.feature. feature.
Comment 3 Shane Clarke CLA 2014-10-06 16:34:10 EDT
Looking into it.
Comment 4 Neil Hauge CLA 2014-10-21 15:04:10 EDT
We are considering including a fix for this bug for an early WTP 3.6.2 release.  Konstantin, I assume you're in favor of including a fix for this in an early 3.6.2 service release?  If so, Shane, will you or someone else be able to provide a working patch for this issue in then next few days?
Comment 5 Konstantin Komissarchik CLA 2014-10-21 15:19:54 EDT
+1 to include the fix in 3.6.2
Comment 6 Shane Clarke CLA 2014-10-21 16:14:59 EDT
Neil, I'm working on it but no I'm not going to have anything ready in the next few days.

What's the cutoff for the 3.6.2 release?
Comment 7 Neil Hauge CLA 2014-10-21 16:59:42 EDT
Not sure yet, will get back to you.
Comment 8 Shane Clarke CLA 2014-10-23 06:00:06 EDT
Created attachment 248121 [details]
javax.xml.bind dependency removal patch

Managed to free up some time. Attaching a patch. It removes our dependency on javax.xml.bind. It doesn't require increasing the BREE level of the bundles.

Will be on the status call later.
Comment 9 Shane Clarke CLA 2014-10-23 17:46:35 EDT
Julio I've committed and pushed the fix to the R3_6_maintenance branch for the 3.6.2 build.
Comment 10 Konstantin Komissarchik CLA 2014-10-24 16:24:11 EDT
The javax.xml.bind bundle is still present in the following build:

http://build.eclipse.org/webtools/committers/wtp4x-R3.6.2-M/20141023000031/M-3.6.2-20141023000031/

Was this fix included in the above build? If it was, the WS fix may only be a part of what's necessary.
Comment 11 Shane Clarke CLA 2014-10-31 10:44:00 EDT
javax.xml.bind bundle confirmed removed in http://build.eclipse.org/webtools/committers/wtp4x-R3.6.2-M/20141030155022/M-3.6.2-20141030155022/