felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen (JIRA)" <j...@apache.org>
Subject [jira] Created: (FELIX-1621) OBR fails to take bundles into account that are already available in the framework
Date Sat, 19 Sep 2009 20:21:16 GMT
OBR fails to take bundles into account that are already available in the framework

                 Key: FELIX-1621
                 URL: https://issues.apache.org/jira/browse/FELIX-1621
             Project: Felix
          Issue Type: Bug
          Components: Bundle Repository (OBR)
    Affects Versions: felix-2.0.0
         Environment: linux with JDK 1.6 update 16
            Reporter: Jochen

Create a bundle called 'base'. Create another bundle called 'dep'. 'dep' has to depend on
Deploy 'base' into felix. Keep 'dep' in a separate directory. Use bindex.jar (from osgi.org)
to create the obr.xml.
Create a third bundle with the following code in the activator:

		RepositoryAdmin repositoryAdmin = (RepositoryAdmin) arg0.getService(arg0.getServiceReference(RepositoryAdmin.class.getName()));
		try {
			repositoryAdmin.addRepository((new File(
		} catch (MalformedURLException e) {
		} catch (Exception e) {
		Resolver resolver = repositoryAdmin.resolver();
		if (resolver.resolve()) {
		} else {
			Requirement[] reqs = resolver.getUnsatisfiedRequirements();
			for (int i = 0; i < reqs.length; i++) {
				System.out.println("Unable to resolve: " + reqs[i].getFilter());

When the bundle is started it will give us the message that the 'base' bundle is not available
although it is deploied and started in the framework.

This issue is somewhat related to http://issues.apache.org/jira/browse/FELIX-280.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message