Custom config.ini in Eclipse RCP product - java

My eclipse RCP (3.7) application is currently in a good shape, in which product can be exported successfully for multiple platforms and runs just fine. What I need is to change some properties in config.ini file, in particular osgi.instance.area.default and osgi.configuration.area.
In the configuration tab of eclipse product editor, I check Use an existing config.ini file and select the config.ini I created inside the same project hosting the product (and the core feature) definition.
To create the custom config.ini, I just took the one generated in a previous export, and added above properties.
What happens is that after exporting the product, config.ini is still auto-generated in configuration/config.ini, without my edits. What am I missing?
This is how my product definition looks like:
<?xml version="1.0" encoding="UTF-8"?>
<?pde version="3.5"?>
<product name="MyApp" id="it.myapp.product" application="it.myapp.application" version="1.0.0.qualifier" useFeatures="true" includeLaunchers="true">
<configIni use="default">
<linux>/it.myapp.app/config.ini</linux>
<macosx>/it.myapp.app.app/config.ini</macosx>
<solaris>/it.myapp.app.app/config.ini</solaris>
<win32>/it.myapp.app/config.ini</win32>
</configIni>
<launcherArgs>
<programArgs>-nl it</programArgs>
<vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>
</launcherArgs>
<windowImages />
<splash
location="it.myapp"
startupProgressRect="6,378,485,13"
startupMessageRect="7,397,445,22"
startupForegroundColor="000000" />
<launcher name="myapp">[...]</launcher>
<vm>
</vm>
<plugins>
<plugin id="com.ibm.icu"/>
[...]
<plugin id="org.sat4j.pb"/>
</plugins>
<features>
<feature id="it.myapp.feature"/>
</features>
<configurations>
<plugin id="it.myapp" autoStart="false" startLevel="5" />
<plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="4" />
<plugin id="org.eclipse.equinox.common" autoStart="true" startLevel="2" />
<plugin id="org.eclipse.equinox.ds" autoStart="true" startLevel="2" />
<plugin id="org.eclipse.equinox.simpleconfigurator" autoStart="true" startLevel="1" />
</configurations>
</product>

You are not missing anything - this just does not work. I experienced the same. You can try upgrading to a more recent version of Eclipse which hopefully has this function working.
See: https://bugs.eclipse.org/bugs/show_bug.cgi?id=284732
I suggest to work around this by using root-properties:
Eclipse RCP root-properties

Related

Eclipse e4 export - build.xml: A problem occurred while executing this line:

