2012-10-20 67 views
1

我想爲我的開發目的使用glassfish 3.1.2.2與OSGI。我通過Web管理控制檯安裝了OSGI Future包,並重新啓動了glassfish。服務器重新啓動後,Web控制檯停止工作,只顯示一個空白頁面,沒有任何錯誤。我查看了一個日誌文件,發現了下面描述的異常。glassfish無法啓動捆綁org.glassfish.main.admingui.glassfish-osgi-console-plugin

我有一些問題:

  1. 如何更換該包的開始水平以及哪個層面,有必要設置?
  2. 如何訪問Apache Felix的shell?
  3. 是否可以結婚玻璃魚和卡拉夫?
[org.glassfish.main.admingui.glassfish-osgi-console-plugin(Glassfish OSGI Console Plugin):3.1.2.1-SNAPSHOT] 
    com.sun.enterprise.module.ResolveError: Failed to start Bundle Id [263] State [RESOLVED]  [org.glassfish.main.admingui.glassfish-osgi-console-plugin(Glassfish OSGI Console Plugin):3.1.2.1-SNAPSHOT] 
      at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:177) 
      at org.jvnet.hk2.osgiadapter.OSGiModuleImpl$2$1$1.loadClass(OSGiModuleImpl.java:344) 
      at com.sun.hk2.component.LazyInhabitant.loadClass(LazyInhabitant.java:124) 
      at com.sun.hk2.component.LazyInhabitant.fetch(LazyInhabitant.java:111) 
      at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:135) 
      at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:78) 
      at com.sun.enterprise.v3.server.ClassLoaderHierarchyImpl.createApplicationParentCL(ClassLoaderHierarchyImpl.java:200) 
      at org.glassfish.deployment.common.DeploymentContextImpl.createClassLoader(DeploymentContextImpl.java:216) 
      at org.glassfish.deployment.common.DeploymentContextImpl.createDeploymentClassLoader(DeploymentContextImpl.java:199) 
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:346) 
      at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:375) 
      at com.sun.enterprise.v3.admin.adapter.InstallerThread.load(InstallerThread.java:210) 
      at com.sun.enterprise.v3.admin.adapter.InstallerThread.run(InstallerThread.java:108) 
    Caused by: org.osgi.framework.BundleException: Cannot start bundle org.glassfish.main.admingui.glassfish-osgi-console-plugin [263] because its start level is 2, which is greater than the framework's start level of 1. 
      at org.apache.felix.framework.Felix.startBundle(Felix.java:1807) 
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:944) 
      at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:169) 
      ... 12 more 

回答