You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by themanatuf <th...@yahoo.com> on 2018/06/11 20:11:01 UTC

Using Felix HTTP Bundle in Karaf v4.2.0

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

Re: Using Felix HTTP Bundle in Karaf v4.2.0

Posted by themanatuf <th...@yahoo.com>.
JB - where you able to find anything about Felix HTTP? If not we'll try
creating our own Karaf distribution. Thanks for the help.



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: Using Felix HTTP Bundle in Karaf v4.2.0

Posted by Tim Moloney <ti...@gmail.com>.
Thanks.  :)

On Sat, May 11, 2019 at 10:29 AM Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:

> Hi guys,
>
> just to let you know that I updated the felix-http feature to use felix
> http 4.0.8.
>
> By default, it uses felix.http.jetty.
>
> I added a itest using felix-http feature and it works fine.
>
> You can take a complete look on the corresponding PR:
>
> https://github.com/apache/karaf/pull/835
>
> I will merge as soon as the tests pass on Jenkins.
>
> Regards
> JB
>
> On 10/05/2019 17:46, Tim Moloney wrote:
> > We are trying to run a minimal environment.  We are currently using
> > org.apache.felix.http.bundle-2.2.1.jar successfully.
> >
> > If we can get org.apache.felix.http.bundle-3.0.0.jar to work, it's only
> > one bundle.
> >
> > Using the pax-http-whiteboard is 20 bundles after editing
> > pax-web-features-7.0.0-features.xml to remove the bundles we don't need.
> >
> > On Fri, May 10, 2019 at 11:26 AM Jean-Baptiste Onofré <jb@nanthrax.net
> > <ma...@nanthrax.net>> wrote:
> >
> >     I created https://issues.apache.org/jira/browse/KARAF-6277 for the
> >     tracking.
> >
> >     In the mean time, you can use the regular Karaf HTTP feature powered
> by
> >     Pax Web.
> >
> >     Regards
> >     JB
> >
> >     On 10/05/2019 17:16, Tim Moloney wrote:
> >     > This issue has surfaced for me also.
> >     >
> >     > JB, did you make any progress fixing the problem that you found?
> >     >
> >     > BTW, in the problem description above, etc/custom.properties
> >     should contain
> >     > org.apache.felix.*http.*jettyEnabled = true
> >     >
> >     >
> >     > On Tue, Jun 12, 2018 at 7:44 AM Jean-Baptiste Onofré
> >     <jb@nanthrax.net <ma...@nanthrax.net>
> >     > <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
> >     >
> >     >     OK, it seems that the problem is in Felix HTTP. Let me try.
> >     >
> >     >     By the way, you can always prepare your own Karaf distribution
> >     embedding
> >     >     Pax Web, it will work without internet connection.
> >     >
> >     >     Regards
> >     >     JB
> >     >
> >     >     On 12/06/2018 13:21, themanatuf wrote:
> >     >     > The reasoning is we are running this application on an
> internal
> >     >     network that
> >     >     > is not connected to the Internet. The
> >     org.apache.felix.http.bundle
> >     >     is a
> >     >     > single jar rather than downloading all of the jars included
> >     in the
> >     >     http
> >     >     > feature. The older version of Felix (v2.2.2) works with the
> >     >     upgraded Karaf,
> >     >     > but the v3.0.0 version does not. If you repeat my steps but
> use
> >     >     Felix v2.2.2
> >     >     > instead of v3.0.0 everything will work just fine. We need
> v3.0.0
> >     >     due to some
> >     >     > of the security updates that are included with it. Thanks
> >     for any
> >     >     other
> >     >     > advice you can provide.
> >     >     >
> >     >     >
> >     >     >
> >     >     > --
> >     >     > Sent from:
> >     http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> >     >     >
> >     >
> >     >     --
> >     >     Jean-Baptiste Onofré
> >     >     jbonofre@apache.org <ma...@apache.org>
> >     <mailto:jbonofre@apache.org <ma...@apache.org>>
> >     >     http://blog.nanthrax.net
> >     >     Talend - http://www.talend.com
> >     >
> >
> >     --
> >     Jean-Baptiste Onofré
> >     jbonofre@apache.org <ma...@apache.org>
> >     http://blog.nanthrax.net
> >     Talend - http://www.talend.com
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Re: Using Felix HTTP Bundle in Karaf v4.2.0

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi guys,

just to let you know that I updated the felix-http feature to use felix
http 4.0.8.

By default, it uses felix.http.jetty.

I added a itest using felix-http feature and it works fine.

You can take a complete look on the corresponding PR:

https://github.com/apache/karaf/pull/835

I will merge as soon as the tests pass on Jenkins.

Regards
JB

On 10/05/2019 17:46, Tim Moloney wrote:
> We are trying to run a minimal environment.  We are currently using
> org.apache.felix.http.bundle-2.2.1.jar successfully.
> 
> If we can get org.apache.felix.http.bundle-3.0.0.jar to work, it's only
> one bundle.
> 
> Using the pax-http-whiteboard is 20 bundles after editing
> pax-web-features-7.0.0-features.xml to remove the bundles we don't need.
> 
> On Fri, May 10, 2019 at 11:26 AM Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>> wrote:
> 
>     I created https://issues.apache.org/jira/browse/KARAF-6277 for the
>     tracking.
> 
>     In the mean time, you can use the regular Karaf HTTP feature powered by
>     Pax Web.
> 
>     Regards
>     JB
> 
>     On 10/05/2019 17:16, Tim Moloney wrote:
>     > This issue has surfaced for me also.
>     >
>     > JB, did you make any progress fixing the problem that you found?
>     >
>     > BTW, in the problem description above, etc/custom.properties
>     should contain
>     > org.apache.felix.*http.*jettyEnabled = true
>     >
>     >
>     > On Tue, Jun 12, 2018 at 7:44 AM Jean-Baptiste Onofré
>     <jb@nanthrax.net <ma...@nanthrax.net>
>     > <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
>     >
>     >     OK, it seems that the problem is in Felix HTTP. Let me try.
>     >
>     >     By the way, you can always prepare your own Karaf distribution
>     embedding
>     >     Pax Web, it will work without internet connection.
>     >
>     >     Regards
>     >     JB
>     >
>     >     On 12/06/2018 13:21, themanatuf wrote:
>     >     > The reasoning is we are running this application on an internal
>     >     network that
>     >     > is not connected to the Internet. The
>     org.apache.felix.http.bundle
>     >     is a
>     >     > single jar rather than downloading all of the jars included
>     in the
>     >     http
>     >     > feature. The older version of Felix (v2.2.2) works with the
>     >     upgraded Karaf,
>     >     > but the v3.0.0 version does not. If you repeat my steps but use
>     >     Felix v2.2.2
>     >     > instead of v3.0.0 everything will work just fine. We need v3.0.0
>     >     due to some
>     >     > of the security updates that are included with it. Thanks
>     for any
>     >     other
>     >     > advice you can provide.
>     >     >
>     >     >
>     >     >
>     >     > --
>     >     > Sent from:
>     http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>     >     >
>     >
>     >     --
>     >     Jean-Baptiste Onofré
>     >     jbonofre@apache.org <ma...@apache.org>
>     <mailto:jbonofre@apache.org <ma...@apache.org>>
>     >     http://blog.nanthrax.net
>     >     Talend - http://www.talend.com
>     >
> 
>     -- 
>     Jean-Baptiste Onofré
>     jbonofre@apache.org <ma...@apache.org>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Using Felix HTTP Bundle in Karaf v4.2.0

Posted by Tim Moloney <ti...@gmail.com>.
We are trying to run a minimal environment.  We are currently using
org.apache.felix.http.bundle-2.2.1.jar successfully.

If we can get org.apache.felix.http.bundle-3.0.0.jar to work, it's only one
bundle.

Using the pax-http-whiteboard is 20 bundles after editing
pax-web-features-7.0.0-features.xml to remove the bundles we don't need.

On Fri, May 10, 2019 at 11:26 AM Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:

