Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313239 - installing software in self-hosting target not working
Summary: installing software in self-hosting target not working
Status: CLOSED WONTFIX
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P2 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-17 16:34 EDT by Darin Wright CLA
Modified: 2019-09-07 17:23 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Wright CLA 2010-05-17 16:34:51 EDT
3.6 RC1

Steps:

* check out "org.eclipse.debug.examples.core" and ""org.eclipse.debug.examples.ui" into your workspace
* create a feature with the two plug-ins
* export the feature to a directory with metadata
* close the projects in the workspace
* launch an Eclipse application with "support software installation" checked on the configuration tab
* install the example feature into the target
* restart

The feature appears as installed, but the plug-ins are not present, nor is the launch configration type (PDA) when opening the LCD.
Comment 1 Darin Wright CLA 2010-05-18 14:34:39 EDT
Needs investigation
Comment 2 Curtis Windatt CLA 2010-05-19 16:19:32 EDT
The profile has the installed bundles, but the bundles are not known to OSGi (opening the OSGi console and running ss does not list the bundles).  The bundles.info is not overwritten when the installation occurs, but it is rewritten on restart.  

cc'ing John and Pascal.  Maybe they can shed some light on what is happening.
Comment 3 Curtis Windatt CLA 2010-05-19 16:31:39 EDT
I expect that the bug in PDE here is that we are writing bundles.info on restart.  We have code to avoid overwriting the profile on restart.

However, the fact that simple configurator is not updating bundles.info after the install suggests there is something else wrong here.

This isn't a priority for 3.6 as the purpose of the feature was to provide a modifiable profile when self hosting, which works fine.  It's just unfortunate that the UI for the feature says "Allow installation of software into the running target" which doesn't work.
Comment 4 Pascal Rapicault CLA 2010-05-19 22:49:32 EDT
I'm suspecting that the profile does not have proper values for paths like install area and the like which consequently causes the bundles.info to be written out in the wrong place. A good way to track that would be to put a breakpoint in SimpleConfiguratorManipulatorImpl#save() (in simpleconfigurator.manipulator bundle) and see where / if the file is written out.
Comment 5 Curtis Windatt CLA 2010-05-20 12:17:12 EDT
(In reply to comment #4)
> I'm suspecting that the profile does not have proper values for paths like
> install area and the like which consequently causes the bundles.info to be
> written out in the wrong place. A good way to track that would be to put a
> breakpoint in SimpleConfiguratorManipulatorImpl#save() (in
> simpleconfigurator.manipulator bundle) and see where / if the file is written
> out.

I put a breakpoint in the save() and saveConfigurations() method, however, none of them were ever hit.
Comment 6 Pascal Rapicault CLA 2010-05-27 21:12:50 EDT
I looked at that a bit and the first thing I noticed is that none of the configuration units (.e.g tooling.osgi.default) appear in the profile. This means that at install time, the jars will only be downloaded but they will never be installed in the OSGi runtime. 
Matt tried some hacked where he forced the tooling.osgi.default CU to be added, however the provisioning operation failed part way through the installation of the bundle (InstallBundleAction) in a NPE which made me suspect that the profile was probably not properly setup (missing some of the properties like install path, bundle pool path, etc.). However we did not had enough time to continue the investigation any further.
Comment 7 Eclipse Genie CLA 2019-09-07 17:23:38 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.