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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:19:40+00:00 2026-06-17T16:19:40+00:00

I am running a very simple osgi bundle whose activator looks like this public

  • 0

I am running a very simple osgi bundle whose activator looks like this

 public void start(BundleContext bundleContext) throws Exception {
    JAXBContext con =  JAXBContext.newInstance(Activator.class);
 }

This always throws exception

org.osgi.framework.BundleException: Exception in com.test.bundle.Activator.start() of bundle com.test.bundle.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1177)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
 Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBContext
at com.test.bundle.Activator.start(Activator.java:26)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
... 12 more
 Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBContext
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 16 more

I am running java version “1.6.0_37”. These are the bundles i am running

id  State       Bundle
0   ACTIVE      org.eclipse.osgi_3.8.0.v20120529-1548
1   ACTIVE      org.eclipse.core.runtime_3.8.0.v20120521-2346
2   ACTIVE      org.ops4j.pax.logging.pax-logging-api_1.7.0
3   RESOLVED    com.test.bundle_1.0.0.201301181429
4   ACTIVE      org.eclipse.equinox.common_3.6.100.v20120522-1841
5   ACTIVE      org.eclipse.equinox.console_1.0.0.v20120522-1841  
6   ACTIVE      org.apache.felix.gogo.runtime_0.8.0.v201108120515
7   ACTIVE      org.apache.felix.gogo.shell_0.8.0.v201110170705
8   ACTIVE      org.apache.felix.gogo.command_0.8.0.v201108120515
9   ACTIVE      org.eclipse.core.jobs_3.5.300.v20120622-204750
10  ACTIVE      org.eclipse.equinox.registry_3.5.200.v20120522-1841
11  ACTIVE      org.eclipse.equinox.preferences_3.5.0.v20120522-1841
12  ACTIVE      org.eclipse.core.contenttype_3.4.200.v20120523-2004
13  ACTIVE      org.eclipse.equinox.app_1.3.100.v20120522-1841

isn’t javax.xml shipped with java 1.6 ? I also tried adding javax.xml bundles but that didn’t solve the issue.

  • 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-17T16:19:41+00:00Added an answer on June 17, 2026 at 4:19 pm

    You will need to be sure that you import the javax.xml.bind package or the JAXB public API bundle in the META-INF/MANIFEST.MF file.

    OSGi Example (MOXy used as JAXB (JSR-222) provider)

    • Moxy error with Karaf
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very simple CGI webserver running using python CGIHTTPServer class. This class
This is probably very simple but I seem to be running around in ever
I'm running OSX 10.6, and I have this very simple script in a file
This should be a very simple task, but for some reason I'm running into
I have very simple query like this: SELECT * FROM `all_conversations` WHERE `deleted_1` !=
I have a very simple Java RMI Server that looks like the following: import
I am running a very simple program, which is trying to list files in
I have a very simple WCF service running that has a single method that
I have a very simple test program, running on Solaris 5.8: #include <stdio.h> #include
We are running a very simple Symfony script, that randomly returns an Error 500.

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.