May change Karaf to use Equinox instead of Felix.

1. check config.properties under "/etc" folder, make the following change.

karaf.framework=equinox

2. then locate the Equinox version.

For example, Karaf v2.3.4 uses Equinox v3.8.0

#
# Framework selection properties
#
karaf.framework=equinox

#
# Location of the OSGi frameworks
#
karaf.framework.equinox=${karaf.default.repository}/org/eclipse/osgi/3.8.0.v
20120529-1548/osgi-3.8.0.v20120529-1548.jar
karaf.framework.felix=${karaf.default.repository}/org/apache/felix/org.apach
e.felix.framework/4.0.3/org.apache.felix.framework-4.0.3.jar

3. shutdown and restart Karaf

4. Go to http://download.eclipse.org/equinox/ and download the corresponding
Equinox SDK zip file.

Inside it, you may find the corresponding file as below:

org.eclipse.equinox.common-<version number>.jar

At the end, install this bundle in your Karaf.


Of course, you may try to find the corresponding
"org.eclipse.equinox.common" file from Maven repo.








-----Original Message-----
From: asookazian2 [mailto:asookaz...@gmail.com] 
Sent: Thursday, March 06, 2014 12:58 PM
To: user@karaf.apache.org
Subject: RE: unable to getRealPath for servlet context

Thx for quick response.  What is the equivalent to FileLocator in karaf? 



--
View this message in context:
http://karaf.922171.n3.nabble.com/unable-to-getRealPath-for-servlet-context-
tp4032109p4032114.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to