Skip to content

Duplicate com.sun.xml.bind installed screw other plugins #588

Closed

Description

@tkupka

Describe the bug
Duplicate com.sun.xml.bind installed which prevent other plugins to load Mylyn is good example.

To Reproduce
Install vanilla STS 4.9.0
install Mylyn from eclipse market place and restart
Open Task Repositories view for example
Eclipse still have original plugin com.sun.xml.bind_2.2.0.v201505121915.jar
Install Timekeeper 2 from https://resheim.net/p2/eclipse-timekeeper_beta/ and restart
It will install com.sun.xml.bind_2.3.3.v20201118-1818.jar and now eclipse has both 2.3.3 and 2.2.0 version of the plugin.
Open Task Repositories view is not working as well as Workweek from timekeeper.

The same happens if you install following plugin from Mylyn (http://download.eclipse.org/mylyn/releases/latest)
Mylyn Builds Connector: Hudson/Jenkins 1.17.0.v20200730-1155 org.eclipse.mylyn.hudson.feature.group Eclipse Mylyn
instead of timekeeper

I have tried the same with latest Eclipse and it behaves the same but all both plugins are working well.

Running on
java 15 2020-09-15
Java(TM) SE Runtime Environment (build 15+36-1562)
Java HotSpot(TM) 64-Bit Server VM (build 15+36-1562, mixed mode, sharing)

Activity

  1. martinlippert commented on Jan 18, 2021

    @martinlippert
    Member

    Thanks a lot for including the detailed steps, that helped a lot to reproduce this. Once the installation reaches a certain point, it causes a package-use conflict for the javax.xml.bind package, specifically around the bundle org.eclipse.mylyn.commons.notifications.feed, which causes the bundle to not resolve anymore.

    This can also be reproduced using the latest Eclipse SDK and the steps above instead of Spring Tools 4 for Eclipse 4.9.0, even though the problem surfaces differently on the UI. But the package-use conflict in the Mylyn bundle is still happening.

    I would suggest to report this against the Mylyn project.

    As a workaround, you could install the Spring Dashboard (optional) feature from here:
    https://download.springsource.com/snapshot/TOOLS/nightly/e4.18

    It installs an old STS3 dashboard, but that feature keeps the right bundle versions around to prevent the package-use conflict from happening. You can even install this into a "broken" install and it should make it work again.

    Hope that helps!

  2. tkupka commented on Jan 18, 2021

    @tkupka
    Author

    I tried the same steps with eclipse.buildId=4.18.0.I20201202-1800 and it's working well. I can use timekeeper2 and hudson connector.
    I have also installed spring STS plugins ( Spring Tool Suite 4 Main Feature 4.9.0.202012132054 org.springframework.boot.ide.main.feature.feature.group Pivotal, Inc.) and no problem so far.

  3. martinlippert commented on Jan 18, 2021

    @martinlippert
    Member

    @tkupka Ok, sounds good. Should we close the issue then? We could re-open again if anything additional comes up.

  4. tkupka commented on Jan 18, 2021

    @tkupka
    Author

    The Mylyn behaves in strange way STS 4.9.0 in STS. I lost my queries from JIRA multiple times. I hope it will be fixed in up-comming rel. in meantime the eclipse.buildId=4.18.0.I20201202-1800 with all STS plugins looks good.
    Let's close it

  5. dominik42 commented on Feb 15, 2021

    @dominik42

    yep, workaround works.
    May it has to be mentioned, that only the Spring Dashboard is needed from https://download.springsource.com/snapshot/TOOLS/nightly/e4.18 ... all other components could left unchecked.

  6. added this to the 4.10.0.RELEASE milestone on Mar 5, 2021
  7. self-assigned this
    on Mar 5, 2021
  8. martinlippert commented on Mar 5, 2021

    @martinlippert
    Member

    I added the workaround for this that is included in the mentioned Spring Dashboard to the main Spring Tools 4 feature that is included in the Spring Tools 4 for Eclipse distribution, so that from Spring Tools 4.10.0.RELEASE on you should be able to install those Mylyn conponents into the distribution without stumbling upon this issue anymore.

  9. ronatartifact commented on Mar 5, 2021

    @ronatartifact
  10. martinlippert commented on Mar 7, 2021

    @martinlippert
    Member

    @ronatartifact The part in the Eclipse bug complaining about the unresolved package import for javax.xml.bind looks related, but I haven't seen the xmlrpc related ones above myself. My guess would be that the root cause is the same.

  11. ronatartifact commented on Mar 7, 2021

    @ronatartifact

    My problem is very easy to reproduce and I am glad that the next version of STS will have it fixed.
    I have used STS for a long time (Springframework since 2007/8) and have been very happy with it even if I don't use everything that it does.
    Any idea about when 4.10 will be available?

  12. martinlippert commented on Mar 7, 2021

    @martinlippert
    Member

    Spring Tools for Eclipse 4.10.0 will be released shortly after Eclipse 2021-03 is released, which is planned for March 17.

    If you want to try the latest CI build: http://dist.springsource.com/snapshot/STS4/nightly-distributions.html

  13. ronatartifact commented on Mar 7, 2021

    @ronatartifact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

for: eclipsestatus: assignedtype: bugtype: install-issue

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions