OSGi and Equinox Create a highly modular Java System Chapter sixth DS modules encountered problems

Source: Internet
Author: User
!
Session 2014-12-23 11:57:41.015-----------------------------------------------Eclipse.buildid=unknown
JAVA.VERSION=1.6.0_32 Java.vendor=sun Microsystems Inc. BootLoader Constants:os=win32, arch=x86_64, WS=win32, NL=zh_CN Command-Line arguments:-dev File:d:/workspaces/.metadata/.plugins/org.eclipse.pde.core/toast/dev.properties-os Win32-ws Win32-arch X86_64-consolelog-console! ENTRY org.eclipse.equinox.ds 4 0 2014-12-23 11:57:41.374! Message frameworkevent ERROR! STACK 0 Org.osgi.framework.BundleException:The bundle "org.eclipse.equinox.ds_1.4.101.v20130813-1853 []" could not Be resolved. Reason:missing constraint:import-package:org.eclipse.equinox.internal.util.event; version= "1.0.0" at Org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError (Abstractbundle.java : 1332) at Org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException ( abstractbundle.java:1316) at Org.eclipse.osgi.framework.internal.core.BundleHost.startWorker (Bundlehost.java:323) at Org.eclipse.osgi.framework.internal.core.AbstractBundle.resume (abstractbundle.java:390) at Org.eclipse.osgi.framework.internal.core.Framework.resumeBundle (framework.java:1176) 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)! ENTRY org.eclipse.equinox.util 4 0 2014-12-23 11:57:41.421! Message frameworkevent ERROR! STACK 0 Org.osgi.framework.BundleException:The bundle "org.eclipse.equinox.util_1.0.500.v20130404-1337 []" could Not to be resolved. Reason:missing constraint:import-package:org.osgi.service.cm; version= "1.0.0" at Org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError (Abstractbundle.java : 1332) at Org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException ( abstractbundle.java:1316) at Org.eclipse.osgi.framework.internal.core.BundleHost.startWorker (bundlehost.java:323 ) at Org.eclipse.osgi.framework.internal.core.AbstractBundle.resume (abstractbundle.java:390) at Org.eclipse.osgi.framework.internal.core.Framework.resumeBundle (framework.java:1176) 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)! ENTRY Org.eclipse.osgi 4 0 2014-12-23 11:57:41.421!

Message Bundle Initial@reference:file:plugins/org.eclipse.equinox.util_1.0.500.v20130404-1337.jar is not resolved. ! ENTRY Org.eclipse.osgi 4 0 2014-12-23 11:57:41.421!

Message Bundle Initial@reference:file:plugins/org.eclipse.equinox.ds_1.4.101.v20130813-1853.jar is not resolved. ! ENTRY Org.eclipse.osgi 2 0 2014-12-23 11:57:41.437! MEssage one or more bundles are not resolved because the following root constraints are not resolved:! Subentry 1 Org.eclipse.osgi 2 0 2014-12-23 11:57:41.437!
Message Bundle Initial@reference:file:plugins/org.eclipse.equinox.ds_1.4.101.v20130813-1853.jar is not resolved. ! Subentry 2 org.eclipse.equinox.ds 2 0 2014-12-23 11:57:41.437! Message Missing required capability require-capability:osgi.ee; Filter= "( & (Osgi.ee=osgi/minimum) (version=1.2)) (& (Osgi.ee=cdc/foundation) (version=1.1)) (& (Osgi.ee=javase) (
version=1.4))) ". ! Subentry 2 org.eclipse.equinox.ds 2 0 2014-12-23 11:57:41.437!
Message Missing imported Package org.osgi.service.component_[1.1.0,1.3.0). ! Subentry 2 org.eclipse.equinox.ds 2 0 2014-12-23 11:57:41.437!
Message Missing imported Package org.osgi.service.cm_1.2.0. ! Subentry 1 Org.eclipse.osgi 2 0 2014-12-23 11:57:41.437!
Message Bundle Initial@reference:file:plugins/org.eclipse.equinox.util_1.0.500.v20130404-1337.jar is not resolved. ! Subentry 2 ORG.ECLIPSE.EQuinox.util 2 0 2014-12-23 11:57:41.437!