I've recently changed my Eclipse e4 applications project configuration from being based on plug-ins to features. The application runs correctly but when exporting I get errors to do with a build.xml file.
Error
.metadata/.log - Shortened
C:\Users\my.name\Workspace\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\compile.org.eclipse.pde.container.feature.xml:6: The following error occurred while executing this line:
C:\Users\my.name\Workspace\project_name\build.xml:43: The following error occurred while executing this line:
C:\Users\my.name\Workspace\project_name\build.xml:24: The following error occurred while executing this line:
C:\Users\my.name\Workspace\project_name\build.xml:43: The following error occurred while executing this line:
C:\Users\my.name\Workspace\project_name\build.xml:24: The following error occurred while executing this line:
C:\Users\my.name\Workspace\project_name\build.xml:43: The following error occurred while executing this line:
C:\Users\my.name\Workspace\project_name\build.xml:24: The following error occurred while executing this line:
C:\Users\my.name\Workspace\project_name\build.xml:43: The following error occurred while executing this line:
C:\Users\my.name\Workspace\project_name\build.xml:24: The following error occurred while executing this line:
C:\Users\my.name\Workspace\project_name\build.xml:43: The following error occurred while executing this line:
...
java.lang.StackOverflowError
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:571)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
at org.apache.tools.ant.Project.executeTarget(Project.java:1361)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:39)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:715)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:535)
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.ant.core.AntRunner.run(AntRunner.java:374)
at org.eclipse.pde.internal.core.exports.FeatureExportOperation.runScript(FeatureExportOperation.java:410)
at org.eclipse.pde.internal.core.exports.FeatureExportOperation.doExport(FeatureExportOperation.java:250)
at org.eclipse.pde.internal.core.exports.ProductExportOperation.run(ProductExportOperation.java:109)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
After searching around I've found a couple of similar questions to do with this. To fix it people were installing/updating PDE. I've tried reinstalling it but it hasn't made a difference. Also I'm quite sure it is installed correctly as when the project configuration was based on plug-ins it would get the whole way through the build process.
feature.xml
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="[![enter image description here][2]][2]feature.name"
label="Feature"
version="1.0.0.qualifier">
<description url="http://www.example.com/description">
[Enter Feature Description here.]
</description>
<copyright url="http://www.example.com/copyright">
[Enter Copyright Description here.]
</copyright>
<license url="http://www.example.com/license">
[Enter License Description here.]
</license>
<requires>
<import plugin="org.eclipse.nebula.widgets.grid" version="1.0.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.nebula.widgets.formattedtext" version="1.0.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.core.runtime"/>
<import plugin="org.eclipse.e4.core.di" version="1.7.100" match="greaterOrEqual"/>
<import plugin="org.eclipse.e4.ui.workbench"/>
<import plugin="org.eclipse.e4.ui.workbench.renderers.swt"/>
<import plugin="org.eclipse.e4.core.services"/>
<import plugin="org.eclipse.osgi.services" version="3.7.100" match="greaterOrEqual"/>
<import plugin="org.eclipse.e4.ui.services"/>
<import plugin="org.eclipse.e4.ui.workbench.swt" version="0.14.400" match="greaterOrEqual"/>
<import plugin="org.eclipse.e4.ui.model.workbench" version="2.1.200" match="greaterOrEqual"/>
<import plugin="org.apache.commons.io" version="2.2.0" match="greaterOrEqual"/>
<import plugin="org.apache.commons.lang3" version="3.1.0" match="greaterOrEqual"/>
<import plugin="org.slf4j.api" version="1.7.2" match="greaterOrEqual"/>
<import plugin="MyPlugin1" version="1.0.0" match="greaterOrEqual"/>
<import plugin="MyPlugin2" version="1.0.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.jface" version="3.15.0" match="greaterOrEqual"/>
<import plugin="javax.annotation"/>
<import plugin="org.eclipse.e4.core.commands"/>
<import plugin="org.eclipse.e4.core.contexts"/>
<import plugin="org.eclipse.e4.core.di.annotations"/>
<import plugin="org.eclipse.e4.core.di.extensions"/>
<import plugin="org.eclipse.e4.ui.di"/>
<import plugin="org.eclipse.emf.common"/>
<import plugin="org.eclipse.swt"/>
<import plugin="org.eclipse.swt" version="3.104.0" match="compatible"/>
<import plugin="org.eclipse.core.commands" version="3.4.0" match="compatible"/>
<import plugin="org.eclipse.equinox.common" version="3.3.0" match="compatible"/>
<import plugin="org.eclipse.equinox.launcher" version="1.5.200" match="greaterOrEqual"/>
<import plugin="org.junit.platform.launcher"/>
<import plugin="org.eclipse.equinox.launcher" version="1.0.0"/>
</requires>
<plugin
id="feature.name"
download-size="0"
install-size="0"
version="0.0.0"/>
<plugin
id="org.apache.commons.io"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.apache.commons.lang3"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.slf4j.api"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.jface"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="MyPlugin2"
download-size="0"
install-size="0"
version="0.0.0"/>
<plugin
id="MyPlugin1"
download-size="0"
install-size="0"
version="0.0.0"/>
<plugin
id="org.eclipse.equinox.launcher"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.equinox.launcher.win32.win32.x86_64"
download-size="0"
install-size="0"
version="0.0.0"
fragment="true"/>
</feature>
Product File features
What could be causing this?
For me the solution was to put the product file to another plug-in product.

vaadin superdevmode can't find custom widget classes

