Apple Mac Video Music Development Fact
Jun 04

I’m currently having a look at spring platform. I’m trying to convert a web application into OSGi module. I get the following error:

Bundle: com.springsource.org.apache.xerces_2.8.1 - Import-Package: org.apache.xml.resolver.readers; version=”[1.2.0,1.3.0)”
 

This means that the bundle xerces requires another bundle having package  org.apache.xml.resolver which is not in your repository. So, you simply ahev to download the bundle from SpringSource Entreprise Bundle Repository, then restart the platform.

Sometimes the message is not so clear (I get with trying to use axis bundle). A way to better diagnose the problem is to use Equinox’s telnet concole.

This console can be accessed via telnet on port 4201. You can download PuTTY telnet client. After connection, youo should have this prompt:

osgi>

Use the command “ss” to list all the install bundles and check for the bundles having status “installed”.

 

You will notice the id of the bundle starting each line. Execute the command “start <id>” to start a bundle, then you should see a clear stack helping you to diagnose the problem.

2 Responses to “How to detect missing bundle in OSGi repository?”

  1. Andy Wilkinson Says:

    Hi Mickael,

    Thanks for taking the time to blog about your experiences with the Application Platform.

    We’ve done quite a lot of work to try to make the error messages as helpful as possible when a bundle’s dependencies cannot be satisfied. I’d be interested to know what message you received when you were working with Axis so that we can, if possible, provide a more helpful message. If you have a few minutes it’d be great if you could e-mail me with some more details and I’ll see what we can do.

    Thanks,
    Andy
    SpringSource

  2. mickael Says:

    Thanks Andy for your support. I’ve tried to get back in the same situation but unfortunately never reach that point. My environment changed a lot (redo my manifest, and I’ve moved to beta6 in the meantime) since that time.

    I get another problem around QName that I loggued in spring source discussions(http://www.springsource.com/beta/applicationplatform/comments.php?DiscussionID=138) .

    Anyway, I would like to highlight the excellent quality of SpringSource support to early-adopters. Thanks !!!

Leave a Reply