Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » RCP+JNLP x64: bundle org.eclipse.core.runtime not resolved(Reason: Missing Constraint: Require-Bundle: org.eclipse.equinox.common; bundle-version="[3.5.0,4.0.0)")
RCP+JNLP x64: bundle org.eclipse.core.runtime not resolved [message #1053302] Fri, 03 May 2013 17:33 Go to next message
Alexandre Torres is currently offline Alexandre Torres
Messages: 139
Registered: July 2009
Senior Member
I can't get rid for this error running on win32/ x64:
eclipse.buildId=unknown
java.version=1.7.0_21
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=fr_FR

!ENTRY org.eclipse.core.runtime 4 0 2013-05-03 13:37:03.057
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: The bundle "org.eclipse.core.runtime_3.7.0.v20110110 [595]" could not be resolved. Reason: Missing Constraint: Require-Bundle: org.eclipse.equinox.common; bundle-version="[3.5.0,4.0.0)"
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1327)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1311)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:323)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
	at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1130)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)


So I was trying to make my working RCP + JNLP app to support X64. First I downloaded the delta pack, following the tutorial and installed all the runtime stuff according the tutorial.
Then I checked the multiple platforms, but the deploy did not include the specific jars, so I did this by hand, carefully selecting what jars are for each platform, adding the following for x64

"org.eclipse.core.filesystem.win32.x86_64",
"org.eclipse.equinox.security.win32.x86_64", "org.eclipse.swt.win32.win32.x86_64"


So I deployed the stuff (by the way, it takes ages to assemble) in my apache...
It still works fine for x86, but gives me that error on x86_64.

I noticied a plugin with a different version in the deploy. I suspect it may be causing the error, but I have no idea where to find the exact same version I use (IF this is the cause)

org.eclipse.equinox.security.win32.x86_1.0.200.v20100503
org.eclipse.equinox.security.win32.x86_64_1.0.0.v20110502

Both plugins folders have the same number of jars, comparing the features.xml/jnlp every single jar from one version is in the other (except for the noted one above).
And I'm clueless... Sad
Any Idea?

Thanks in advance.


  • Attachment: feature.xml
    (Size: 12.24KB, Downloaded 68 times)
