-
Notifications
You must be signed in to change notification settings - Fork 210
Plug-in "org.springframework.ide.eclipse.boot.wizard" was unable to instantiate class "org.springframework.ide.eclipse.boot.wizard.guides.GSImportWizard". java.lang.reflect.InvocationTargetException #202
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Which version of STS4 do you use? And where do you install the JBoss Tools from? Would like to reproduce the issue locally... :-) |
Hi @martinlippert ,
Version: 4.1.1.RELEASE Copyright (c) 2007 - 2019 Pivotal, Inc.
It will install server tool for Jboss and WildFly. |
Great, thanks for the details, I can reproduce the issue. Will investigate... :-) |
Ok, so the reason for this is: The import wizard bundle tries to create a client for javax.ws.rs via This triggers the TCCL (Thread Context Class Loader) to load that class, which is the Jersey Glassfish implementation in our case. So far, so good. BUT: Once you installed the JBoss Tools, the TCCL finds that class in a bundle called I will try to implement a workaround for this by setting the TCCL to a specific one when we create the ClientBuilder. |
…uilder creation to the correct bundle
Looks like my idea for the workaround doesn't solve the issue yet. The fundamental problem here, from my perspective, is that the oracle bundle exports various packages (among them I am not completely sure how to solve this, since the oracle bundle also seems to fully replace the individual jersey bundles that we usually use and package with STS. Will try a few other things, lets see if we can workaround this somehow. |
I think I found a solution via setting a version constraint on the jersey package import (in addition to the TCCL setting). Need to verify that this works in the setting of If you want to give it a try, it would be great, too. Please feel free to grab the latest CI build from here: https://dist.springsource.com/snapshot/STS4/nightly-distributions.html and give it a try. |
Hi ,
I am not able to import spring Getting Started Project in STS4. I am getting following exception while importing .
Note :- I am facing above exception only after installing Jboss Server plugin. Otherwise it is working fine for me .
The text was updated successfully, but these errors were encountered: