jar « osgi « Java Enterprise Q&A





1. Dynamically load additional jar files using Web Start / JNLP    stackoverflow.com

The Web Start Developers Guide states

All application resources must be retrieved from the JAR files specified in the resources section of the JNLP file, ...

2. OSGi Service wrapping a jar    stackoverflow.com

I am trying to create an OSGi service that wraps another jar. I added the jar to the project, the classpath and the binary build. I registered the service in the ...

3. OSGi and legacy libraries    stackoverflow.com

I've been looking into OSGi for a while and I'm wondering about the best way to deal with "legacy" libraries (that are released as plain JARs, not as OSGi bundles). What do ...

4. How do i register the OSGIhost jar(itself) with DS?    stackoverflow.com

Im trying to create an application which can fire-up felix, and also publish services to the 'Declarative Services' bundle. But with my 'felix-starter' and services effectively being inside the same jar. i ...

5. OSGI - handling 3rd party JARs required by a bundle    stackoverflow.com

I'm just getting started with OSGI development and am struggling to understand how best to handle dependant JARs. i.e. if I'm creating a bundle the likelyhood is that I will need to ...

6. Embedding JARs into the OSGi bundle with maven-bundle-plugin    stackoverflow.com

I’m trying to embed some JARs into single OSGi bundle using the feature of maven-bundle-plugin The thing that worries me is that all packages of embedded JARs are put ...

7. java: is there a framework that allows dynamically loading and unloading of jars (but not osgi)?    stackoverflow.com

I want a mechanism that will allow to dynamically load and unload jars as well as calling an activator class in the jar. I don't want to use OSGi because of ...

8. I want to load my OSGI jar files from a database or other source    stackoverflow.com

Do i need to supply a custom ClassLoader ? Thinking out loud this does not appear to be the right approach because inside the classloader one does not know the required ...

9. what is the OSGi bundle package structure?    stackoverflow.com

i am new to OSGi standard. i want to know more about the structure of bundle package file.

  1. find there is this OSGi-INF folder, the specification mentioned about l10n and permission, i ...





10. how do i find a class if I don't want to use a jar in osgi    stackoverflow.com

i run the osgi using the java command: java -jar org.eclipse.osgi_3.5.1.R35x_v20090827.jar -console and then the bundles could be find in the ./plugins directory. There are 2 questions. (1)I just edited 1 class file in ...

11. How do I change certain plugins under Eclipse 3.6 product export to deploy as exploded Jars?    stackoverflow.com

I am using Eclipse 3.6 product export to build an Equinox-based OSGi application. I would like to be able to configure some of my plugins to deploy exploded instead of as ...

12. How to create OSGi bundle from jar library?    stackoverflow.com

How to create OSGi bundle from jar library?

13. Why make my project an OSGI bundle as opposed to a standard JAR package?    stackoverflow.com

For what reasons would I want to make my project an OSGI bundle as opposed to just a standard JAR package? Does it only make sense if it is going to ...

14. How to get a resource in another jar    stackoverflow.com

I have a jar embedded in a bundle that needs to fetch a resource packaged with it like so:

MyBundle
  -\ src
  -\lib
    -\MyEmbeddedJar
    ...

15. Non-osgi library usage in an osgi application    stackoverflow.com

Is it possible to use a non-osgi library with an osgi application?? For an example, I'm developing a semantic based search engine, and I am using a third party Natural Language ...

16. package OSGI project as a single jar?    stackoverflow.com

I have a large OSGI package that I want to package and release as a single jar file. I'm trying to figure out what the best approach is for packaging ...





17. External classes/jar in OSGi    stackoverflow.com

My application supports running on many dbms and it requires user to configure dbms connection setting and also provide the jdbc jar file. Now the application is to be packaged ...

18. Problem investigating JmDNS3.4.1 jar    stackoverflow.com

I'm newbie here. I'm dealing with my first program using osgi bundles and JmDNS. After adding JmDNS 3.4.1 jar to my project, I'm testing the following basic code: My Activator:

package test.discoverservice;

import java.io.IOException;
import ...

19. Download J2EE API JARs as OSGI bundles    stackoverflow.com

Is there a place where I can download J2EE API JARs as OSGi bundles?

20. Use jsafeJCEFIPS.jar OSGi    stackoverflow.com

Has anyone tried using jsafeJCEFIPS.jar OSGi? The jar is signed, I can't convert it to a bundle. I tried to embedded as jar in bundle, but it is always throws java.lang.SecurityException: ...

21. JAR Hell Hacks for Non-OSGi Developers    stackoverflow.com

Edit: After reviewing the play, the example I used below is a tad misleading. I am looking for the case where I have two 3rd party jars (not homegrown jars where ...

22. class appears to be missing from the org.eclipse.OSGI jar?    stackoverflow.com

I received a new program which I am trying to run. It uses OSGI and is returning a clasnotfoundexception when it tries to access org.eclipse.osgi.framework.internal.core.OSGi. I'm trying to figure ...