> I created https://issues.apache.org/jira/browse/KARAF-6277 for the
> tracking.
>
> In the mean time, you can use the regular Karaf HTTP feature powered by
> Pax Web.
>
> Regards
> JB
>
> On 10/05/2019 17:16, Tim Moloney wrote:
> > This issue has surfaced for me also.
> >
> > JB, did you make any progress fixing the problem that you found?
> >
> > BTW, in the problem description above, etc/custom.properties should
> contain
> > org.apache.felix.*http.*jettyEnabled = true
> >
> >
> > On Tue, Jun 12, 2018 at 7:44 AM Jean-Baptiste Onofré <jb@nanthrax.net
> > <ma...@nanthrax.net>> wrote:
> >
> >     OK, it seems that the problem is in Felix HTTP. Let me try.
> >
> >     By the way, you can always prepare your own Karaf distribution
> embedding
> >     Pax Web, it will work without internet connection.
> >
> >     Regards
> >     JB
> >
> >     On 12/06/2018 13:21, themanatuf wrote:
> >     > The reasoning is we are running this application on an internal
> >     network that
> >     > is not connected to the Internet. The org.apache.felix.http.bundle
> >     is a
> >     > single jar rather than downloading all of the jars included in the
> >     http
> >     > feature. The older version of Felix (v2.2.2) works with the
> >     upgraded Karaf,
> >     > but the v3.0.0 version does not. If you repeat my steps but use
> >     Felix v2.2.2
> >     > instead of v3.0.0 everything will work just fine. We need v3.0.0
> >     due to some
> >     > of the security updates that are included with it. Thanks for any
> >     other
> >     > advice you can provide.
> >     >
> >     >
> >     >
> >     > --
> >     > Sent from:
> http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> >     >
> >
> >     --
> >     Jean-Baptiste Onofré
> >     jbonofre@apache.org <ma...@apache.org>
> >     http://blog.nanthrax.net
> >     Talend - http://www.talend.com
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Re: Using Felix HTTP Bundle in Karaf v4.2.0

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
I created https://issues.apache.org/jira/browse/KARAF-6277 for the tracking.

In the mean time, you can use the regular Karaf HTTP feature powered by
Pax Web.

Regards
JB

On 10/05/2019 17:16, Tim Moloney wrote:
> This issue has surfaced for me also.
> 
> JB, did you make any progress fixing the problem that you found?
> 
> BTW, in the problem description above, etc/custom.properties should contain
> org.apache.felix.*http.*jettyEnabled = true
> 
> 
> On Tue, Jun 12, 2018 at 7:44 AM Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>> wrote:
> 
>     OK, it seems that the problem is in Felix HTTP. Let me try.
> 
>     By the way, you can always prepare your own Karaf distribution embedding
>     Pax Web, it will work without internet connection.
> 
>     Regards
>     JB
> 
>     On 12/06/2018 13:21, themanatuf wrote:
>     > The reasoning is we are running this application on an internal
>     network that
>     > is not connected to the Internet. The org.apache.felix.http.bundle
>     is a
>     > single jar rather than downloading all of the jars included in the
>     http
>     > feature. The older version of Felix (v2.2.2) works with the
>     upgraded Karaf,
>     > but the v3.0.0 version does not. If you repeat my steps but use
>     Felix v2.2.2
>     > instead of v3.0.0 everything will work just fine. We need v3.0.0
>     due to some
>     > of the security updates that are included with it. Thanks for any
>     other
>     > advice you can provide.
>     >
>     >
>     >
>     > --
>     > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>     >
> 
>     -- 
>     Jean-Baptiste Onofré
>     jbonofre@apache.org <ma...@apache.org>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Using Felix HTTP Bundle in Karaf v4.2.0

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

Not yet started but I will investigate during the weekend. I will create
a Jira for the tracking.

By the way, why not using Karaf pax web feature (with jetty) ?
Do you have any concern with Pax Web ?

Regards
JB

