Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351307 - Namespace-Handler confusion
Summary: Namespace-Handler confusion
Status: CLOSED FIXED
Alias: None
Product: Gemini.Blueprint
Classification: RT
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-06 07:20 EDT by Stefan Meißner (davengo GmbH) CLA
Modified: 2017-05-09 09:41 EDT (History)
1 user (show)

See Also:


Attachments
The first patch (17.27 KB, patch)
2011-07-06 07:21 EDT, Stefan Meißner (davengo GmbH) CLA
no flags Details | Diff
The cleaned first patch (not reformatted the source) (1.76 KB, patch)
2011-07-06 07:21 EDT, Stefan Meißner (davengo GmbH) CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Meißner (davengo GmbH) CLA 2011-07-06 07:20:07 EDT
Build Identifier: 

When using Gemini Blueprint without "-Dorg.eclipse.gemini.blueprint.ns.bundles.started=true" the NamespaceBundleLister is created for monitor RESOLVED bundles, but the loaded Bundles still get only added to the NamespaceManager when they are ACTIVE (started). 

This way some Bundles never get scanned by the NamespaceManager for the schema files (spring.handlers, spring.schemas).

Reproducible: Didn't try

Steps to Reproduce:
1. use a schema like http://www.springframework.org/schema/osgi       http://www.springframework.org/schema/osgi/spring-osg in your bundles context
2. start the framework without setting "-Dorg.eclipse.gemini.blueprint.ns.bundles.started=true"
3. see resolution of the namespace failing because org.eclipse.gemini.blueprint.core was not started when the extender is activated and never will get resolved again.
Comment 1 Stefan Meißner (davengo GmbH) CLA 2011-07-06 07:21:00 EDT
Created attachment 199176 [details]
The first patch
Comment 2 Stefan Meißner (davengo GmbH) CLA 2011-07-06 07:21:40 EDT
Created attachment 199177 [details]
The cleaned first patch (not reformatted the source)
Comment 3 Costin Leau CLA 2011-08-22 14:51:33 EDT
Thanks - however by setting the properties you are requesting that only bundles in started state are used (instead of just resolved).
Since you want the opposite you should not define it or define it as false.

However your point out a problem with the already installed bundles which I fixed in trunk.
Comment 4 Olaf Otto CLA 2017-05-09 09:41:34 EDT
Released - closing.