Hello,

Thankyou. I've tried to correct this issue with the following code:

        private static final String JAVA_ENDORSED_DIRS = "java.endorsed.dirs";
        private static final String JAVA_EXT_DIRS = "java.ext.dirs";

....

                String endorsedDirs = System.getProperty(JAVA_ENDORSED_DIRS, 
"");
                if (endorsedDirs != null && endorsedDirs.trim().length() > 0) {
                        endorsedDirs += ":";
                }
                endorsedDirs += karafDirectory.getAbsolutePath() + 
"/lib/endorsed";
                
                String extDirs = System.getProperty(JAVA_EXT_DIRS, "");
                if (extDirs != null && extDirs.trim().length() > 0) {
                        extDirs += ":";
                }
                extDirs += karafDirectory.getAbsolutePath() + "/lib/ext"; 
                
                getLog().info("Setting system properties");
                System.setProperty(JAVA_ENDORSED_DIRS, endorsedDirs);
                System.setProperty(JAVA_EXT_DIRS, extDirs);
        
But I'm still having the same error. When I launch from the command line it
works. I must be missing some additional stuff...
Any ideia what could be ?



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Run-goal-of-karaf-maven-plugin-does-not-configure-the-endorsed-folders-tp4049794p4049819.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to