Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Changes related to Karaf startup has been done in Karaf 1.6.0 but those changes have not been reflected in the configuration of the Wrapper service. I had to do the following changes in "karaf-wrapper.conf" to get Karaf 1.6.0 to work with the Wrapper service:
a) Change the main class:
wrapper.app.parameter.1=org.apache.felix.karaf.main.Main
b) Add the following line to the classpath:
wrapper.java.classpath.4=%KARAF_HOME%/system/org/apache/felix/org.apache.felix.framework/2.0.5/org.apache.felix.framework-2.0.5.jar
c) Add the following JVM parameters:
wrapper.java.additional.6=-Djava.endorsed.dirs="%JAVA_HOME%/lib/endorsed;%KARAF_HOME%/lib/endorsed"
wrapper.java.additional.7=-Djava.ext.dirs="%JAVA_HOME%/lib/ext;%KARAF_HOME%/lib/ext"
Actually "c)" wasn't really necessary to get Karaf started but it seemed to have been omitted in comparison to "karaf.bat". Overall I think someone should compare the settings in "karaf.bat" with the ones in "karaf-wrapper.conf" to make sure they are the same.