Hi Joel,

You can simplify your life by using Apache Felix Karaf. All the required
bundles are present (to install the web console) or can be added thourgh
using two commands :

1) First install or build Apache Felix Karaf 0.9-SNAPSHOT
2) When the console is up, use the following two commands :
- features:install http
- features:install webconsole

Behind the scene, karaf will install the following bundles :

    <feature name="http" version="0.9.0-SNAPSHOT">
        <config name="org.ops4j.pax.web">
          org.osgi.service.http.port=8181
        </config>

<bundle>mvn:org.apache.geronimo.specs/geronimo-servlet_2.5_spec/1.1.2</bundle>

<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jetty-bundle/6.1.14_1</bundle>
        <bundle>mvn:org.ops4j.pax.web/pax-web-bundle/0.6.0</bundle>
    </feature>
    <feature name="webconsole" version="0.9.0-SNAPSHOT">
        <feature version="0.9.0-SNAPSHOT">http</feature>
        <config
name="org.apache.felix.webconsole.internal.servlet.OsgiManager">
          username=karaf
          password=karaf
        </config>

<bundle>mvn:org.apache.felix/org.apache.felix.metatype/1.0.2</bundle>

<bundle>mvn:org.apache.felix/org.apache.felix.webconsole/1.2.11-SNAPSHOT</bundle>
        <!-- TODO: uncomment when FELIX-1133 is resolved

<bundle>mvn:org.apache.felix.karaf.webconsole/org.apache.felix.karaf.webconsole.branding/0.9.0-SNAPSHOT</bundle>
        -->

<bundle>mvn:org.apache.felix.karaf.webconsole/org.apache.felix.karaf.webconsole.admin/0.9.0-SNAPSHOT</bundle>

<bundle>mvn:org.apache.felix.karaf.webconsole/org.apache.felix.karaf.webconsole.features/0.9.0-SNAPSHOT</bundle>

<bundle>mvn:org.apache.felix.karaf.webconsole/org.apache.felix.karaf.webconsole.gogo/0.9.0-SNAPSHOT</bundle>
    </feature>

3) next open your favorite web browser at the following url :
http://localhost:8181/system/console
4) user name = karaf and password = karaf

As you can see, we only need the jetty web server, pax web 0.6 who will
allow the registration of the webconsole in the containder of the web
application server. If you plan to deploy a war, you must add PAX WEB EXT
WAR and maybe use Pax Url War (to make your war osgi. You have to check for
JSP pages and TagLib if you need additional stuffs bu normally they are
present in PAX WEB otherwise look at PAX WEB EXT JSP

Regards

Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com


On Thu, Aug 27, 2009 at 6:23 PM, Joel Schuster <[email protected]> wrote:

> I need to use the PaxWeb that comes with the cxf distribute osgi bundle(s).
> However, if I have PaxWeb and Felix' Http Service based on Jetty there end
> up being conflicts and things don't work quite right.
>
> As Felix' Http Service bundles doesn't export org.mortbay.jetty* like
> PaxWeb I can't use it instead. However, when I use just PaxWeb the
> WebConsole doesn't work right.
>
> Thoughts to get over this bundle conflict?
>
> ________________________________
>
> Joel Schuster
> Senior Software Engineer
> NAVSYS Corporation
> 14960 Woodcarver Road, Colorado Springs, CO 80921
> 719-481-4877
>
>
>
>

Reply via email to