Home » Eclipse Projects » Remote Application Platform (RAP) » org.eclipse.ui import missing in single-sourced RAP & RCP bundle(Single-sourcing fails because of org.eclipse.ui import even with org.eclipse.rap.ui as a required bundle)
org.eclipse.ui import missing in single-sourced RAP & RCP bundle [message #908514] |
Wed, 05 September 2012 14:04 |
Jay Billings Messages: 54 Registered: July 2011 |
Member |
|
|
I'm running into a problem with an RCP bundle that I am trying to use with RAP for single-sourcing. I have included org.eclipse.rap.ui and org.eclipse.ui as optional required bundles and I am importing org.eclipse.ui. The framework can not resolve the import on org.eclipse.ui and give the following error (minus the whole stacktrace):
!ENTRY gov.ornl.nice.client.eclipse.widgets 4 0 2012-09-05 09:47:34.187
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: The bundle "gov.ornl.nice.client.eclipse.wid
gets_2.0.0 [109]" could not be resolved. Reason: Missing Constraint: Import-Pack
age: org.eclipse.ui; version="0.0.0"
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(Abs
tractBundle.java:1332)
Removing org.eclipse.ui from the imported packages list results in the same failure, but for org.eclipse.ui.dialogs, which is also included. I have attached my manifest file below, for reference.
I could remove all of the org.eclipse.ui imports from the list, but this causes my Maven+Tycho build to fail.
Any thoughts? I have a feeling that I am missing something simple given the number of single-sourcing articles out there.
Jay
----- MANIFEST.MF -----
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: NiCEEclipseWidgets
Bundle-SymbolicName: gov.ornl.nice.client.eclipse.widgets;singleton:=true
Bundle-Version: 2.0.0
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Require-Bundle: gov.ornl.nice.nicedatastructures;bundle-version="2.0.0",
gov.ornl.nice.jme3engine;bundle-version="3.0.0",
org.eclipse.ui;resolution:=optional,
org.eclipse.rap.ui;bundle-version="1.5.0";resolution:=optional
Import-Package: gov.ornl.nice.client.iniceclient,
gov.ornl.nice.client.iniceclient.uiwidgets,
org.eclipse.core.commands.common,
org.eclipse.core.resources,
org.eclipse.core.runtime;version="3.4.0",
org.eclipse.core.runtime.jobs,
org.eclipse.jface.action,
org.eclipse.jface.databinding.swt,
org.eclipse.jface.dialogs,
org.eclipse.jface.resource,
org.eclipse.jface.viewers,
org.eclipse.jface.window,
org.eclipse.swt,
org.eclipse.swt.awt,
org.eclipse.swt.browser,
org.eclipse.swt.custom,
org.eclipse.swt.dnd,
org.eclipse.swt.events,
org.eclipse.swt.graphics,
org.eclipse.swt.layout,
org.eclipse.swt.widgets,
org.eclipse.ui,
org.eclipse.ui.dialogs,
org.eclipse.ui.forms,
org.eclipse.ui.forms.editor,
org.eclipse.ui.forms.events,
org.eclipse.ui.forms.widgets,
org.eclipse.ui.ide,
org.eclipse.ui.internal.util,
org.eclipse.ui.part,
org.osgi.framework;version="1.6.0"
Export-Package: gov.ornl.nice.client.eclipse.widgets,
gov.ornl.nice.client.eclipse.widgets.geometry
Service-Component: OSGI-INF/eclipseWidgetsComponent.xml
Jay Jay Billings
Oak Ridge National Laboratory
Twitter: @jayjaybillings
|
|
| | | | |
Re: org.eclipse.ui import missing in single-sourced RAP & RCP bundle [message #908553 is a reply to message #908544] |
Wed, 05 September 2012 14:59 |
Gianluca Chiodaroli Messages: 7 Registered: September 2012 |
Junior Member |
|
|
I follow the advice in this guide: eclipsesource.com/en/eclipse/eclipse-rap-overview/
I create a plugin called platform.compatibility with this MANIFES:MF
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: platform.compatibility
Bundle-SymbolicName: platform.compatibility;singleton:=true
Bundle-Version: 1.0.0.qualifier
Eclipse-BuddyPolicy: registered
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.6.0,3.8.1]";visibility:=reexport,
org.eclipse.rap.ui;bundle-version="1.5.0";resolution:=optional;visibility:=reexport,
org.eclipse.rap.ui.forms;bundle-version="1.5.0";resolution:=optional;visibility:=reexport,
org.eclipse.rap.ui.views;bundle-version="1.5.0";resolution:=optional;visibility:=reexport,
org.eclipse.rap.ui.workbench;bundle-version="1.5.0";resolution:=optional;visibility:=reexport,
org.eclipse.rap.rwt.supplemental.filedialog;bundle-version="1.5.0";resolution:=optional;visibility:=reexport,
org.eclipse.rap.rwt.supplemental.fileupload;bundle-version="1.5.0";resolution:=optional;visibility:=reexport,
org.eclipse.rap.jface;bundle-version="1.5.0";resolution:=optional;visibility:=reexport,
org.eclipse.ui;bundle-version="3.5.2";resolution:=optional;visibility:=reexport,
org.eclipse.ui.forms;bundle-version="3.5.2";resolution:=optional;visibility:=reexport,
org.eclipse.jface.text;bundle-version="3.6.1";resolution:=optional;visibility:=reexport,
org.eclipse.jface;bundle-version="3.6.1";resolution:=optional;visibility:=reexport,
org.eclipse.ui.console;bundle-version="[3.5.0,3.6.0]";resolution:=optional;visibility:=reexport
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
and then i use it in my bundles
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: platform.ui
Bundle-SymbolicName: platform.ui;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Export-Package: xxx.uiutils
Eclipse-BuddyPolicy: registered
Require-Bundle: platform.compatibility,
objectmodel;bundle-version="1.0.0"
Bundle-Activator: xxx.Activator
Bundle-ActivationPolicy: lazy
Bundle-ClassPath: .
Hope it helps
Gianluca
|
|
| |
Goto Forum:
Current Time: Mon Jan 13 01:39:45 GMT 2025
Powered by FUDForum. Page generated in 0.04351 seconds
|