Re: RCP+JNLP x64: bundle org.eclipse.core.runtime not resolved [message #1053312 is a reply to message #1053302] Fri, 03 May 2013 19:42 Go to previous messageGo to next message
Alexandre Torres is currently offline Alexandre Torres
Messages: 139
Registered: July 2009
Senior Member
I removed the org.eclipse.equinox.security.win32 dependecy.... and the error still happens.
Then I tryed something different, I chnged the auto generated jnlp inside features. It was strange because there are several jars listed as x86 that should be platform agnostic. Then I just moved everybody to the <resource>:
	<resources>
		<jar href="plugins/org.eclipse.osgi_3.7.0.v20110613.jar"/>
		<jar href="plugins/org.eclipse.core.filebuffers_3.5.200.v20110505-0800.jar"/>
		<jar href="plugins/org.eclipse.jface.databinding_1.5.0.I20100907-0800.jar"/>
		<jar href="plugins/org.eclipse.jface.text_3.7.0.v20110505-0800.jar"/>
		<jar href="plugins/org.eclipse.equinox.p2.engine_2.1.0.v20110511.jar"/>
		<jar href="plugins/org.eclipse.gef_3.7.0.v20110407-2050.jar"/>
		<jar href="plugins/org.eclipse.core.databinding.observable_1.4.0.I20110222-0800.jar"/>
		<jar href="plugins/org.eclipse.emf.mapping.ecore2xml_2.7.0.v20120130-0943.jar"/>
		<jar href="plugins/org.eclipse.core.runtime_3.7.0.v20110110.jar"/>
		<jar href="plugins/org.eclipse.emf.common.ui_2.7.0.v20120130-0943.jar"/>
		<jar href="plugins/br.ufrgs.inf.synuml.guide_1.0.0.201305031436.jar"/>
		<jar href="plugins/org.eclipse.ui_3.7.0.I20110602-0100.jar"/>
		<jar href="plugins/org.eclipse.core.databinding_1.4.0.I20110111-0800.jar"/>
		<jar href="plugins/org.eclipse.core.expressions_3.4.300.v20110228.jar"/>
		<jar href="plugins/org.eclipse.ui.editors_3.7.0.v20110517-0800.jar"/>
		<jar href="plugins/org.eclipse.equinox.app_1.3.100.v20110321.jar"/>
		<jar href="plugins/org.eclipse.equinox.security_1.1.0.v20110502.jar"/>
		<jar href="plugins/br.ufrgs.inf.synuml.model_1.0.0.201305031436.jar"/>
		<jar href="plugins/org.eclipse.equinox.preferences_3.4.0.v20110502.jar"/>
		<jar href="plugins/org.eclipse.draw2d_3.7.0.v20110425-2050.jar"/>
		<jar href="plugins/org.eclipse.emf.ecore.edit_2.7.1.v20120130-0943.jar"/>
		<jar href="plugins/org.eclipse.ui.ide_3.7.0.I20110519-0100.jar"/>
		<jar href="plugins/org.eclipse.jface_3.7.0.I20110522-1430.jar"/>
		<jar href="plugins/org.eclipse.ocl.uml_3.1.0.v20110606-1427.jar"/>
		<jar href="plugins/org.eclipse.swt_3.7.0.v3735b.jar"/>
		<jar href="plugins/org.eclipse.core.runtime.compatibility.registry_3.5.0.v20110505.jar"/>
		<jar href="plugins/org.eclipse.uml2.uml_3.2.0.v201105231350.jar"/>
		<jar href="plugins/org.eclipse.core.commands_3.6.0.I20110111-0800.jar"/>
		<jar href="plugins/org.eclipse.text_3.5.100.v20110505-0800.jar"/>
		<jar href="plugins/org.eclipse.emf.edit.ui_2.7.0.v20120130-0943.jar"/>
		<jar href="plugins/org.eclipse.emf.edit_2.7.2.v20120130-0943.jar"/>
		<jar href="plugins/org.eclipse.core.filesystem_1.3.100.v20110423-0524.jar"/>
		<jar href="plugins/org.eclipse.help_3.5.100.v20110426.jar"/>
		<jar href="plugins/lpg.runtime.java_2.0.17.v201004271640.jar"/>
		<jar href="plugins/org.eclipse.ui.views_3.6.0.I20110412-0800.jar"/>
		<jar href="plugins/org.eclipse.uml2.common.edit_1.5.0.v201005031530.jar"/>
		<jar href="plugins/org.eclipse.core.resources_3.7.100.v20110510-0712.jar"/>
		<jar href="plugins/org.eclipse.emf.ecore_2.7.0.v20120127-1122.jar"/>
		<jar href="plugins/org.eclipse.equinox.common_3.6.0.v20110523.jar"/>
		<jar href="plugins/org.eclipse.equinox.registry_3.5.100.v20110502.jar"/>
		<jar href="plugins/org.eclipse.compare.core_3.5.200.I20110208-0800.jar"/>
		<jar href="plugins/com.ibm.icu_4.4.2.v20110208.jar"/>
		<jar href="plugins/org.eclipse.equinox.p2.metadata.repository_1.2.0.v20110511-1359.jar"/>
		<jar href="plugins/javax.transaction_1.1.1.v201105210645.jar"/>
		<jar href="plugins/org.eclipse.core.contenttype_3.4.100.v20110423-0524.jar"/>
		<jar href="plugins/br.ufrgs.inf.synuml_1.0.0.201305031436.jar"/>
		<jar href="plugins/org.eclipse.emf.ecore.change_2.7.1.v20120127-1122.jar"/>
		<jar href="plugins/org.eclipse.ocl_3.1.0.v20110606-1427.jar"/>
		<jar href="plugins/org.eclipse.ui.win32_3.2.200.v20110928-1505.jar"/>
		<jar href="plugins/org.eclipse.core.databinding.property_1.4.0.I20110222-0800.jar"/>
		<jar href="plugins/org.eclipse.equinox.p2.core_2.1.0.v20110502-1955.jar"/>	
		<jar href="plugins/org.eclipse.emf_2.6.0.v20120130-0943.jar"/>
		<jar href="plugins/org.eclipse.ui.workbench.texteditor_3.7.0.v20110505-0800.jar"/>
		<jar href="plugins/org.eclipse.emf.ecore.xmi_2.7.0.v20120127-1122.jar"/>
		<jar href="plugins/org.eclipse.uml2.uml.resources_3.1.100.v201008191510.jar"/>
		<jar href="plugins/org.eclipse.ui.workbench_3.7.0.I20110519-0100.jar"/>
		<jar href="plugins/org.eclipse.emf.common_2.7.0.v20120127-1122.jar"/>
		<jar href="plugins/org.eclipse.equinox.p2.metadata_2.1.0.v20110510.jar"/>
		<jar href="plugins/org.eclipse.uml2.uml.edit_3.1.100.v201009281840.jar"/>
		<jar href="plugins/org.eclipse.uml2.common_1.6.0.v201105021727.jar"/>
		<jar href="plugins/org.eclipse.uml2_3.2.0.v201101271655.jar"/>
		<jar href="plugins/org.eclipse.uml2.uml.editor_3.1.100.v201009281840.jar"/>
		<jar href="plugins/org.eclipse.equinox.p2.repository_2.1.0.v20110601.jar"/>
		<jar href="plugins/org.eclipse.core.jobs_3.5.100.v20110404.jar"/>
		<jar href="plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar"/>
	</resources>	
	<resources arch="x86">
		<jar href="plugins/org.eclipse.swt.win32.win32.x86_3.7.2.v3740f.jar"/>
		<jar href="plugins/org.eclipse.core.filesystem.win32.x86_1.1.300.v20110423-0524.jar"/>
	</resources>
	<resources arch="x86_64">
		<jar href="plugins/org.eclipse.core.filesystem.win32.x86_64_1.1.300.v20110423-0524.jar"/>
		<jar href="plugins/org.eclipse.swt.win32.win32.x86_64_3.7.2.v3740f.jar"/>
	</resources>


This changed the error to
java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError

again, ONLY with x86_64

so I moved everything to each resource... and now it does not even open with 64... no logs either. But works fine on x86.
Do I need a different equinox ?

EDIT
---------
If I remove all references to x86 jars and copy everything to resources, it works on x86_64... and ONLY in x86_64 ... just a sanity check. I want it to work on both platforms. I can work around to have two links to start the app, but I can't expect the user to know its own platform.
I guess it may not be recognizing x86_64 as x86_64... do I need to inform it as win32 as well ?

...
<resources>
		<jar href="plugins/org.eclipse.swt.win32.win32.x86_64_3.7.2.v3740f.jar"/>
	    <jar href="plugins/org.eclipse.core.filesystem.win32.x86_64_1.1.300.v20110423-0524.jar"/>
		<jar href="plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar"/>
		<jar href="plugins/org.eclipse.osgi_3.7.0.v20110613.jar"/>
		<jar href="plugins/org.eclipse.core.filebuffers_3.5.200.v20110505-0800.jar"/>
		<jar href="plugins/org.eclipse.jface.databinding_1.5.0.I20100907-0800.jar"/>
		...
	</resources>	
...


[Updated on: Fri, 03 May 2013 20:43]

Report message to a moderator

Re: RCP+JNLP x64: bundle org.eclipse.core.runtime not resolved [message #1053321 is a reply to message #1053312] Fri, 03 May 2013 21:08 Go to previous message
Alexandre Torres is currently offline Alexandre Torres
Messages: 139
Registered: July 2009
Senior Member
Bingo! solved!
It has nothing to do with eclipse RCP after all Smile
it is just that the arch was not x86_64 but amd64 !
I added
<resources arch="amd64">
<jar href="plugins/org.eclipse.swt.win32.win32.x86_64_3.7.2.v3740f.jar"/>
<jar href="plugins/org.eclipse.core.filesystem.win32.x86_64_1.1.300.v20110423-0524.jar"/>
</resources>

and everything works now.
Still can't understand why the generated jnlp separated most jars in the x86 section, what gave the original error message. I still can't use the generated jnlp, but at least it runs now!
Previous Topic:Problem in ClassLoading
Next Topic:e4: add view with secondary ID
Goto Forum:
  


Current Time: Wed Sep 24 04:47:28 GMT 2014

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

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