Hi,
I'm trying to lunch a second Felix instance inside a Felix bundle, or to be more precise the second instance of felix is inside a jar which it's inside a bundle. So this is the situation: I have the main program (MainProgram) which Felix is embedded. This MainProgram find and install various bundle and inside one of this (ParticularBundle) there are two jars, one (SpecialJar.jar) that starts another instance of Felix and another "normal" jar (NormalJar.jar). Naturally the Manifest of the ParticularBundle contains the following lines:

Bundle-ClassPath: .,
  lib/SpecialJar.jar,
  lib/NormalJar.jar

The second instance of Felix seems to start fine, but for some reasons it's able to export correctly (using Constants.FRAMEWORK_SYSTEMPACKAGES) only the packages which were imported with the manifest of ParticularBundle. This means that in ParticularBundle I can use all the classes that are contained in the two jars (SpecialJar.jar and NormalJar.jar), but all the bundle that are discovered and installed by the instance of Felix in SpecialJar.jar are able to use only the package exported by the first instance of Felix, imported by ParticularBundle and then exported by the second instance of Felix, but when they try to use a class of a package that belongs to SpecialJar.jar or NormalJar.jar and is exported by the second isntance of Felix they throw a java.lang.NoClassDefFoundError: my.package.MyClass (this should mean that the bundle is importing the package and that the socond instance of Felix it's exporting it).

I think that it is a classloader problem, but I really don't know how to solve it.

Regards,

Andrea Turbati

--

-------------------------------------------------

Dott. Andrea Turbati

AI Research Group PhD student,

Dept. of Computer Science, Systems and Production

University of Roma, Tor Vergata

Via del Politecnico 1 00133 ROMA (ITALY)

tel: +39 06 7259 7332 (lab)

e_mail: [email protected]

home page: http://art.uniroma2.it/turbati/

--------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to