org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.core.kernel [71]: Unable to resolve 71.0: missing requirement [71.0] package; (package=com.sun.management)

Java.net JIRA | Byron Nevins | 6 years ago
  1. 0

    Add one line of code to a core/kernel command. build copy the jar to modules (like I've done a million times before) Mar 9, 2011 5:56:39 PM Main start WARNING: Exception while starting bundle org.glassfish.core.kernel [71] org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.core.kernel [71]: Unable to resolve 71.0: missing requirement [71.0] package; (package=com.sun.management) at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3443) at org.apache.felix.framework.Felix.startBundle(Felix.java:1727) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:922) at org.jvnet.hk2.osgimain.Main.start(Main.java:157) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:629) at org.apache.felix.framework.Felix.activateBundle(Felix.java:1835) at org.apache.felix.framework.Felix.startBundle(Felix.java:1752) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) at java.lang.Thread.run(Thread.java:662) ================ The problem is that the server is in a Zombie state. It is not dead. It is not alive. Isn't this above problem catastrophic enough to warrant killing off the process? D:\gf\v3\core\kernel>jps 6500 admin-cli.jar 3880 716 ASMain 6412 Jps

    Java.net JIRA | 6 years ago | Byron Nevins
    org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.core.kernel [71]: Unable to resolve 71.0: missing requirement [71.0] package; (package=com.sun.management)
  2. 0

    [GLASSFISH-15772] 3.0.1 to 3.1 update requires removal of osgi-cache for the DAS to start - Java.net JIRA

    java.net | 11 months ago
    org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.core.kernel [204] : Unable to resolve 204.0: missing requirement [204.0] package; (&(package=com.sun.appserv.server)(version>=3.0.0)) [caused by: Unable to resolve 202.0: missing requirement [202.0] package; (&(package=com.sun.enterprise.module)(version>=1.0.0)) [caused by: Unable to resolve 57.0: missing requirement [57.0] package; (&(package=com.sun.hk2.component)(version>=1.0.0)) [caused by: Unable to resolve 198.0: missing requirement [198.0] package; (package=org.jvnet.tiger_types)]]]
  3. 0

    Once I address issue 15093, I now see: WARNING: Exception while starting bundle org.glassfish.core.kernel [47] org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.core.kernel [47]: Unable to resolve 47.0: missing requirement [47.0] package; (&(package=com.sun.appserv.server)(version>=3.1.0)) [caused by: Unable to resolve 12.0: missing requirement [12.0] package; (&(package=com.sun.enterprise.module)(version>=1.0.0)) [caused by: Unable to resolve 44.0: missing requirement [44.0] package; (&(package=org.jvnet.hk2.config)(version>=1.0.0)) [caused by: Unable to resolve 37.0: missing requirement [37.0] package; (&(package=javax.validation)(version>=1.0.0)) [caused by: Unable to resolve 16.0: missing requirement [16.0] package; (package=javax.persistence)]]]] at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3404) at org.apache.felix.framework.Felix.startBundle(Felix.java:1714) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:922) at org.jvnet.hk2.osgimain.Main.start(Main.java:154) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:633) at org.apache.felix.framework.Felix.activateBundle(Felix.java:1822) at org.apache.felix.framework.Felix.startBundle(Felix.java:1739) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1143) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) at java.lang.Thread.run(Thread.java:619) It seems bean-validation bundle has mandatpry Impolrt-Package for javax.persistence packages. When I look at the source code of bean-validator, that does not seem to be the case and in fact, it should not be the case. Especially look at src/main/java/org/hibernate/validator/engine/resolver/DefaultTraversableResolver.java in bean-validator code base to see that they actually expect some environment to not have JPA. This needs to be reflected in the bundle metadata. Fortunately this is in our control, since we actually create the bundle in hk2 project.

    Java.net JIRA | 6 years ago | Sanjeeb Sahoo
    org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.core.kernel [47]: Unable to resolve 47.0: missing requirement [47.0] package; (&(package=com.sun.appserv.server)(version>=3.1.0)) [caused by: Unable to resolve 12.0: missing requirement [12.0] package; (&(package=com.sun.enterprise.module)(version>=1.0.0)) [caused by: Unable to resolve 44.0: missing requirement [44.0] package; (&(package=org.jvnet.hk2.config)(version>=1.0.0)) [caused by: Unable to resolve 37.0: missing requirement [37.0] package; (&(package=javax.validation)(version>=1.0.0)) [caused by: Unable to resolve 16.0: missing requirement [16.0] package; (package=javax.persistence)]]]]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Glassfish v3 build 62 doesn't work on Netbeans either

    Oracle Community | 7 years ago | cayhorstmann-3071947
    org.osgi.framework.BundleException: Unresolved constraint in bundle 141: package; (package=javax.xml.transform)) org.osgi.framework.BundleException: Unresolved constraint in bundle 141: package; (package=javax.xml.transform)
  6. 0

    Deleted CRUD Table Facade.class still being generated: how to remove?

    Stack Overflow | 3 years ago | Robbie62
    org.osgi.framework.BundleException: Activator start error in bundle com.sun.enterprise.osgi-adapter [154].

  1. davidvanlaatum 28 times, last 1 month ago
  2. davidvanlaatum 7 times, last 2 months ago
15 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.osgi.framework.BundleException

    Unresolved constraint in bundle org.glassfish.core.kernel [71]: Unable to resolve 71.0: missing requirement [71.0] package; (package=com.sun.management)

    at org.apache.felix.framework.Felix.resolveBundle()
  2. Apache Felix Framework
    BundleImpl.start
    1. org.apache.felix.framework.Felix.resolveBundle(Felix.java:3443)
    2. org.apache.felix.framework.Felix.startBundle(Felix.java:1727)
    3. org.apache.felix.framework.BundleImpl.start(BundleImpl.java:922)
    3 frames
  3. org.jvnet.hk2
    Main.start
    1. org.jvnet.hk2.osgimain.Main.start(Main.java:157)
    1 frame
  4. Apache Felix Framework
    StartLevelImpl.run
    1. org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:629)
    2. org.apache.felix.framework.Felix.activateBundle(Felix.java:1835)
    3. org.apache.felix.framework.Felix.startBundle(Felix.java:1752)
    4. org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156)
    5. org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
    5 frames
  5. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:662)
    1 frame