Hello together,

I try to explain my problem as short as possible.

Context description:
-------------------
Karaf Versions: 4.1.7. , 4.2.0 and 4.2.6
jdk Version: 1.8.0_161
host os: windows 10

Use Case:
---------.
1.) starting karaf in server mode
2.) install feature scr for declarative service support   - feature:install
scr
3.) install very simple bundle from local filesystem       - install
file:///C:/....../...jar
4.) start new installed bundle

How the installed bundle looks like and the resulting problem:
----------------------------------------------------------
@Component(immediate = true)
public final class Main {
        @Activate
        public void OnActivate() {
                System.out.println("Main.OnActivate() ENTER");
                try {
                        System.out.println(SSLContext.class.getName());
                }catch (Exception e) {
                        e.printStackTrace();
                }
                System.out.println("Main.OnActivate() EXIT");
}

The only output I get comes from the first System.out.println.
The trial to access the SSLContext results in a NoClassDefFoundError:
javax/net/ssl/SSLContext
and the bundle changing into state "WAITING"

Has anybody an idea how to bring karaf class loader to find the class file,
which is part of the runtime?
java.home= (.set.to.)\jdk1.8.0_161\jre
java.library.path=(.set.to.)\jdk1.8.0_161\bin;(.some.other.);(...)\apache-karaf-4.2.6\bin\..\lib;(...)\apache-karaf-4.2.6\bin\..\lib;.

Thankx a lot for all comments
djawaica

 



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Reply via email to