Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Eclipse Marketplace issue after installing XText 2.37.0(Eclipse Marketplace doesn't open after installing XText 2.37.0)
Eclipse Marketplace issue after installing XText 2.37.0 [message #1872956] Fri, 29 November 2024 23:39 Go to next message
Oleg Cohen is currently offline Oleg CohenFriend
Messages: 36
Registered: August 2016
Member
Greetings,

I run eclipse 2024-09 for Java Developers.

As soon as I installed XText 2.37.0 I had an issue opening Marketplace Client.

Here is the error I get:

Cannot open Eclipse Marketplace
Cannot install remote marketplace locations: ExceptionInInitializerError
java.lang.ExceptionInInitializerError
ExceptionInInitializerError
java.lang.ExceptionInInitializerError

I was able to trace the error to the following:

Caused by: java.lang.ClassCastException: The application has specified that a custom LogFactory implementation should be used but Class 'org.apache.commons.logging.impl.LogFactoryImpl' cannot be converted to 'org.apache.commons.logging.LogFactory'. The conflict is caused by the presence of multiple LogFactory classes in incompatible classloaders. Background can be found in http://commons.apache.org/logging/tech.html. If you have not explicitly specified a custom LogFactory then it is likely that the container has set one without your knowledge. In this case, consider using the commons-logging-adapters.jar file or specifying the standard LogFactory from the command line. Help can be found @http://commons.apache.org/logging/troubleshooting.html.
at org.apache.commons.logging.LogFactory.createFactory(LogFactory.java:1108)

This happens when there are conflicting commons-logging plugins. There are two:

1. 5/4/18, 10:53 AM Eclipse Orbit Apache Commons Logging 1.2.0.v20180409-1502 org.apache.commons.logging
2. 11/13/24, 3:30 AM The Apache Software Foundation Apache Commons Logging 1.3.4 org.apache.commons.commons-logging

Appears that the older version from Eclipse Orbit collides with the newer Apache one added as part of the Xtext install.
Would love to figure out how to fix the issue.

Any help/suggestions are highly appreciated!

Best,
Oleg






Re: Eclipse Marketplace issue after installing XText 2.37.0 [message #1872968 is a reply to message #1872956] Sat, 30 November 2024 07:52 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33263
Registered: July 2009
Senior Member
There was rather a long saga about this topic before the 2024-09 release:

https://github.com/eclipse-orbit/orbit-simrel/issues/40

The problem appears to be that org.apache.commons.logging:1.2.0.v20180409-1502 doesn't work while org.apache.commons.logging:1.2.0 works okay. But the former has a larger version number and will tend to be installed in favor of the latter.

Also related is this issue:

https://github.com/eclipse/mwe/issues/314

By installing the new Xtext release you installed org.apache.commons.commons-logging:1.3.4 and that combination doesn't work well. What might help/work is if you using Navigate -> Open Setup -> Installation, copy the following text, paste it onto the root object in the editor and save:
<?xml version="1.0" encoding="UTF-8"?>
<setup.p2:P2Task
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:setup.p2="http://www.eclipse.org/oomph/setup/p2/1.0">
  <requirement
      name="org.apache.commons.logging"
      versionRange="[1.2.0.v20180409-1502,1.2.0.v20180409-1502]"
      optional="true"
      max="0"/>
  <repository
      url="https://download.eclipse.org/tools/orbit/simrel/orbit-aggregation/2024-12"/>
</setup.p2:P2Task>

Then if you use Help -> Perform Setup Tasks, hopefully it succeeds, excluding the 1.2.0.v20180409-1502 version instead installing the 1.2.0 version.

Please follow up on https://github.com/eclipse-orbit/orbit-simrel/issues/40 and I can try to help further there. If it works please also let me know so that I can help other people with that problem.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Eclipse Marketplace issue after installing XText 2.37.0 [message #1872974 is a reply to message #1872968] Sun, 01 December 2024 04:28 Go to previous message
Oleg Cohen is currently offline Oleg CohenFriend
Messages: 36
Registered: August 2016
Member
Thank you Ed, this worked perfectly!
Previous Topic:Xtext 2.37.0 is released
Next Topic:Update from Eclipse DSL 2021-03 to 2024-12
Goto Forum:
  


Current Time: Thu Dec 12 08:48:07 GMT 2024

Powered by FUDForum. Page generated in 0.02653 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top