package « osgi « Java Enterprise Q&A





1. Split packages in plain java    stackoverflow.com

OSGi has a problem with split packages, i.e. same package but hosted in multiple bundles. Are there any edge cases that split packages might pose problems in plain java (without OSGi) ? Just ...

2. OSGi bundle's package structure    stackoverflow.com

I've been thinking some about "good practice" regarding package structure within osgi bundles. Currently, on average, we have like 8-12 classes per bundle. One of my initiative/proposal has been to have ...

3. How to configure a system-wide package in osgi?    stackoverflow.com

I need to made available a library to some bundles. This library makes use of RMI, so it needs (as far as I know, at least) to use the system class ...

4. eclipse library bundle - fails to export packages from some libraries    stackoverflow.com

I've created a simple plugin project in eclipse 3.5 that just stores third-party libraries for the use by other bundles in an eclipse RCP application. Worked as expected: I edited the ...

5. How to package and consume an existing Java library with OSGI    stackoverflow.com

After asking for help for managing dependencies on different versions of the same libraries in Java, it was suggested that I should take a look at OSGI implementations. Being under a ...

6. How to spoof a java package (and thus a part of the API) in OSGi?    stackoverflow.com

Is it possible to spoof a part of the standard Java API, by exporting your own bundle that replaces this API? Of course with the same interfaces. Would it then be possible ...

7. How to handle packages provided Java using Eclipse P2    stackoverflow.com

I got some OSGi bundles in binary form that declare dependencies to bundles like "org.ietf.jgss" which are provided by Java itself. P2 detects these dependencies and when I try to install ...

8. Knopflerfish packaging    stackoverflow.com

I am at the moment creating a matrix which is showing how far Knopflerfish, Equinox and Felix are OSGi 4.2 compliant. So far I looked at the Knopflerfish documentation (Link ...

9. How can I get Symbolic-Name of an Osgi bundle which is using one of my exported packages?    stackoverflow.com

Inside one of my implementation libraries I want to know from which user library request is coming from? Bundle A ClientCode -- > ServiceInterface Bundle B ClientCode -- > ServiceInterface Bundle C ...





10. Why should I prefer OSGi Services over exported packages?    stackoverflow.com

I am trying to get my head around OSGi Services. The main question I keep asking myself is: What's the benefit of using services instead of working with bundles and their ...

11. Can I package my Eclipse extension so the right version is automatically installed?    stackoverflow.com

Is there a way to build an Eclipse Update Site so that Eclipse 3.3 will install one version of my plug-in while Eclipse 3.4 will install another version? The

12. What is the standard way to bundle OSGi dependent libraries?    stackoverflow.com

I have a project that references a number of open source libraries, some new, some not so new. That said, they are all stable and I wish to stick with my ...

13. importing org.eclipse.core packages for Eclipse plug-in    stackoverflow.com

I'm trying to create a plug-in to mimic the Eclipse open resource dialog (CTRL+SHIFT+R). I've learned how to create a FilteredItemsSelectionDialog by following the example. But the ...

14. Force OSGi package to be imported by maven-bundle-plugin / BND    stackoverflow.com

I try to package an OSGI bundle using the maven-bundle-plugin (which uses BND). To run properly the bundle must import a package which is not in the classpath during development (because object ...

15. Default version package gets when Export-Version does not specify version    stackoverflow.com

In OSGi, if I do not specify version in the Export-Package directive inside MANIFEST.MF, which version exported package will get?

  1. Version equal to the bundle version?
  2. Zero version (something like 0.0.0)?
  3. Something else?
P.S. And ...

16. Bundle's exported packages not visible    stackoverflow.com

I have a bunch of eclipse plugins that depend on a bundle that contains some third-party jar/dll resources, and exports the packages those resources contain. When I export and drop all ...





17. Package uses conflict: Import-Package: de.foo.bar; version="0.0.0"    stackoverflow.com

I try to install a bundle in an OSGi environment (FUSE ESB) but do not manage to get it resolved. The error message is:

The bundle could not be resolved. Reason: Package ...

18. Access multiple versions of a package in Java    stackoverflow.com

We have several applications that use Apache HTTPClient 3 to make HTTP requests. Recently we have also began creating web service clients that use HTTPClient 4 for various reasons. The Apache ...

19. Package uses conflict: Import-Package on startup of a bundle    stackoverflow.com

I am getting the following error when trying to install the htmlunit bundle: com.springsource.com.gargoylesoftware.htmlunit_2.6.0 [370]" could not be resolved. Reason: Package uses conflict: Import-Package: org.apache.commons.logging.impl; version="1.1.1" I have followed the diagnostic procedure for ...

20. OSGi: Get list of classes in package    stackoverflow.com

Is it possible to find all classes or interfaces in a given package? There is no simple way to do it in "plain Java", but OSGi probably does a better job, ...

21. Package uses conflict: Import-Package: org.springframework.mail.javamail; version="0.0.0"    stackoverflow.com

when running my osgi application i am getting following error:

    !ENTRY com.mypackage.commons 4 0 2011-07-06 15:52:21.841
!MESSAGE 
!STACK 0
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Package uses conflict: Import-Package: ...

22. Proprietary non-OSGi packages needed in OSGi application - can't redistribute    stackoverflow.com

I want to use proprietary, non-OSGi jars in an OSGi environment. For development, we just repackage/export it with the Maven bundle plugin [1]. Problem is, for legal reasons we won't be ...