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 216695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:35:18+00:00 2026-05-11T18:35:18+00:00

I have a server application that consists of multiple OSGi bundles, some mine, some

  • 0

I have a server application that consists of multiple OSGi bundles, some mine, some third-party. One of the bundles provides a web frontend using Struts. The necessary Struts libraries live inside the web front-end bundle.

Now I want to add a second bundle that provides another web front-end, with different dependencies and a very different use case. I want to use Struts for that bundle, too, but I don’t want to put the same libraries into two bundles.

With OSGi, it should be no problem to separate the Struts libs in a bundle of their own and use that from both my bundles. However, I couldn’t find Struts packaged that way.

Some quick googling and a look at the Struts homepage didn’t yield anything. I could find a plugin for Struts to run an OSGi container inside Struts, but that’s not what I want.

  • 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-11T18:35:18+00:00Added an answer on May 11, 2026 at 6:35 pm

    Take a look at the current struts bundles on http://repo2.maven.org/maven2/org/apache/struts/struts2-core/2.1.6/.

    If you download struts2-core-2.1.6.jar for example, extract it and take a look at META-INF/MANIFEST.MF you’ll see that it does contain OSGI headers (Import-Package, Export-Package, Bundle-*):

    C:\TMP\META-INF>more MANIFEST.MF
    Manifest-Version: 1.0
    Archiver-Version: Plexus Archiver
    Created-By: 1.5.0_10 (Sun Microsystems Inc.)
    Built-By: musachyb
    Build-Jdk: 1.5.0_10
    Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt
    Import-Package: com.opensymphony.xwork2;version="2.1",com.opensymphon
     <SNIP>
    Bnd-LastModified: 1231185746365
    Export-Package: org.apache.struts2.views.xslt;uses:="javax.servlet.ht
    Bundle-Version: 2.1.6
     <SNIP>
    Bundle-Description: Apache Struts 2
    Bundle-Name: Struts 2 Core
    Bundle-DocURL: http://www.apache.org
    Bundle-ManifestVersion: 2
    Bundle-Vendor: Apache Software Foundation
    Bundle-SymbolicName: org.apache.struts.struts2-core
    Tool: Bnd-0.0.255
    

    No idea how you go about using them within an OSGi app – but in theory you can atleast reference them and do “stuff”!! 🙂

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

Sidebar

Related Questions

I have a server application that receives some special TCP packet from a client
I have a client-server application that utilises MSMQ and NServiceBus for messaging. During some
I have this senario. We have an application server that contains a few web
We have a server application that has one module installed on a separate server,
I have a solution in VS 2008 that consists of multiple Asp.net Web applications.
I have a production application that consists of An app server VM1 - 192.168.0.4
I have a web application that consists of Website and REST API. Should I
I have an application that consists of three parts: a front-end web shop for
We have a server application that we want to restrict non-users from triggerring it
I have a server application that needs to find and exchange small amounts of

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.