org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: org.textmining.text.extraction; version="[1.0.0,2.0.0)"

SpringSource Issue Tracker | Rune Engseth | 8 years ago
  1. 0

    jackrabbit-text-extractors-1.4 depends on org.textmining.tm-extractors-0.4. (At least the jackrabbit-text-extractors code imports org.textmining.text.extraction which is present in the 0.4 version of org.textmining. ) However in BRITS, com.springsource.org.apache.jackrabbit.extractor-1.4.0 is wired against org.textmining.tm-extractors-1.0. (represented by com.springsource.org.textmining.extraction-1.0.0) This is a bug in my opinion as org.textmining.tm-extractors-1.0 has a different package structure, and "org.textmining.text.extraction" does not exist in this jar. (see below for the Missing Constraint statement) (It does however, exist in the 0.4 version) This means that the jackrabbit bundles "core" and "extractors are broken in the springsource enterprise bundle repository. As you can see from the equinox console output, com.springsource.org.textmining.extraction_1.0.0 is started and active, but com.springsource.org.apache.jackrabbit.extractor_1.4.0 is still unable to start. (This again breaks jackrabbit-core, as this bundle depends on jackrabbit.extractor) --- EQUINOX OUTPUT -- osgi> ss .. .. 120 ACTIVE com.springsource.org.textmining.extraction_1.0.0 121 INSTALLED com.springsource.org.apache.jackrabbit.extractor_1.4.0 osgi> start 121 org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: org.textmining.text.extraction; version="[1.0.0,2.0.0)" at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:305) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257) at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:257) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:150) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223) at java.lang.Thread.run(Thread.java:613)

    SpringSource Issue Tracker | 8 years ago | Rune Engseth
    org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: org.textmining.text.extraction; version="[1.0.0,2.0.0)"
  2. 0

    jackrabbit-text-extractors-1.4 depends on org.textmining.tm-extractors-0.4. (At least the jackrabbit-text-extractors code imports org.textmining.text.extraction which is present in the 0.4 version of org.textmining. ) However in BRITS, com.springsource.org.apache.jackrabbit.extractor-1.4.0 is wired against org.textmining.tm-extractors-1.0. (represented by com.springsource.org.textmining.extraction-1.0.0) This is a bug in my opinion as org.textmining.tm-extractors-1.0 has a different package structure, and "org.textmining.text.extraction" does not exist in this jar. (see below for the Missing Constraint statement) (It does however, exist in the 0.4 version) This means that the jackrabbit bundles "core" and "extractors are broken in the springsource enterprise bundle repository. As you can see from the equinox console output, com.springsource.org.textmining.extraction_1.0.0 is started and active, but com.springsource.org.apache.jackrabbit.extractor_1.4.0 is still unable to start. (This again breaks jackrabbit-core, as this bundle depends on jackrabbit.extractor) --- EQUINOX OUTPUT -- osgi> ss .. .. 120 ACTIVE com.springsource.org.textmining.extraction_1.0.0 121 INSTALLED com.springsource.org.apache.jackrabbit.extractor_1.4.0 osgi> start 121 org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: org.textmining.text.extraction; version="[1.0.0,2.0.0)" at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:305) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257) at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:257) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:150) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223) at java.lang.Thread.run(Thread.java:613)

    SpringSource Issue Tracker | 8 years ago | Rune Engseth
    org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: org.textmining.text.extraction; version="[1.0.0,2.0.0)"
  3. 0

    Using slf4j with jdk1.4

    Google Groups | 9 years ago | amacg
    org.osgi.framework.BundleException: The activator org.springframework.osgi.extender.internal.ContextLoaderListener for bundle org.springframework.osgi.bundle.extender is invalid
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring 2.5 + OSGi, stuck at apache-commons, Help!

    Google Groups | 9 years ago | Hendy Irawan
    org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: org.apache.commons.logging; version="0.0.0"
  6. 0

    Spring and OSGi Classloader issue... java.lang.ClassCastException: help :)

    Google Groups | 9 years ago | Hendy Irawan
    org.osgi.framework.BundleException: Exception in com.x.client.swing.App.start() of bundle com.x.client.swing.

    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

      The bundle could not be resolved. Reason: Missing Constraint: Import-Package: org.textmining.text.extraction; version="[1.0.0,2.0.0)"

      at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker()
    2. Eclipse OSGi
      FrameworkCommandProvider._start
      1. org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:305)
      2. org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)
      3. org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257)
      4. org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:257)
      4 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    4. Eclipse OSGi
      FrameworkConsole.run
      1. org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:150)
      2. org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302)
      3. org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287)
      4. org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223)
      4 frames
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:613)
      1 frame