org.osgi.framework.BundleException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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.
    via by Sanjeeb Sahoo,
  • Glassfish v3 build 62 doesn't work on Netbeans either
    via by cayhorstmann-3071947,
    • 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)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    davidvanlaatum
    28 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    14 more bugmates