|
Re: The application will not start after update... [message #662320 is a reply to message #662249] |
Wed, 30 March 2011 09:05 |
Alex Messages: 8 Registered: March 2011 |
Junior Member |
|
|
Hi,
Here are config.ini before and after:
Before
# This configuration file was written by: org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxF wConfigFileParser
# Tue Mar 29 10:17:11 PDT 2011
org.eclipse.update.reconcile = false
eclipse.p2.profile = Updateprofile
osgi.framework = file \: plugins/org.eclipse.osgi_3.6.1.R36x_v20100806.jar
equinox.use.ds = true
osgi.bundles = reference \: file \: org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503.jar @ 1 \: start
org.eclipse.equinox.simpleconfigurator.configUrl = file \: org.eclipse.equinox.simpleconfigurator / bundles.info
eclipse.product = com.update.test.product
osgi.splashPath = platform \: / base / plugins / com.update.test
osgi.framework.extensions =
osgi.bundles.defaultStartLevel = 4
eclipse.p2.data.area = @ config.dir/../p2
eclipse.application = com.update.test.application
and after:
# This configuration file was written by: org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxF wConfigFileParser
# Wed Mar 30 09:40:35 PDT 2011
org.eclipse.update.reconcile =
eclipse.p2.profile = Updateprofile
osgi.framework = file \: plugins/org.eclipse.osgi_3.6.1.R36x_v20100806.jar
equinox.use.ds = true
osgi.bundles = reference \: file \: @ 4 org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503.jar , reference \: file \: @ 4 ca.odell.glazedlists_1.8.0.alpha20110124.jar, reference \: f
org.eclipse.equinox.simpleconfigurator.configUrl = file \: org.eclipse.equinox.simpleconfigurator / bundles.info
eclipse.product =
osgi.splashPath =
osgi.framework.extensions =
osgi.bundles.defaultStartLevel = 4
eclipse.application =
eclipse.p2.data.area = @ config.dir/../p2 /
------------------------------------------------------------ -------------------------------------
In addition, the files eclipsec.exe and Update.ini disappeared.
Logfile:
!SESSION 2011-03-30 11:03:35.127 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_23
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Command-line arguments: -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.osgi 2 0 2011-03-30 11:03:57.283
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-30 11:03:57.283
!MESSAGE Bundle com.update.test_1.0.0.201103291011 [11] was not resolved.
!SUBENTRY 2 com.update.test 2 0 2011-03-30 11:03:57.283
!MESSAGE Another singleton version selected: com.update.test_1.0.0.201103300913
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-30 11:03:57.283
!MESSAGE Bundle com.update.test.avldsl_1.0.0.201103291010 [12] was not resolved.
!SUBENTRY 2 com.update.test.avldsl 2 0 2011-03-30 11:03:57.283
!MESSAGE Missing optionally required bundle org.eclipse.xtext.generator_[1.0.0,2.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-30 11:03:57.283
!MESSAGE Bundle com.update.test.avldsl.generator_1.0.0.201103291010 [13] was not resolved.
!SUBENTRY 2 com.update.test.avldsl.generator 2 0 2011-03-30 11:03:57.283
!MESSAGE Another singleton version selected: com.update.test.avldsl.generator_1.0.0.201103300913
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-30 11:03:57.283
!MESSAGE Bundle com.update.test.avldsl.ui_1.0.0.201103291010 [14] was not resolved.
!SUBENTRY 2 com.update.test.avldsl.ui 2 0 2011-03-30 11:03:57.283
!MESSAGE Another singleton version selected: com.update.test.avldsl.ui_1.0.0.201103300913
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-30 11:03:57.283
!MESSAGE Bundle com.update.test.compiler_1.0.0.201103291010 [15] was not resolved.
!SUBENTRY 2 com.update.test.compiler 2 0 2011-03-30 11:03:57.283
!MESSAGE Another singleton version selected: com.update.test.compiler_1.0.0.201103300913
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-30 11:03:57.283
!MESSAGE Bundle com.update.test.dicoreconnector_1.0.0.201103291010 [16] was not resolved.
!SUBENTRY 2 com.update.test.dicoreconnector 2 0 2011-03-30 11:03:57.283
!MESSAGE Another singleton version selected: com.update.test.dicoreconnector_1.0.0.201103300913
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-30 11:03:57.283
!MESSAGE Bundle com.update.test.ecud_1.0.0.201103291010 [17] was not resolved.
!SUBENTRY 2 com.update.test.ecud 2 0 2011-03-30 11:03:57.283
!MESSAGE Missing optionally required bundle org.eclipse.xtext.generator_[1.0.0,2.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-30 11:03:57.283
!MESSAGE Bundle com.update.test.ecud.generator_1.0.0.201103291010 [18] was not resolved.
!SUBENTRY 2 com.update.test.ecud.generator 2 0 2011-03-30 11:03:57.283
!MESSAGE Another singleton version selected: com.update.test.ecud.generator_1.0.0.201103300913
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-30 11:03:57.283
!MESSAGE Bundle com.update.test.ecud.ui_1.0.0.201103291010 [19] was not resolved.
!SUBENTRY 2 com.update.test.ecud.ui 2 0 2011-03-30 11:03:57.283
!MESSAGE Another singleton version selected: com.update.test.ecud.ui_1.0.0.201103300913
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-30 11:03:57.283
!MESSAGE Bundle com.update.test.flow_1.0.0.201103291010 [20] was not resolved.
!SUBENTRY 2 com.update.test.flow 2 0 2011-03-30 11:03:57.283
!MESSAGE Missing optionally required bundle org.eclipse.xtext.generator_[1.0.0,2.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-30 11:03:57.283
!MESSAGE Bundle com.update.test.flow.generator_1.0.0.201103291010 [21] was not resolved.
!SUBENTRY 2 com.update.test.flow.generator 2 0 2011-03-30 11:03:57.283
!MESSAGE Another singleton version selected: com.update.test.flow.generator_1.0.0.201103300913
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-30 11:03:57.283
!MESSAGE Bundle com.update.test.flow.ui_1.0.0.201103291010 [22] was not resolved.
!SUBENTRY 2 com.update.test.flow.ui 2 0 2011-03-30 11:03:57.283
!MESSAGE Another singleton version selected: com.update.test.flow.ui_1.0.0.201103300913
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-30 11:03:57.283
!MESSAGE Bundle com.update.test.localcache_1.0.0.201103291011 [23] was not resolved.
!SUBENTRY 2 com.update.test.localcache 2 0 2011-03-30 11:03:57.283
!MESSAGE Another singleton version selected: com.update.test.localcache_1.0.0.201103300913
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-30 11:03:57.283
!MESSAGE Bundle com.update.test.logproperties_1.0.0.201103291009 [24] was not resolved.
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-30 11:03:57.283
!MESSAGE Bundle com.update.test.mapping_1.0.0.201103291010 [25] was not resolved.
!SUBENTRY 2 com.update.test.mapping 2 0 2011-03-30 11:03:57.283
!MESSAGE Another singleton version selected: com.update.test.mapping_1.0.0.201103300913
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-30 11:03:57.283
!MESSAGE Bundle com.update.test.multipage_1.0.0.201103291010 [28] was not resolved.
!SUBENTRY 2 com.update.test.multipage 2 0 2011-03-30 11:03:57.283
!MESSAGE Another singleton version selected: com.update.test.multipage_1.0.0.201103300913
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-30 11:03:57.283
!MESSAGE Bundle com.update.test.odx.generator_1.0.0.201103291010 [29] was not resolved.
!SUBENTRY 2 com.update.test.odx.generator 2 0 2011-03-30 11:03:57.283
!MESSAGE Another singleton version selected: com.update.test.odx.generator_1.0.0.201103300913
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-30 11:03:57.283
!MESSAGE Bundle com.update.test.translation_1.0.0.201103291010 [30] was not resolved.
!SUBENTRY 2 com.update.test.translation 2 0 2011-03-30 11:03:57.283
!MESSAGE Another singleton version selected: com.update.test.translation_1.0.0.201103300913
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-30 11:03:57.283
!MESSAGE Bundle com.update.test.xmlpreview_1.0.0.201103291010 [31] was not resolved.
!SUBENTRY 2 com.update.test.xmlpreview 2 0 2011-03-30 11:03:57.283
!MESSAGE Another singleton version selected: com.update.test.xmlpreview_1.0.0.201103300913
!ENTRY org.eclipse.osgi 4 0 2011-03-30 11:03:57.299
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:74)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
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: 619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
[Updated on: Mon, 11 April 2011 07:38] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: The application will not start after update... [message #663679 is a reply to message #663675] |
Wed, 06 April 2011 07:38 |
|
Hi Alex,
Create an two actions that calls the create product ant task with a different set of properties. Let both actions have
the site.p2 as a prerequisite. Create a group that includes those two actions. You now need one single perform call that
calls on the group and Buckminster will orchestrate the whole build. This means that the site.p2 action will only be
called once although you create two products.
HTH,
- thomas
On 2011-04-06 09:31, Alex wrote:
> Hi,
> I have found the cause of my problem:
>
> I am building product for 32 and 64 bit platforms, so first site.p2 and then products separately. I use this Update-site
> to update my products.
>
>
> perform -Dtarget.os=win32 -Dtarget.ws=win32 -Dtarget.arch=* com.update.test.site#site.p2
> perform -Dtarget.os=win32 -Dtarget.ws=win32 -Dtarget.arch=x86 com.update.test.site#create.product.zip
> perform -Dtarget.os=win32 -Dtarget.ws=win32 -Dtarget.arch=x86_64 com.update.test.site#create.product.zip
>
>
> The problem is that every time action "create.product" call site.p2 as a Prerequisite -> which then deletes the entire
> directory "site.p2" and it builds again. In the end I have in site.p2 directory artifacts only for 64-bit platform.
>
> Yesterday I tried to override site.p2 Action.(to change UpToDatePolicy to NOT_EMPTY). The directory is deleted but still
> every time.
>
> Buckminster.cspex:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <cspecExtension
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
> xmlns="http://www.eclipse.org/buckminster/CSpec-1.0">
> <dependencies>
> <!-- Place your Dependencies here -->
> </dependencies>
> <generators>
> <!-- Place your Generators here -->
> </generators>
> <artifacts>
> <!-- Place your Artifacts here -->
> </artifacts>
> <actions>
> <public name="site.p2" actor="p2SiteGenerator">
> <prerequisites>
> <attribute name="site.feature.exports" alias="site" filter="(&(!(site.pack200=true))(!(site.signing=true))) "/>
> <attribute name="site.packed" alias="site" filter="(site.pack200=true)"/>
> <attribute name="site.signed" alias="site" filter="(&(site.signing=true)(!(site.pack200=true)))"/ >
> <attribute name="manifest" alias="site.definer"/>
> <attribute name="product.configuration.exports" alias="product.configs"/>
> </prerequisites>
> <products base="${buckminster.output}/site.p2/" upToDatePolicy="NOT_EMPTY"/>
> </public>
> <public name="create.product" actor="ant">
> <actorProperties>
> <property key="buildFile" value="build/product.ant"/>
> <property key="targets" value="create.product"/>
> </actorProperties>
> <properties>
> <property key="profile" value="UpdateProfile"/>
> <property key="iu" value="update.product"/>
> </properties>
> <prerequisites alias="repository">
> <attribute name="site.p2"/>
> </prerequisites>
> <products alias="destination" base="${buckminster.output}">
> <path path="Update.${target.ws}.${target.os}.${target.arch}/"/>
> </products>
> </public>
> <public name="create.product.zip" actor="ant">
> <actorProperties>
> <property key="buildFileId" value="buckminster.pdetasks"/>
> <property key="targets" value="create.zip"/>
> </actorProperties>
> <prerequisites alias="action.requirements">
> <attribute name="create.product"/>
> </prerequisites>
> <products alias="action.output" base="${buckminster.output}">
> <path path="Update.${target.ws}.${target.os}.${target.arch}.zip"/ >
> </products>
> </public>
> </actions>
> <groups>
> <!-- Place your Groups here -->
> </groups>
> <alterDependencies>
> <!-- Place your Dependency alterations here -->
> </alterDependencies>
> <alterArtifacts>
> <!-- Place your Artifact alterations here -->
> </alterArtifacts>
> <alterActions>
> <remove name="site.p2" />
> </alterActions>
> <alterGroups>
> <!-- Place your Group alterations here -->
> </alterGroups>
> </cspecExtension>
>
>
> Maybe someone knows an elegant solution?
|
|
|
|
Re: The application will not start after update... [message #663710 is a reply to message #663705] |
Wed, 06 April 2011 09:32 |
|
Hi Alex,
What properties do you use when you execute the perform?
- thomas
On 2011-04-06 11:25, Alex wrote:
> Hi, Thomas
>
> Thanks for your reply.
>
> I just tried to do what you suggested.
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <cspecExtension
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
> xmlns="http://www.eclipse.org/buckminster/CSpec-1.0">
> <dependencies>
> <!-- Place your Dependencies here -->
> </dependencies>
> <generators>
> <!-- Place your Generators here -->
> </generators>
> <artifacts>
> <!-- Place your Artifacts here -->
> </artifacts>
> <actions>
> <public name="create.product.x32" actor="ant">
> <actorProperties>
> <property key="buildFile" value="build/product.ant"/>
> <property key="targets" value="create.product"/>
> </actorProperties>
> <properties>
> <property key="arch" value="x86"/>
> <property key="profile" value="UdateProfile"/>
> <property key="iu" value="update.product"/>
> </properties>
> <prerequisites alias="repository">
> <attribute name="site.p2" />
> </prerequisites>
> <products alias="destination" base="${buckminster.output}">
> <path path="update.${target.ws}.${target.os}.x32/"/>
> </products>
> </public>
> <public name="create.product.x64" actor="ant">
> <actorProperties>
> <property key="buildFile" value="build/product.ant"/>
> <property key="targets" value="create.product"/>
> </actorProperties>
> <properties>
> <property key="arch" value="x86_64"/>
> <property key="profile" value="UpdateProfile"/>
> <property key="iu" value="update.product"/>
> </properties>
> <prerequisites alias="repository">
> <attribute name="site.p2" />
> </prerequisites>
> <products alias="destination" base="${buckminster.output}">
> <path path="update.${target.ws}.${target.os}.x64/"/>
> </products>
> </public>
> </actions>
> <groups>
> <public name="product.x32.x64">
> <attribute name="create.product.x32" />
> <attribute name="create.product.x64" />
> </public>
> </groups>
> <alterDependencies>
> <!-- Place your Dependency alterations here -->
> </alterDependencies>
> <alterArtifacts>
> <!-- Place your Artifact alterations here -->
> </alterArtifacts>
> <alterActions>
> </alterActions>
> <alterGroups>
> <!-- Place your Group alterations here -->
> </alterGroups>
> </cspecExtension>
>
>
>
> Site.p2 is indeed a time called, but "site.p2" directory contain artifacts only for 32-bit platform ...
>
> If I use a filter, it is simply ingored.
>
> <public name="create.product.x32" actor="ant">
> <actorProperties>
> <property key="buildFile" value="build/product.ant"/>
> <property key="targets" value="create.product"/>
> </actorProperties>
> <properties>
> <property key="arch" value="x86"/>
> <property key="profile" value="UpdateProfile"/>
> <property key="iu" value="update.product"/>
> </properties>
> <prerequisites alias="repository">
> <attribute name="site.p2" filter="(target.arch=*)"/>
> </prerequisites>
> <products alias="destination" base="${buckminster.output}">
> <path path="update.${target.ws}.${target.os}.x32/"/>
> </products>
> </public>
>
>
|
|
|
|
Re: The application will not start after update... [message #663741 is a reply to message #663715] |
Wed, 06 April 2011 11:13 |
|
On 2011-04-06 11:56, Alex wrote:
> Currently I use only target.os and target.ws. target.arch is explicitly buckminster.cspex
>
Not sure I understand. How do you set the target.arch in a cspex?
> import ${WORKSPACE}ru.update.site/site.cquery
>
> build -c
>
> perform -Dtarget.os=win32 -Dtarget.ws=win32 ru.update.site#product.x32.x64
>
OK, so try this instead:
perform -Dtarget.os=win32 -Dtarget.ws=win32 -Dtarget.arch=* ru.update.site#product.x32.x64
|
|
|
|
Powered by
FUDForum. Page generated in 0.04317 seconds