Hi, just to let you know that I already add felix-http feature while ago.
It's available wth the right version: https://github.com/apache/karaf/blob/master/assemblies/features/standard/src/main/feature/feature.xml#L837 You also have httplist feature: https://github.com/apache/karaf/blob/master/assemblies/features/standard/src/main/feature/feature.xml#L832 I'm upgrading to Felix HTTP 4.0.8. You should not use Felix http.bundle 3.x as it's super old. Felix HTTP 4.0.x is tested and validated on Karaf. I'm adding new itests around felix-http and httplite to verify the behavior on each build. So, use the provided feature, http.bundle 3.0.x is too old. Regards JB On 11/06/2018 22:11, themanatuf wrote: > I'm trying to get org.apache.felix.http.bundle v3.0.0 to work under Karaf > v4.2.0 but am not having much success. We are using Karaf on an internal > network that does not have Internet access so I cannot use the http feature > that is already within Karaf. > > We are upgrading Karaf from v3.0 and we were also using > org.apache.felix.http.bundle v2.2.2. This worked as expected (the HTTP > service started with Karaf and hosted our internal web pages). However > trying to use the latest version of Karaf and this new http bundle is giving > us an "IncompatibleClassChangeError: Implementing class" when the > org.apache.felix.http.bundle is started. Here are the steps to reproduce: > > 1. Download a copy of apache-karaf-4.2.0.tar.gz and untar it > 2. Download a copy of org.apache.felix.http.bundle-3.0.0.jar > 3. cd into apache-karaf-4.2.0 > 4. mkdir -p system/org/apache/felix/org.apache.felix.http.bundle/3.0.0/ > 5. Copy org.apache.felix.http.bundle-3.0.0.jar into the directory you just > created > 6. Open > system/org/apache/karaf/features/standard/4.2.0/standard-4.2.0-features.xml > 7. At the bottom, before '<feature name="standard"...>' add the following > lines: > > <feature name="felix-http" description="Apache Felix HTTP Bundle" > version="4.2.0"> > <bundle>mvn:org.apache.felix/org.apache.felix.http.bundle/3.0.0</bundle> > <config name="org.apache.felix.http"> > org.osgi.service.http.port=8888 > </config> > </feature> > > 8. Open etc/custom.properties > 9. Add the following line to the bottom: org.apache.felix.jettyEnabled = > true > 10. Execute ./bin/karaf > 11. At the karaf prompt type: feature:install felix-http > > At this point I get a stack trace about trying to start the bundle. Am I > doing something wrong? This seems like a pretty simple use case but I cannot > figure out how to make it work. Thanks a lot for anyone's help as this has > been bugging me for days. > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html > -- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
