On Friday 11 January 2008 19:44, Peter Neubauer wrote:
> -> start 4
> Caused by: java.lang.NoClassDefFoundError:
> org/osgi/framework/BundleActivator at
> java.lang.ClassLoader.defineClass1(Native Method)
This is really odd...
Are you running in some out of the ordinary environment, since
1) Pax Logging API indeed imports the system defined package.
2) Running Pax Logging Example from command line;
[EMAIL PROTECTED]:~/dev/ops4j/projects/pax/logging/temp$ pax-run.sh ./
______ ________ __ __
/ __ / / __ / / / / /
/ ___/ / __ / _\ \ _/
/ / / / / / / _\ \
/__/ /__/ /__/ /_/ /_/
Pax Runner from OPS4J - http://www.ops4j.org
--------------------------------------------
<snip/>
Welcome to Felix.
=================
<snip/>
-> ps
START LEVEL 6
ID State Level Name
[ 0] [Active ] [ 0] System Bundle (1.0.1)
[ 1] [Active ] [ 1] org.osgi.r4.compendium (1.0.0)
[ 2] [Active ] [ 1] Apache Felix Shell Service (1.0.0)
[ 3] [Active ] [ 1] Apache Felix Shell TUI (1.0.0)
[ 4] [Active ] [ 5] OPS4J - Pax Logging API (1.0.0.RC3_SNAPSHOT)
[ 5] [Active ] [ 5] OPS4J - Pax Logging Service (1.0.0.RC3_SNAPSHOT)
> -> start 6
> org.osgi.framework.BundleException: Unresolved package in bundle 6:
> package;
> (&(package=org.osgi.service.event)(version>=1.1.0)(!(version>=2.0.0)))
This is strange for the same reason. Pax Logging needs the Event Admin API,
which sits in the R4 Compendium bundle. If there is no service available, Pax
Logging will not use it.
I strongly suspect that you are running a weird environment, where things are
not what they seem to be. But I can't figure out what, as Felix classloader
should not be leaking anything from its outer environment (other than java.*)
Cheers
--
Niclas Hedhman, Software Developer
I live here; http://tinyurl.com/2qq9er
I work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general