I'm trying to debug a Vaadin custom widgetset using superdevmode. In "normal" mode the custom widget shows up correctly in the browser. When using superdevmode though, it shows the following text instead of the custom widget:
Widgetset xxx does not contain implementation for yyy
Tried all the usual things such as recompile from command line, restart superdevmode server, to no avail.
The weird thing is that the class in the error message (yyy above) is a server side class, used in the client side code only in #Connect(yyy.class), in the client side Connector. Obviously compiled widgetsets do not contain server side classes. So why would it complain about this class?
Also the fact that it works in normal mode makes me wonder what can be wrong. Many similar questions throughout the forums are unanswered. Any help would be appreciated.
Using Vaadin 7.6.6
Contents of widgetset.gwt.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.1//EN"
"http://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd">
<module>
<set-configuration-property name="devModeRedirectEnabled" value="true" />
<add-linker name="xsiframe" />
<inherits name="com.vaadin.DefaultWidgetSet" />
<inherits name="..." />
<source path='client' />
<source path='shared' />
<stylesheet src="resetbuttonfortextfield/styles.css" />
</module>
Solved it eventually by adding -src ${project_loc}/src/main/java to my superdevmode run configuration. Beats me why it wasn't able to figure that for itself.

Use WIX feature element in wxi and wxs with same Id

I want to generate a MSI package which contains only one feature.
I have a wxi file which is generated automatically. I cannot change this process.
wxi file looks like this:
<?xml version="1.0" encoding="UTF-8" ?>
<Include>
<!-- components -->
<Feature Id="DefaultFeature" Title="Main Feature" Level="1">
<ComponentRef Id="comp0" />
<ComponentRef Id="comp1" />
<ComponentRef Id="comp2" />
<ComponentRef Id="comp3" />
<ComponentRef Id="CleanupMainApplicationFolder" />
</Feature>
</Include>
I have a wxs file which I can change:
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Product ...>
<!-- components -->
<?include bundle.wxi ?>
<UI/>
<FeatureRef Id="DefaultFeature">
<ComponentRef Id="comp999" />
</FeatureRef>
</Product>
</Wix>
When I compile the wxs to MSI package Light is stating this error:
error LGHT0095 : Multiple primary references were found for Feature 'DefaultFeature' in Product '{...}' and Product '{...}'.
How do I change my wxs file to add a component to the feature defined in wxi file?
Thanks in advance.
Use <ComponentGroup> in your include files instead of <Feature>. Then, define your features in one place, the main .wxs file with <Product> element.
For example, this is how include file might look:
<Fragment>
<Component Id="Comp1" Guid="{GUID-GOES-HERE}">
...
</Component>
<Component Id="Comp2" Guid="{GUID-GOES-HERE}">
...
</Component>
<Component Id="Comp3" Guid="{GUID-GOES-HERE}">
...
</Component>
<ComponentGroup Id="CG1">
<ComponentRef Id="Comp1"/>
<ComponentRef Id="Comp2"/>
<ComponentRef Id="Comp3"/>
</ComponentGroup>
</Fragment>
And the main product.wxs defines the feature, includes the component group in there and allows including more components:
<Feature Id="MainFeature" Title="..." Level="100">
<ComponentGroupRef Id="CG1"/>
<!-- More components can go here -->
<Component Id="..">
</Component>
</Feature>
Moreover, you can include wxs files instead of include, too. As long as the main wxs references at least one element from another wxs, the entire contents will be included.

How to fix "No Application ID has been Found" error in e4 application?

