Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 401877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:04:27+00:00 2026-05-12T17:04:27+00:00

What bundles do I need to install? At least, this would have to be

  • 0

What bundles do I need to install? At least, this would have to be a servlet container / web server such as Jetty, but will the basic org.apache.felix.http.jetty bundle do, or is there anything else needed to discover the web.xml in other bundles?

Do I put the webapp in a standard WAR, add OSGi headers and am done? Or are there any webapp specific headers required for the OSGi environment?

What other configuration has to be done?

What are options to automate these steps using Maven?

I have tried deploying the org.apache.felix.http.jetty bundle, and I get a Jetty answering with 404 on localhost:8080. Next, I tried a simple webapp with nothing but a static HTML file configured as a welcome-file. As far as I can tell, Jetty doesn’t even notice the deployment descriptor, at least deploying the test webapp into Felix doesn’t change anything at all.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T17:04:27+00:00Added an answer on May 12, 2026 at 5:04 pm

    Jetty and the webapp alone are not enough, there has to be some glue that actually registers the webapp at the web server under a specific context.

    One example that works:

    • use the Pax web service in the org.ops4j.pax.web.pax-web-service bundle as the HTTP Service, it runs Jetty, too
    • add a Webapp-Context header to your bundle manifest
    • use the Pax web extender to look for that header when your bundle registers, it will then hook it up to the http service.

    For some reason, it has to be the Pax webservice, if I replace it with the basic jetty bundle from org.apache.felix, it won’t resolve the URL properly.

    I’m still a long way from actually understanding what’s going on here, but at least I got it working. I suspect you could do without the Pax bundles and the bundle header if you let your webapp bundle do something in its bundle activator to perform the hookup.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A question similar to Locating bundles by identifier , but different problem: I have
I have to install a gem (liquid) from Git. But currently in the GitHub
I'm following this tutorial and I've come to where I need to install these
I have a Gem that I need to install it from github using bundler
I just install rails 3 and all gems that it need, but when I
I want to install a gem via gem install , but I need it
HELP!! I need to bundle a gem otherwise a published client's site will stay
I have an image that I have in my bundle resources that I need
I have different Bundles: MainBundle (Homepage), SecurityBundle (Login, Registration), MessageBundle (Message System), ShopBundle. I
I have 2 bundles A and B, using Apache ACE I have provisioned these

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.