Org.osgi.framework.BundleException__OSGI when running bundle

Source: Internet
Author: User
Tags win32

Org.osgi.framework.BundleException recently occurred while running bundle

! Session 2017-09-16 11:31:51.969-----------------------------------------------
Eclipse.buildid=unknown
java.version=1.8.0_144
Java.vendor=oracle Corporation
BootLoader Constants:os=win32, arch=x86_64, Ws=win32, NL=ZH_CN
Command-Line arguments:-dev file:d:/kaifa/eclipse-jee-neon-3-win32-x86_64/history/.metadata/.plugins/ Org.eclipse.pde.core/new_configuration/dev.properties-os Win32-ws Win32-arch X86_64-consolelog-console


! ENTRY Com.ufgov.app.helloworld 4 0 2017-09-16 11:31:52.334
! Message Frameworkevent ERROR
! STACK 0
Org.osgi.framework.BundleException:Could not resolve Module:com.ufgov.app.helloworld [1]
Unresolved requirement:import-package:javax.servlet; version= "2.4.0"


At Org.eclipse.osgi.container.Module.start (module.java:444)
At Org.eclipse.osgi.container.modulecontainer$containerstartlevel.incstartlevel (ModuleContainer.java:1620)
At Org.eclipse.osgi.container.modulecontainer$containerstartlevel.incstartlevel (ModuleContainer.java:1600)
At Org.eclipse.osgi.container.modulecontainer$containerstartlevel.docontainerstartlevel (ModuleContainer.java : 1571)
At Org.eclipse.osgi.container.modulecontainer$containerstartlevel.dispatchevent (ModuleContainer.java:1514)
At Org.eclipse.osgi.container.modulecontainer$containerstartlevel.dispatchevent (ModuleContainer.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 2017-09-16 11:31:52.441
! Message Bundle initial@reference:file:.. /history/com.ufgov.app.helloworld/was not resolved.

This problem is only selected ORG.ECLIPSE.OSGI this bundle, in addition to this bundle also need to org.eclipse.equinox.console, at the same time to add its dependencies

Org.apache.felix.gogo.command

Org.apache.felix.gogo.runtime

Org.apache.felix.gogo.shell

Workaround: Import Bundle ORG.ECLIPSE.OSGI



Import Org.eclipse.equinox.console Bundle


Import three bundle dependencies


Run after import, enter the OSGi command line, enter SS, success.

osgi> SS
"The Framework is launched."




ID State Bundle
0 ACTIVE org.eclipse.osgi_3.11.3.v20170209-1843
1 Installed com.ufgov.app.helloworld_1.0.0
2 ACTIVE org.eclipse.equinox.console_1.1.200.v20150929-1405
3 ACTIVE org.apache.felix.gogo.command_0.10.0.v201209301215
4 ACTIVE org.apache.felix.gogo.runtime_0.10.0.v201209301036
5 ACTIVE org.apache.felix.gogo.shell_0.10.0.v201212101605
Osgi>

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.