I have been searching for a while now and can still not find a solution to my problem. I have an e4 application that whenever I try to launch it, I get a No application id has been found error with not much more information other than that. I have tried adding required plug-ins in both the .product file as well as the run configuration, including adding the optional dependencies.
I am completely stuck trying to get this application to run, it seems to run on my co-worker's computer, but does not want to run on mine. I will paste my error log below. Any help is appreciated. Thank you!
!SESSION 2016-01-21 14:01:56.955 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_66
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product ExampleApp.product -clearPersistedState
Command-line arguments: -product ExampleApp.product -data C:\Users\e296040\workspace/../runtime-ExampleApp.product(1) -dev file:C:/Users/e296040/workspace/.metadata/.plugins/org.eclipse.pde.core/ExampleApp.product (1)/dev.properties -os win32 -ws win32 -arch x86_64 -consoleLog -clearPersistedState
!ENTRY org.eclipse.equinox.app 0 0 2016-01-21 14:02:00.912
!MESSAGE Product ExampleApp.product could not be found.
!ENTRY org.eclipse.osgi 4 0 2016-01-21 14:02:01.088
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: No application id has been found.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
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:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
An error has occurred. See the log file
C:\Users\e296040\runtime-ExampleApp.product(1)\.metadata\.log.
EDIT
Here is the plugin.xml file.
<?xml version="1.0" encoding="UTF-8"?>
<plugin>
<extension
id="product"
point="org.eclipse.core.runtime.products">
<product
name="ExampleApp"
application="org.eclipse.e4.ui.workbench.swt.E4Application">
<property
name="lifeCycleURI"
value="bundleclass://ExampleApp/exampleapp.CyamsInitiator">
</property>
<property
name="appName"
value="ExampleApp">
</property>
</product>
</extension>
</plugin>
EDIT 2
Manifest.MF
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: ExampleApp
Bundle-SymbolicName: CyAMSApp;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: exampleapp.Activator
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy
Bundle-ClassPath: .,
lib/crystalproject.jar,
lib/idw-gpl.jar,
lib/jasypt-1.9.1.jar,
lib/jcommon-1.0.20.jar,
lib/jedit.jar,
lib/jfreechart-1.0.16.jar,
lib/jgraphx.jar,
lib/junit-4.11.jar,
lib/jython-standalone-2.7.0.jar,
lib/sqlite-jdbc-3.7.2.jar,
lib/sqlitejdbc-v056.jar,
lib/websocket-ri-bundle-1.0.jar,
lib/worldwind/gdal.jar,
lib/worldwind/gluegen-rt-natives-linux-amd64.jar,
lib/worldwind/gluegen-rt-natives-linux-i586.jar,
lib/worldwind/gluegen-rt-natives-macosx-universal.jar,
lib/worldwind/gluegen-rt-natives-windows-amd64.jar,
lib/worldwind/gluegen-rt-natives-windows-i586.jar,
lib/worldwind/gluegen-rt.jar,
lib/worldwind/jogl-all-natives-linux-amd64.jar,
lib/worldwind/jogl-all-natives-linux-i586.jar,
lib/worldwind/jogl-all-natives-macosx-universal.jar,
lib/worldwind/jogl-all-natives-windows-amd64.jar,
lib/worldwind/jogl-all-natives-windows-i586.jar,
lib/worldwind/jogl-all.jar,
lib/worldwind/jogl-natives-windows-amd64.jar,
lib/worldwind/jogl.jar,
lib/worldwind/worldwind.jar,
lib/worldwind/worldwindx.jar,
lib/xstream/jettison-1.2.jar,
lib/xstream/xmlpull-1.1.3.1.jar,
lib/xstream/xpp3_min-1.1.4c.jar,
lib/xstream/xstream-1.4.7.jar
Import-Package: org.eclipse.emf.common.notify,
org.eclipse.emf.ecore,
org.eclipse.emf.ecore.resource,
org.eclipse.emf.ecore.xmi.impl,
org.osgi.framework;version="1.3.0",
org.osgi.service.event;version="1.3.1"
Require-Bundle: org.eclipse.swt;bundle-version="3.104.0",
org.eclipse.jface;bundle-version="3.11.0",
org.eclipse.emf.common;bundle-version="2.11.0",
org.eclipse.e4.ui.workbench.swt;bundle-version="0.13.0",
org.eclipse.e4.ui.workbench.renderers.swt;bundle-version="0.13.0",
org.eclipse.e4.ui.workbench.addons.swt;bundle-version="1.2.0",
org.eclipse.e4.ui.workbench;bundle-version="1.3.0",
org.eclipse.e4.ui.services;bundle-version="1.2.0",
org.eclipse.e4.ui.model.workbench;bundle-version="1.1.100",
org.eclipse.e4.ui.di;bundle-version="1.1.0",
org.eclipse.e4.core.services;bundle-version="2.0.0",
org.eclipse.e4.core.di;bundle-version="1.5.0",
org.eclipse.e4.core.contexts;bundle-version="1.4.0",
org.eclipse.core.runtime;bundle-version="3.11.0",
javax.inject;bundle-version="1.0.0";visibility:=reexport
ExampleApp.product
<?xml version="1.0" encoding="UTF-8"?>
<?pde version="3.5"?>
<product name="ExampleApp" uid="CyAMSApp" id="ExampleApp.product" application="org.eclipse.e4.ui.workbench.swt.E4Application" version="1.0.0.1" useFeatures="false" includeLaunchers="true">
<configIni use="default">
</configIni>
<launcherArgs>
<programArgs>-clearPersistedState
</programArgs>
<vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts
</vmArgsMac>
</launcherArgs>
<windowImages/>
<launcher>
<solaris/>
<win useIco="false">
<bmp/>
</win>
</launcher>
<vm>
<windows include="false">org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8</windows>
</vm>
<plugins>
<plugin id="ExampleApp"/>
<plugin id="com.ibm.icu"/>
<plugin id="javax.annotation"/>
<plugin id="javax.inject"/>
<plugin id="javax.servlet"/>
<plugin id="javax.xml"/>
<plugin id="org.apache.batik.css"/>
<plugin id="org.apache.batik.util"/>
<plugin id="org.apache.batik.util.gui"/>
<plugin id="org.apache.commons.jxpath"/>
<plugin id="org.apache.commons.logging"/>
<plugin id="org.eclipse.ant.core"/>
<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.filesystem"/>
<plugin id="org.eclipse.core.filesystem.java7" fragment="true"/>
<plugin id="org.eclipse.core.filesystem.win32.x86_64" fragment="true"/>
<plugin id="org.eclipse.core.jobs"/>
<plugin id="org.eclipse.core.resources"/>
<plugin id="org.eclipse.core.resources.win32.x86_64" fragment="true"/>
<plugin id="org.eclipse.core.runtime"/>
<plugin id="org.eclipse.core.runtime.compatibility.registry" fragment="true"/>
<plugin id="org.eclipse.core.variables"/>
<plugin id="org.eclipse.e4.core.commands"/>
<plugin id="org.eclipse.e4.core.contexts"/>
<plugin id="org.eclipse.e4.core.di"/>
<plugin id="org.eclipse.e4.core.di.annotations"/>
<plugin id="org.eclipse.e4.core.di.extensions"/>
<plugin id="org.eclipse.e4.core.services"/>
<plugin id="org.eclipse.e4.emf.xpath"/>
<plugin id="org.eclipse.e4.ui.bindings"/>
<plugin id="org.eclipse.e4.ui.css.core"/>
<plugin id="org.eclipse.e4.ui.css.swt"/>
<plugin id="org.eclipse.e4.ui.css.swt.theme"/>
<plugin id="org.eclipse.e4.ui.di"/>
<plugin id="org.eclipse.e4.ui.model.workbench"/>
<plugin id="org.eclipse.e4.ui.services"/>
<plugin id="org.eclipse.e4.ui.widgets"/>
<plugin id="org.eclipse.e4.ui.workbench"/>
<plugin id="org.eclipse.e4.ui.workbench.addons.swt"/>
<plugin id="org.eclipse.e4.ui.workbench.renderers.swt"/>
<plugin id="org.eclipse.e4.ui.workbench.swt"/>
<plugin id="org.eclipse.e4.ui.workbench3"/>
<plugin id="org.eclipse.emf.common"/>
<plugin id="org.eclipse.emf.databinding"/>
<plugin id="org.eclipse.emf.ecore"/>
<plugin id="org.eclipse.emf.ecore.change"/>
<plugin id="org.eclipse.emf.ecore.xmi"/>
<plugin id="org.eclipse.equinox.app"/>
<plugin id="org.eclipse.equinox.bidi"/>
<plugin id="org.eclipse.equinox.common"/>
<plugin id="org.eclipse.equinox.concurrent"/>
<plugin id="org.eclipse.equinox.ds"/>
<plugin id="org.eclipse.equinox.event"/>
<plugin id="org.eclipse.equinox.preferences"/>
<plugin id="org.eclipse.equinox.registry"/>
<plugin id="org.eclipse.equinox.util"/>
<plugin id="org.eclipse.jface"/>
<plugin id="org.eclipse.jface.databinding"/>
<plugin id="org.eclipse.osgi"/>
<plugin id="org.eclipse.osgi.compatibility.state" fragment="true"/>
<plugin id="org.eclipse.osgi.services"/>
<plugin id="org.eclipse.swt"/>
<plugin id="org.eclipse.swt.win32.win32.x86_64" fragment="true"/>
<plugin id="org.w3c.css.sac"/>
<plugin id="org.w3c.dom.events"/>
<plugin id="org.w3c.dom.smil"/>
<plugin id="org.w3c.dom.svg"/>
</plugins>
<preferencesInfo>
<targetfile overwrite="false"/>
</preferencesInfo>
<cssInfo>
</cssInfo>
</product>
Your MANIFEST.MF says the plugin id ('Bundle-SymbolicName') is CyAMSApp, so the product id declared by the plugin.xml is CyAMSApp.product.
Change the 'Bundle-SymbolicName' to be 'ExampleApp' or change the references to the product id to be 'CyAMSApp.product'.
These two files must be compared from the other environment where it is working you try checking the files existence first and if they exist then check the configuration of the projects

