无法启动OSGiModuleImpl ::捆绑= [org.glassfish.main.admingui.glassfish-osgi-console-plugin [302]],状态= [NEW] [英] Failed to start OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.glassfish-osgi-console-plugin [302]], State = [NEW]

查看:67
本文介绍了无法启动OSGiModuleImpl ::捆绑= [org.glassfish.main.admingui.glassfish-osgi-console-plugin [302]],状态= [NEW]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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):

I've tried this, but to no success (Windows 7):

  1. glassfish3/bin/asadmin set configs.config.server-config.admin-service.property.adminConsoleStartup=NEVER
  2. glassfish3/bin/asadmin restart-domain
  1. glassfish3/bin/asadmin set configs.config.server-config.admin-service.property.adminConsoleStartup=NEVER
  2. glassfish3/bin/asadmin restart-domain

更新:堆栈跟踪

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.

推荐答案

这是我的处理方式:

问题似乎出在NetBeans GlassFish安装程序上.

The problem seems to have been the NetBeans GlassFish installer.

  1. 我从 GlassFish Server开源版4.1.1下载了zip设置. 下载 >>> 下载: Java EE 7完整平台

  1. I downloaded the zip set-up from GlassFish Server Open Source Edition 4.1.1 Download >>> Download : Java EE 7 Full Platform

解压缩到磁盘上的文件夹

Unzip to a folder on your disk

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

Set up the Environment variables
(SET-UP-DIRECTORY\glassfish4\bin)

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

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

从可用加载项列表中选择glassfish-osgi-gui.

Select glassfish-osgi-gui from the list of available add-ons.

单击安装"并接受许可.

Click Install and accept the license.

注意.可能会提示您输入用户名和密码,以查看OSGi捆绑软件列表.如果在"OSGi控制台"选项卡中没有看到捆绑包列表,请确认未隐藏授权对话框.如果在安装IDE时安装了服务器,则GlassFish 4服务器的默认用户名是admin.密码默认为空.

Note. You might be prompted to enter the username and password to view the list of OSGi bundles. Confirm that the authorization dialog is not hidden if you do not see a list of bundles in the OSGi Console tab. The default username for the GlassFish 4 server is admin if you installed the server when you installed the IDE. The password is empty by default.

这篇关于无法启动OSGiModuleImpl ::捆绑= [org.glassfish.main.admingui.glassfish-osgi-console-plugin [302]],状态= [NEW]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