无法启动OSGiModuleImpl :: Bundle = [org.glassfish.main.admingui.glassfish-osgi-console-plugin [302]],State = [NEW]

时间:2015-11-26 07:19:47

标签: java glassfish

com.sun.enterprise.module.ResolveError: Failed to start OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.glassfish-osgi-console-plugin [302]], State = [NEW]

安装 glassfish-osgi-gui

后出现此错误

我试过这个,但没有成功(Windows 7):

  1. glassfish3/bin/asadmin set configs.config.server-config.admin-service.property.adminConsoleStartup=NEVER
  2. glassfish3/bin/asadmin restart-domain
  3. 更新:堆积痕迹

    com.sun.enterprise.module.ResolveError: Failed to start OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.glassfish-osgi-console-plugin [302]], State = [NEW]
        at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:218)
        at org.jvnet.hk2.osgiadapter.OsgiPopulatorPostProcessor$1.loadClass(OsgiPopulatorPostProcessor.java:77)
        at org.jvnet.hk2.internal.ServiceLocatorImpl.loadClass(ServiceLocatorImpl.java:2058)
        at org.jvnet.hk2.internal.ServiceLocatorImpl.reifyDescriptor(ServiceLocatorImpl.java:413)
        at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2223)
        at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:105)
        at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:87)
        at org.jvnet.hk2.internal.ServiceLocatorImpl.getAllServices(ServiceLocatorImpl.java:767)
        at com.sun.enterprise.v3.server.ClassLoaderHierarchyImpl.createApplicationParentCL(ClassLoaderHierarchyImpl.java:202)
        at org.glassfish.deployment.common.DeploymentContextImpl.createClassLoader(DeploymentContextImpl.java:246)
        at org.glassfish.deployment.common.DeploymentContextImpl.createDeploymentClassLoader(DeploymentContextImpl.java:229)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:365)
        at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:406)
        at com.sun.enterprise.v3.admin.adapter.InstallerThread.load(InstallerThread.java:211)
        at com.sun.enterprise.v3.admin.adapter.InstallerThread.run(InstallerThread.java:100)
    Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.main.admingui.glassfish-osgi-console-plugin [302]: Unable to resolve 302.0: missing requirement [302.0] osgi.wiring.package; (&(osgi.wiring.package=com.sun.jsftemplating.layout.descriptors.handler)(version>=2.1.0)(!(version>=3.0.0)))
        at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2037)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
        at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:210)
        ... 14 more
    MultiException stack 2 of 2
    java.lang.IllegalStateException: Could not load descriptor SystemDescriptor(
        implementation=org.glassfish.osgi.admingui.OSGIConsoleProvider
        contracts={org.glassfish.osgi.admingui.OSGIConsoleProvider,org.glassfish.api.admingui.ConsoleProvider}
        scope=javax.inject.Singleton
        qualifiers={}
        descriptorType=CLASS
        descriptorVisibility=NORMAL
        metadata=Bundle-SymbolicName={org.glassfish.main.admingui.glassfish-osgi-console-plugin},Bundle-Version={4.1.1}
        rank=0
        loader=OsgiPopulatorPostProcessor.HK2Loader(OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.glassfish-osgi-console-plugin [302]], State = [NEW],2276567)
        proxiable=null
        proxyForSameScope=null
        analysisName=null
        id=1080
        locatorId=0
        identityHashCode=9500941
        reified=false)
        at org.jvnet.hk2.internal.ServiceLocatorImpl.loadClass(ServiceLocatorImpl.java:2067)
        at org.jvnet.hk2.internal.ServiceLocatorImpl.reifyDescriptor(ServiceLocatorImpl.java:413)
        at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2223)
        at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:105)
        at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:87)
        at org.jvnet.hk2.internal.ServiceLocatorImpl.getAllServices(ServiceLocatorImpl.java:767)
        at com.sun.enterprise.v3.server.ClassLoaderHierarchyImpl.createApplicationParentCL(ClassLoaderHierarchyImpl.java:202)
        at org.glassfish.deployment.common.DeploymentContextImpl.createClassLoader(DeploymentContextImpl.java:246)
        at org.glassfish.deployment.common.DeploymentContextImpl.createDeploymentClassLoader(DeploymentContextImpl.java:229)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:365)
        at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:406)
        at com.sun.enterprise.v3.admin.adapter.InstallerThread.load(InstallerThread.java:211)
        at com.sun.enterprise.v3.admin.adapter.InstallerThread.run(InstallerThread.java:100)
    
    Severe:   Application deployment failed: Exception while deploying the app [__admingui]
    Info:   Initiating Jersey application, version Jersey: 2.10.4 2014-08-08 15:09:00...
    Info:   Listening to REST requests at context: /management/domain.
    

1 个答案:

答案 0 :(得分:1)

这就是我的方式:

问题似乎是NetBeans GlassFish安装程序。

  1. 我从GlassFish Server Open Source Edition 4.1.1 Download >>> Download : Java EE 7 Full Platform

  2. 下载了zip设置
  3. 解压缩到磁盘上的文件夹

  4. 设置环境变量
    (SET-UP-DIRECTORY\glassfish4\bin)

  5. 在浏览器中,转到http://localhost:4848

  6. 在左侧标签页上,转到更新工具

  7. 从可用附加组件列表中选择glassfish-osgi-gui。

  8. 单击“安装”并接受许可。

  9. 重新启动GlassFish服务器。
  10. 再次打开管理控制台,然后单击左侧导航栏中的服务器(管理员服务器)。
  11. 单击OSGi控制台选项卡以查看已部署的OSGi包的列表。
  12. 注意即可。系统可能会提示您输入用户名和密码以查看OSGi包列表。如果在OSGi控制台选项卡中没有看到捆绑包列表,请确认未隐藏授权对话框。如果在安装IDE时安装了服务器,则GlassFish 4服务器的默认用户名为admin。密码默认为空。