Message Missing imported Package org.osgi.service.cm_1.0.0. ! ENTRY Org.eclipse.osgi 2 0 2014-12-23 11:57:41.437! Message The following are a complete list of bundles which are not resolved, and the prior log entry for the root cause if It exists:! Subentry 1 Org.eclipse.osgi 2 0 2014-12-23 11:57:41.437!
Message Bundle org.eclipse.equinox.util_1.0.500.v20130404-1337 [[] is not resolved. ! Subentry 2 org.eclipse.equinox.util 2 0 2014-12-23 11:57:41.437!
Message Missing imported Package org.osgi.service.cm_1.0.0. ! Subentry 1 Org.eclipse.osgi 2 0 2014-12-23 11:57:41.437!
Message Bundle org.eclipse.equinox.ds_1.4.101.v20130813-1853 [m] is not resolved. ! Subentry 2 org.eclipse.equinox.ds 2 0 2014-12-23 11:57:41.437!
Message Missing imported Package org.eclipse.equinox.internal.util.event_1.0.0. ! Subentry 2 org.eclipse.equinox.ds 2 0 2014-12-23 11:57:41.437!
Message Missing imported Package org.eclipse.equinox.internal.util.hash_1.0.0. ! Subentry 2 ORg.eclipse.equinox.ds 2 0 2014-12-23 11:57:41.437!
Message Missing imported Package org.eclipse.equinox.internal.util.pool_1.0.0. ! Subentry 2 org.eclipse.equinox.ds 2 0 2014-12-23 11:57:41.437!
Message Missing imported Package org.eclipse.equinox.internal.util.ref_1.0.0. ! Subentry 2 org.eclipse.equinox.ds 2 0 2014-12-23 11:57:41.437!
Message Missing imported Package org.eclipse.equinox.internal.util.threadpool_1.0.0. ! Subentry 2 org.eclipse.equinox.ds 2 0 2014-12-23 11:57:41.437!
Message Missing imported Package org.eclipse.equinox.internal.util.timer_1.0.0. ! Subentry 2 org.eclipse.equinox.ds 2 0 2014-12-23 11:57:41.437!
Message Missing imported Package org.osgi.service.cm_1.2.0. ! Subentry 2 org.eclipse.equinox.ds 2 0 2014-12-23 11:57:41.452!
Message Missing imported Package org.osgi.service.component_[1.1.0,1.3.0). ! Subentry 2 org.eclipse.equinox.ds 2 0 2014-12-23 11:57:41.452!
Message Missing imported Package org.apache.felix.scr_[1.6.0,1.7.0). ! Subentry 2 Org.eclipse.equinox.ds 2 02014-12-23 11:57:41.452! Message Missing required capability require-capability:osgi.ee; Filter= "( & (Osgi.ee=osgi/minimum) (version=1.2)) (& (Osgi.ee=cdc/foundation) (version=1.1)) (& (Osgi.ee=javase) (
version=1.4))) ".  Osgi>



This is the problem encountered, it is obvious to see:

<strong>missing constraint:import-package:org.eclipse.equinox.internal.util.event; version= "1.0.0" </strong>
This is where the jar file is not loaded, but the book on the instructions also did not ask to load this file ah, the Internet to find a lot of data are basically pointing to this problem, and then saw an article is also encountered after the problem of the solution, so I will press his question report try to load, and really successful operation.

The following picture shows:


Due to the recent contact with OSGi, really, just like the teacher said. The study of this technology is not a straight line but a curve, there is a certain degree of difficulty, from the beginning to see thrown out of the anomaly is afraid to later slowly try to solve their own problems, find data or discussion, but after all, is to solve the problem, really happy

Although difficult, but now looking back at the beginning of contact with OSGi is still clear a lot.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.