Ivy error while building a project in netbeans

I am an Ivy newbie and I need some help resolving an error. When I try to build my project using netbeans it gives me following error :
confs: [compile, runtime, compile-test, runtime-test]
C:\Users\Tejas\Documents\NetBeansProjects\LaitsV3\Laitsv3second\nbproject\ivy-impl.xml:92: impossible to resolve dependencies:
java.io.FileNotFoundException: C:\Users\Tejas\.netbeans\7.1.1\modules\ext\ivy-2.1.0.jar\cache\resolved-Laitsv3second-Laitsv3second-1.0.xml (The system cannot find the path specified)
where as this Laitsv3second-Laitsv3second-1.0 is being picked up by ivy from ivy.xml file's info tag as follows :
<ivy-module version="2.0">
<info organisation="Laitsv3second" module="Laitsv3second" revision="1.0" />
Can anybody help me identifying this problem? or any pointer for help?
I resolved this error by adding following to the ivysetting
<property name="ivy.default.ivy.user.dir" value="${user.home}/.ivy2" />
<caches resolutionCacheDir="${user.home}/.ivy2/cache" defaultCacheDir="${user.home}/.ivy2/cache"/>
this way it tries to find the cache in the specified directory. Otherwise it tries to find the cache in the ivy.jar file. This may sound stupid but it is what happens.
This is the same problem as reported on ivvybeans forum but it is unresolved yet. https://code.google.com/p/ivybeans/issues/detail?id=103
It works for me too, here is my ivysetting looks like:
<ivysettings>
<settings defaultResolver="main" >
<property name="ivy.default.ivy.user.dir" value="${user.home}/.ivy2" />
<caches resolutionCacheDir="${user.home}/.ivy2/cache" defaultCacheDir="${user.home}/.ivy2/cache"/>
</settings>
<resolvers>
<chain name="main">
<url name="repo" m2compatible="true">
<artifact pattern="http://reposserver/artifactory/repo/[organization]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]" />
<ivy pattern="http://reposerver/artifactory/repo/[organization]/[module]/[revision]/[module]-[revision](-[classifier]).pom" />
</url>
<ibiblio name="compass" m2compatible="true" root="http://repo.compass-project.org"></ibiblio>
<ibiblio name="ibiblio" m2compatible="true"></ibiblio>
</chain>
</resolvers>
</ivysettings>

Categories

Resources