karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Leung" <tom.le...@netage.com.hk>
Subject RE: unable to getRealPath for servlet context
Date Thu, 06 Mar 2014 05:38:21 GMT
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:asookazian@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.


Mime
View raw message