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

  • Home
  • SEARCH
  • 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 7775485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:38:35+00:00 2026-06-01T17:38:35+00:00

I try to embed axis2 (v. 1.5.1) and its dependencies in an osgi bundle

  • 0

I try to embed axis2 (v. 1.5.1) and its dependencies in an osgi bundle using the maven-bundle-plugin. In my projects’ pom, I have the following tags:

<Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
<Embed-Transitive>true</Embed-Transitive>

In order that all axis2 dependencies (and transitive ones) are embedded into the final jar file. The jar file can be installed successfully in Felix, but the problem is that when another bundle try to use methods from a class of this jar, I get the exception:

javax.xml.stream.FactoryConfigurationError: Requested factory 
    com.ctc.wstx.stax.WstxInputFactory cannot be located.  
    Classloader =sun.misc.Launcher$AppClassLoader@9cab16

The com.ctc.wstx.stax.WstxInputFactory class is located in the woodstox wstx-asl artifact which is embedded into the jar, thus this exception should not be thrown.
I also tried to put this artifact into another bundle, but the same error occurs.

What is the issue here?

In this discussion they state that it is a class loader issue, but I can not find any solution.

Thank you

  • 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-06-01T17:38:36+00:00Added an answer on June 1, 2026 at 5:38 pm

    In the mailing list thread you mentioned, I already described one solution, which is not to embed StAX into the bundle, but to use OSGified versions of the StAX API and implementation (Woodstox).

    If embedding StAX into the bundle is a hard requirement, then you need to add a bundle activator that calls the static setFactoryPerClassLoader method in org.apache.axiom.om.util.StAXUtils to set that property to false. At least this should work for any code (including Axis2) that uses StAX through Axiom, but you may still encounter the issue if there is code that interacts directly with StAX.

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

Sidebar

Related Questions

I'm using pyparsing to parse HTML. I'm grabbing all embed tags, but in some
I am trying to embed a font using the following code that I found
Is it ok to embed a try/catch within a using statement for a web
i try to embed a link to an external website into a pdf-file, generated
I try to have some inheritance with attributeBindings between two View. (function(exports) { Ember.MobileBaseView
Try the following code public enum Color { Blue=1, Red=2, Green=3 } public List<Color>
Try executing the following in JavaScript: parseInt('01'); //equals 1 parseInt('02'); //equals 2 parseInt('03'); //equals
This is the svg I try to embed: <script type=image/svg+xml> <svg width=200 height=200 style=background-color:
I have created a custom control using VB.NET in Visual Studio 2008 that gives
I'm trying to embed a ChartModule.aspx page within a Default.aspx page using an iframe

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.