Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] Maven classloader change

Hi,

> please try this m2e 1.9 build embedding Maven 3.5.1 and check if it
> breaks your projects (or not):

>
>
http://download.eclipse.org/technology/m2e/snapshots/1.9.0/maven-351/
>
> In Eclipse:

> - go to Help > Install New Software...
> - work with: http://download.eclipse.org/technology/m2e/snapshots/1.9.0/maven-351/ 
> - select the m2e features you want to install,
> - proceed with installation, restart

The build seems to work quite well with my existing installation and workspace. But opening the m2e discovery catalog dialog doesn't work:


java.lang.reflect.InvocationTargetException
        at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:398)
        at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:980)
        at org.eclipse.m2e.internal.discovery.wizards.MavenCatalogViewer.updateCatalog(MavenCatalogViewer.java:156)
        at org.eclipse.equinox.internal.p2.ui.discovery.wizards.CatalogPage$2.run(CatalogPage.java:78)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:37)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:182)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4213)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3820)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:818)
        at org.eclipse.jface.window.Window.open(Window.java:794)
        at org.eclipse.m2e.internal.discovery.MavenDiscovery.launchWizard(MavenDiscovery.java:134)
        at org.eclipse.m2e.internal.discovery.MavenDiscovery.launchWizard(MavenDiscovery.java:89)
        at org.eclipse.m2e.internal.discovery.preferences.DiscoveryPreferencePage$1.widgetSelected(DiscoveryPreferencePage.java:62)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:249)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
        at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4428)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4238)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3817)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:818)
        at org.eclipse.jface.window.Window.open(Window.java:794)
        at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:211)
        at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:63)
        at org.eclipse.jface.action.Action.runWithEvent(Action.java:473)
        at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:565)
        at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:397)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
        at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4428)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4238)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3817)
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1044)
        at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
        at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:680)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/equinox/internal/p2/core/helpers/SecureXMLUtil
        at org.eclipse.equinox.internal.p2.discovery.compatibility.DirectoryParser.parse(DirectoryParser.java:41)
        at org.eclipse.equinox.internal.p2.discovery.compatibility.RemoteBundleDiscoveryStrategy$1.process(RemoteBundleDiscoveryStrategy.java:84)
        at org.eclipse.equinox.internal.p2.discovery.compatibility.util.TransportUtil.readResource(TransportUtil.java:109)
        at org.eclipse.equinox.internal.p2.discovery.compatibility.RemoteBundleDiscoveryStrategy.performDiscovery(RemoteBundleDiscoveryStrategy.java:81)
        at org.eclipse.equinox.internal.p2.discovery.Catalog.performDiscovery(Catalog.java:85)
        at org.eclipse.m2e.internal.discovery.wizards.MavenCatalogViewer$2.run(MavenCatalogViewer.java:164)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Caused by: java.lang.ClassNotFoundException: org.eclipse.equinox.internal.p2.core.helpers.SecureXMLUtil cannot be found by org.eclipse.equinox.p2.discovery.compatibility_1.0.201.v20170906-1259
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:484)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
        at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 7 more
Root exception:
java.lang.NoClassDefFoundError: org/eclipse/equinox/internal/p2/core/helpers/SecureXMLUtil
        at org.eclipse.equinox.internal.p2.discovery.compatibility.DirectoryParser.parse(DirectoryParser.java:41)
        at org.eclipse.equinox.internal.p2.discovery.compatibility.RemoteBundleDiscoveryStrategy$1.process(RemoteBundleDiscoveryStrategy.java:84)
        at org.eclipse.equinox.internal.p2.discovery.compatibility.util.TransportUtil.readResource(TransportUtil.java:109)
        at org.eclipse.equinox.internal.p2.discovery.compatibility.RemoteBundleDiscoveryStrategy.performDiscovery(RemoteBundleDiscoveryStrategy.java:81)
        at org.eclipse.equinox.internal.p2.discovery.Catalog.performDiscovery(Catalog.java:85)
        at org.eclipse.m2e.internal.discovery.wizards.MavenCatalogViewer$2.run(MavenCatalogViewer.java:164)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Caused by: java.lang.ClassNotFoundException: org.eclipse.equinox.internal.p2.core.helpers.SecureXMLUtil cannot be found by org.eclipse.equinox.p2.discovery.compatibility_1.0.201.v20170906-1259
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:484)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
        at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 7 more


I'm using:

* Oracle JDK 1.8.0_144
* Eclipse Java EE IDE for Web Developers.
  Version: Oxygen Release (4.7.0)
  Build id: 20170620-1800

updated to the actual 4.7.1 milestone (RC4):

* Eclipse Java Development Tools 3.13.1.v20170906-1700
* Eclipse Plug-in Development Environment 3.13.1.v20170906-1700

m2e (1.9.0.20170913-1857):
* m2e - Maven Integration for Eclipse (includes Incubating components)
* m2e - slf4j over logback logging (Optional)

m2e-wtp (1.3.3.20170823-1905):
* m2e-wtp - Maven Integration for WTP
* m2e-wtp - JAX-RS configurator for WTP (Optional)
* m2e-wtp - JPA configurator for WTP (Optional)
* m2e-wtp - JSF configurator for WTP (Optional)

Additional plugins:

* m2e axistools
  1.2.0.201410211454
  de.theit.m2e.axistools.feature.feature.group
  Thorsten Heit
* m2e connector for build-helper-maven-plugin
  0.15.0.201405280027
  org.sonatype.m2e.buildhelper.feature.feature.group
  Sonatype, Inc.
* m2e connector for modello
  0.16.0.201501290317
  org.sonatype.m2e.modello.feature.feature.group
  Sonatype, Inc.
* Maven Development Tools
  0.3.0.201506181201
  com.ifedorenko.m2e.mavendev.feature.feature.group
  Igor Fedorenko
* Maven SCM Handler for EGit
  0.15.0.201610271525
  org.sonatype.m2e.egit.feature.feature.group
  Sonatype, Inc.


Regards

Thorsten

Back to the top