Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Problem creating a product
Problem creating a product [message #512147] Thu, 04 February 2010 02:56 Go to next message
Luca Ferrari is currently offline Luca Ferrari
Messages: 159
Registered: November 2009
Senior Member
Hi,
when I try to export a product with the prduct wizard I've got the following error:

   Missing requirement for filter (& (osgi.ws=gtk) (osgi.os=linux) (osgi.arch=x86_64)): Human Resource Planning Management - RCP Product 0.1.0 (hrpm.product 0.1.0) requires 'hrpm.product_root.gtk.linux.x86_64 [0.1.0]' but it could not be found



Now looking into the dependencies tab of the product configuration I don't have such bundle, but i've got the swt-gtk and osgi ones. Moreover the missing bundle has the same name of my product, what am I doing wrong?

Thanks
Re: Problem creating a product [message #512170 is a reply to message #512147] Thu, 04 February 2010 04:58 Go to previous messageGo to next message
Luca Ferrari is currently offline Luca Ferrari
Messages: 159
Registered: November 2009
Senior Member
I've created a new configuration from scratch and it works, but I cannot see the important differences and how the first one is no more working.

The following is the one that does not work:

<?xml version="1.0" encoding="UTF-8"?>                                                                                                                
<?pde version="3.5"?>                                                                                                                                 

<product name="Human Resource Planning Management - RCP Product" uid="hrpm.product" id="HRPM_RCP_git.product" application="HRPM_RCP_git.application" version="0.1" useFeatures="false" includeLaunchers="true">                                                                                             

   <aboutInfo>
      <image path="/HRPM-RCP-git/img/logo.png"/>
   </aboutInfo>                                 

   <configIni use="default">
   </configIni>             

   <launcherArgs>
      <programArgs>-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog -clean</programArgs>
      <vmArgs>-Dosgi.requiredJavaVersion=1.5 -XX:MaxPermSize=256m -Xms40m -Xmx512m</vmArgs>                                
      <vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>                             
   </launcherArgs>                                                                                                         

   <windowImages/>


   <launcher name="HRPM.exe">
      <linux icon="/HRPM-RCP-git/img/icon.xpm"/>
      <solaris/>                                
      <win useIco="false">                      
         <bmp                                   
            winSmallHigh="/HRPM-RCP-git/img/icon16_32.bmp"
            winMediumHigh="/HRPM-RCP-git/img/icon32_32.bmp"
            winLargeHigh="/HRPM-RCP-git/img/icon48_32.bmp"/>
      </win>                                                
   </launcher>                                              


   <vm>
      <linux>org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/OSGi%Minimum-1.0</linux>
      <windows>org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/OSGi%Minimum-1.0</windows>
   </vm>                                                                                                                                   


   <plugins>
      <plugin id="HRPM_RCP_git"/>
      <plugin id="com.ibm.icu"/> 
      <plugin id="javax.servlet"/>
      <plugin id="org.eclipse.core.commands"/>
      <plugin id="org.eclipse.core.contenttype"/>
      <plugin id="org.eclipse.core.databinding"/>
      <plugin id="org.eclipse.core.databinding.beans"/>
      <plugin id="org.eclipse.core.databinding.observable"/>
      <plugin id="org.eclipse.core.databinding.property"/>  
      <plugin id="org.eclipse.core.expressions"/>           
      <plugin id="org.eclipse.core.jobs"/>                  
      <plugin id="org.eclipse.core.runtime"/>               
      <plugin id="org.eclipse.core.runtime.compatibility.auth"/>
      <plugin id="org.eclipse.core.runtime.compatibility.registry" fragment="true"/>
      <plugin id="org.eclipse.equinox.app"/>
      <plugin id="org.eclipse.equinox.common"/>
      <plugin id="org.eclipse.equinox.preferences"/>
      <plugin id="org.eclipse.equinox.registry"/>
      <plugin id="org.eclipse.equinox.weaving.hook" fragment="true"/>
      <plugin id="org.eclipse.help"/>
      <plugin id="org.eclipse.jface"/>
      <plugin id="org.eclipse.jface.databinding"/>
      <plugin id="org.eclipse.osgi"/>
      <plugin id="org.eclipse.osgi.services"/>
      <plugin id="org.eclipse.swt"/>
      <plugin id="org.eclipse.swt.gtk.linux.x86_64" fragment="true"/>
      <plugin id="org.eclipse.ui"/>
      <plugin id="org.eclipse.ui.forms"/>
      <plugin id="org.eclipse.ui.workbench"/>
   </plugins>

   <configurations>
      <plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="0" />
      <plugin id="org.eclipse.equinox.common" autoStart="true" startLevel="2" />
      <plugin id="org.eclipse.osgi" autoStart="true" startLevel="-1" />
   </configurations>

</product>




and the following is the code of the product configuration that works (i.e., it is exported without any error):

<?xml version="1.0" encoding="UTF-8"?>                                                     
<?pde version="3.5"?>                                                                      

<product name="Human Resource Planning Management - RCP Product" uid="hrpm.product" id="HRPM_RCP_git.product1" application="HRPM_RCP_git.application" version="0.2" useFeatures="false" includeLaunchers="true">                                                                                            

   <configIni use="default">
   </configIni>             

   <launcherArgs>
      <programArgs>-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog -clean</programArgs>
      <vmArgs>-Dosgi.requiredJavaVersion=1.5 -XX:MaxPermSize=256m -Xms40m -Xmx512m</vmArgs>                                
      <vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>                             
   </launcherArgs>                                                                                                         

   <plugins>
      <plugin id="HRPM_RCP_git"/>
      <plugin id="com.ibm.icu"/> 
      <plugin id="javax.servlet"/>
      <plugin id="org.eclipse.core.commands"/>
      <plugin id="org.eclipse.core.contenttype"/>
      <plugin id="org.eclipse.core.databinding"/>
      <plugin id="org.eclipse.core.databinding.beans"/>
      <plugin id="org.eclipse.core.databinding.observable"/>
      <plugin id="org.eclipse.core.databinding.property"/>  
      <plugin id="org.eclipse.core.expressions"/>           
      <plugin id="org.eclipse.core.jobs"/>                  
      <plugin id="org.eclipse.core.runtime"/>               
      <plugin id="org.eclipse.core.runtime.compatibility.auth"/>
      <plugin id="org.eclipse.core.runtime.compatibility.registry" fragment="true"/>
      <plugin id="org.eclipse.equinox.app"/>
      <plugin id="org.eclipse.equinox.common"/>
      <plugin id="org.eclipse.equinox.preferences"/>
      <plugin id="org.eclipse.equinox.registry"/>
      <plugin id="org.eclipse.equinox.weaving.hook" fragment="true"/>
      <plugin id="org.eclipse.help"/>
      <plugin id="org.eclipse.jface"/>
      <plugin id="org.eclipse.jface.databinding"/>
      <plugin id="org.eclipse.osgi"/>
      <plugin id="org.eclipse.osgi.services"/>
      <plugin id="org.eclipse.swt"/>
      <plugin id="org.eclipse.swt.gtk.linux.x86_64" fragment="true"/>
      <plugin id="org.eclipse.ui"/>
      <plugin id="org.eclipse.ui.forms"/>
      <plugin id="org.eclipse.ui.workbench"/>
   </plugins>

   <configurations>
      <plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="0" />
      <plugin id="org.eclipse.equinox.common" autoStart="true" startLevel="2" />
      <plugin id="org.eclipse.osgi" autoStart="true" startLevel="-1" />
   </configurations>

</product>



Any idea?
Re: Problem creating a product [message #513019 is a reply to message #512170] Mon, 08 February 2010 10:34 Go to previous messageGo to next message
Luca Ferrari is currently offline Luca Ferrari
Messages: 159
Registered: November 2009
Senior Member
With another product configuration, generated from a launcher that works fine, I've got the following error:

 An error occurred while installing the items
   session context was:(profile=profile, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Install, operand=null --> [R]HRPM_RCP_git 1.0.0.201002081632, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).
   Error while loading manipulator.


Any idea on what is wrong with my configuration?
Re: Problem creating a product [message #513024 is a reply to message #513019] Mon, 08 February 2010 10:41 Go to previous messageGo to next message
Luca Ferrari is currently offline Luca Ferrari
Messages: 159
Registered: November 2009
Senior Member
Interestingly during the process of exporting the product only the root directory with a p2 directory in it is created. Hope this help understanding the problem.
Re: Problem creating a product [message #513039 is a reply to message #513024] Mon, 08 February 2010 11:05 Go to previous messageGo to next message
Luca Ferrari is currently offline Luca Ferrari
Messages: 159
Registered: November 2009
Senior Member
I'm developing on Linux, and I'd like to create a product for a windows target. So I've created a new target in Preferences -> PDE -> Target -> added a new win32 target. However, when I export the product with this configuration I got:

/sviluppo/java/eclipseWorkspace/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/assemble.org.eclipse.pde.container.feature.p2.xml:32: The following error occurred while executing this line:
/sviluppo/java/eclipseWorkspace/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/assemble.org.eclipse.pde.container.feature.p2.xml:42: The following error occurred while executing this line:
/sviluppo/java/eclipseWorkspace/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/assemble.org.eclipse.pde.container.feature.p2.xml:18: The following error occurred while executing this line:
Target "publish.bin.parts" does not exist in the project "HRPM-RCP-git". 
The following error occurred while executing this line:
/sviluppo/java/eclipseWorkspace/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/assemble.org.eclipse.pde.container.feature.p2.xml:42: The following error occurred while executing this line:
/sviluppo/java/eclipseWorkspace/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/assemble.org.eclipse.pde.container.feature.p2.xml:18: The following error occurred while executing this line:
Target "publish.bin.parts" does not exist in the project "HRPM-RCP-git". 




while exporting the product within the current platform works. I have no idea about what it could be the problem, please help me!
Re: Problem creating a product [message #513782 is a reply to message #513039] Thu, 11 February 2010 04:49 Go to previous message
Luca Ferrari is currently offline Luca Ferrari
Messages: 159
Registered: November 2009
Senior Member
I found that the delta pack installed into my target platform was for the wrong version of eclipse, so I donwloaded the right one and the product exportation worked fine.
Previous Topic:Eclipse/RCP Application installed on Network Drive Bug
Next Topic:limiting command visibility depending on view selecction
Goto Forum:
  


Current Time: Sat Jul 26 01:18:29 EDT 2014

Powered by FUDForum. Page generated in 0.02760 seconds