Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » tycho build of e(fx)clipse product failed due to missing requirements
tycho build of e(fx)clipse product failed due to missing requirements [message #1746757] Fri, 04 November 2016 09:55 Go to next message
Uwe Tron is currently offline Uwe TronFriend
Messages: 3
Registered: November 2016
Junior Member
Hello,

I am struggling with building an e(fx)clipse product via Maven / Tycho.

Building bundles, features, update site and target all went fine (showed at least no warning or error) but failed when installing the product due to missing requirements. I have no idea where to add more informatioen to resolve this problem and would appreciate any hint you can give me. The following shows the error message from the build process

Installing my.app 1.0.0.201611040920.
Installation failed.
Cannot complete the install because one or more required items could not be found.
 Software being installed: MyApp 1.0.0.201611040920 (my.app 1.0.0.201611040920)
 Missing requirement: toolingwin32.win32.x86_64org.eclipse.equinox.common 1.0.0.201611040920 requires 'bundle org.eclipse.equinox.common 3.8.0.v20160509-1230' but it could not be found
 Cannot satisfy dependency:
  From: MyApp 1.0.0.201611040920 (my.app 1.0.0.201611040920)
  To: toolingmy.app.configuration [1.0.0.201611040920]
 Cannot satisfy dependency:
  From: toolingmy.app.configuration 1.0.0.201611040920
  To: toolingwin32.win32.x86_64org.eclipse.equinox.common [1.0.0.201611040920]


I am running Eclipse 4.6, e(fx)clipse 2.4, Maven 3.3.9, Tycho 0.25.0. Target definition is done. Executing this application within eclipse works as expected.
Tycho is configured using POM less builds for bundles.

Thank you and best regards
Uwe
Re: tycho build of e(fx)clipse product failed due to missing requirements [message #1746779 is a reply to message #1746757] Fri, 04 November 2016 13:30 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
I'm a bit confused about the error message. What is toolingwin32.win32.x86_64org.eclipse.equinox.common in version 1.0.0?
Re: tycho build of e(fx)clipse product failed due to missing requirements [message #1746789 is a reply to message #1746779] Fri, 04 November 2016 15:41 Go to previous messageGo to next message
Uwe Tron is currently offline Uwe TronFriend
Messages: 3
Registered: November 2016
Junior Member
Indeed it is curious. But that 's the way it shows up in the Eclipse console. I assume there should be a blank after tooling.
Re: tycho build of e(fx)clipse product failed due to missing requirements [message #1746840 is a reply to message #1746789] Sat, 05 November 2016 14:40 Go to previous messageGo to next message
Uwe Tron is currently offline Uwe TronFriend
Messages: 3
Registered: November 2016
Junior Member
Based on your raised question I did some more quick research and found out, that these names starting with "tooling" come from p2content.xml which has been created during build process.

Here is an excerpt of 'MyApp/releng/my.app.product/target/p2content.xml':
<?xml version='1.0' encoding='UTF-8'?>
<units size='45'>
  <unit id='toolingmy.app.configuration' version='1.0.0.201611051409'>
    <provides size='1'>
      <provided namespace='org.eclipse.equinox.p2.iu' name='toolingmy.app.configuration' version='1.0.0.201611051409'/>
    </provides>
    <requires size='24'>
      <required namespace='org.eclipse.equinox.p2.iu' name='toolingmy.app.config.gtk.linux.x86_64' range='[1.0.0.201611051409,1.0.0.201611051409]'>
        <filter>
          (&amp;(osgi.arch=x86_64)(osgi.os=linux)(osgi.ws=gtk))
        </filter>
      </required>
      <required namespace='org.eclipse.equinox.p2.iu' name='toolingcocoa.macosx.x86_64org.eclipse.osgi' range='[1.0.0.201611051409,1.0.0.201611051409]'>
        <filter>
          (&amp;(osgi.arch=x86_64)(osgi.os=macosx)(osgi.ws=cocoa))
        </filter>
      </required>

... lines deleted ...

</units>


Where does this come from?

[Updated on: Sat, 05 November 2016 14:53]

Report message to a moderator

Re: tycho build of e(fx)clipse product failed due to missing requirements [message #1750488 is a reply to message #1746840] Wed, 21 December 2016 16:23 Go to previous messageGo to next message
Stephan Druskat is currently offline Stephan DruskatFriend
Messages: 104
Registered: October 2011
Location: Berlin, Germany
Senior Member

I'm getting the same error!

p2content.xml includes the string "tooling" directly in front of unit ids, which breaks the build. Strangely enough, I had been able to build the same branch without problems earlier today.

Tycho 0.26.0
Neon Update site

Error messages:
[INFO] --- tycho-p2-director-plugin:0.26.0:materialize-products (materialize-products) @ repository ---
[INFO] Installing product com.myapp.product for environment linux/gtk/x86 to /home/user/repository/target/products/com.myapp.product/linux/gtk/x86/myapp
Installing com.myapp.product 0.3.0.201612211624.
Installation failed.
Cannot complete the install because one or more required items could not be found.
 Software being installed: myapp 0.3.0.201612211624 (com.myapp.product 0.3.0.201612211624)
 Missing requirement: toolingorg.eclipse.equinox.launcher 1.3.201.v20161025-1711 requires 'bundle org.eclipse.equinox.launcher 1.3.201.v20161025-1711' but it could not be found
 Cannot satisfy dependency:
  From: myapp 0.3.0.201612211624 (com.myapp.product 0.3.0.201612211624)
  To: toolingcom.myapp.product.application [0.3.0.201612211624]
 Cannot satisfy dependency:
  From: toolingcom.myapp.product.application 0.3.0.201612211624
  To: toolingorg.eclipse.equinox.launcher [1.3.201.v20161025-1711]
Application failed, log file location: /tmp/tycho4664114712552945170equinox/config/1482337425753.log


Also, the log file doesn't exist. Sounds like a bug in the p2-director-plugin?

[Updated on: Wed, 21 December 2016 16:26]

Report message to a moderator

Re: tycho build of e(fx)clipse product failed due to missing requirements [message #1751124 is a reply to message #1750488] Wed, 04 January 2017 16:03 Go to previous messageGo to next message
Thomas Fletcher is currently offline Thomas FletcherFriend
Messages: 2
Registered: September 2013
Junior Member
We are getting the same error here on our product builds that have been running smoothly since we switched to Tycho in August 2017, it just suddenly stopped working sometime between 5AM and 10AM on Wednesday December 21, 2016.

This implies to me that something in the hosted infrastructure changed. If we revert to Tycho 0.22 then we can build again, but resulting Mac and Linux executables when run fail with an error "The Storyboard executable launcher was unable to locate its companion shared library.".

I am eager and happy to work with anyone to resolve this issues as we are currently a bit stuck. Our builds were targeting released Neon if that helps matters.

Thomas
Re: tycho build of e(fx)clipse product failed due to missing requirements [message #1751139 is a reply to message #1751124] Wed, 04 January 2017 20:27 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Are your builds running against efxclipse nightly builds? IIRC at that time Neon.2 has been released and we package that into our builds!
Previous Topic:Is it possible to drag a window/view out of workbench if the application is written in JavaFX?
Next Topic:JavaFX in Eclipse plugin hang on Fedora25
Goto Forum:
  


Current Time: Fri Apr 26 07:55:55 GMT 2024

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

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

Back to the top