On 10/05/2019 17:16, Tim Moloney wrote:
> This issue has surfaced for me also.
> 
> JB, did you make any progress fixing the problem that you found?
> 
> BTW, in the problem description above, etc/custom.properties should contain
> org.apache.felix.*http.*jettyEnabled = true
> 
> 
> On Tue, Jun 12, 2018 at 7:44 AM Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>> wrote:
> 
>     OK, it seems that the problem is in Felix HTTP. Let me try.
> 
>     By the way, you can always prepare your own Karaf distribution embedding
>     Pax Web, it will work without internet connection.
> 
>     Regards
>     JB
> 
>     On 12/06/2018 13:21, themanatuf wrote:
>     > The reasoning is we are running this application on an internal
>     network that
>     > is not connected to the Internet. The org.apache.felix.http.bundle
>     is a
>     > single jar rather than downloading all of the jars included in the
>     http
>     > feature. The older version of Felix (v2.2.2) works with the
>     upgraded Karaf,
>     > but the v3.0.0 version does not. If you repeat my steps but use
>     Felix v2.2.2
>     > instead of v3.0.0 everything will work just fine. We need v3.0.0
>     due to some
>     > of the security updates that are included with it. Thanks for any
>     other
>     > advice you can provide.
>     >
>     >
>     >
>     > --
>     > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>     >
> 
>     -- 
>     Jean-Baptiste Onofré
>     jbonofre@apache.org <ma...@apache.org>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Using Felix HTTP Bundle in Karaf v4.2.0

Posted by Tim Moloney <ti...@gmail.com>.
This issue has surfaced for me also.

JB, did you make any progress fixing the problem that you found?

BTW, in the problem description above, etc/custom.properties should contain
org.apache.felix.*http.*jettyEnabled = true


On Tue, Jun 12, 2018 at 7:44 AM Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:

> OK, it seems that the problem is in Felix HTTP. Let me try.
>
> By the way, you can always prepare your own Karaf distribution embedding
> Pax Web, it will work without internet connection.
>
> Regards
> JB
>
> On 12/06/2018 13:21, themanatuf wrote:
> > The reasoning is we are running this application on an internal network
> that
> > is not connected to the Internet. The org.apache.felix.http.bundle is a
> > single jar rather than downloading all of the jars included in the http
> > feature. The older version of Felix (v2.2.2) works with the upgraded
> Karaf,
> > but the v3.0.0 version does not. If you repeat my steps but use Felix
> v2.2.2
> > instead of v3.0.0 everything will work just fine. We need v3.0.0 due to
> some
> > of the security updates that are included with it. Thanks for any other
> > advice you can provide.
> >
> >
> >
> > --
> > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Re: Using Felix HTTP Bundle in Karaf v4.2.0

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
OK, it seems that the problem is in Felix HTTP. Let me try.

By the way, you can always prepare your own Karaf distribution embedding
Pax Web, it will work without internet connection.

Regards
JB

On 12/06/2018 13:21, themanatuf wrote:
> The reasoning is we are running this application on an internal network that
> is not connected to the Internet. The org.apache.felix.http.bundle is a
> single jar rather than downloading all of the jars included in the http
> feature. The older version of Felix (v2.2.2) works with the upgraded Karaf,
> but the v3.0.0 version does not. If you repeat my steps but use Felix v2.2.2
> instead of v3.0.0 everything will work just fine. We need v3.0.0 due to some
> of the security updates that are included with it. Thanks for any other
> advice you can provide.
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Using Felix HTTP Bundle in Karaf v4.2.0

Posted by themanatuf <th...@yahoo.com>.
The reasoning is we are running this application on an internal network that
is not connected to the Internet. The org.apache.felix.http.bundle is a
single jar rather than downloading all of the jars included in the http
feature. The older version of Felix (v2.2.2) works with the upgraded Karaf,
but the v3.0.0 version does not. If you repeat my steps but use Felix v2.2.2
instead of v3.0.0 everything will work just fine. We need v3.0.0 due to some
of the security updates that are included with it. Thanks for any other
advice you can provide.



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: Using Felix HTTP Bundle in Karaf v4.2.0

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

In Karaf, the HTTP service is provided by Pax Web, and it's the
recommended approach (feature:install http).

Any reason why to use Felix HTTP instead ?

Anyway, regarding your error, I have to check if the Felix HTTP bundle
has been compiled with Java 7/8.

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é
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Using Felix HTTP Bundle in Karaf v4.2.0

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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é
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com