gpt4 book ai didi

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

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:56:33 24 4
gpt4 key购买 nike

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 设置 configs.config.server-config.admin-service.property.adminConsoleStartup=NEVER
  2. glassfish3/bin/asadmin 重启域

更新:堆栈跟踪

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 安装程序上。

  1. 我从 GlassFish Server Open Source Edition 4.1.1Download 下载了 zip 设置>>> Download : Java EE 7 Full Platform

  2. 解压缩到磁盘上的文件夹

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

  4. 从浏览器转到 http://localhost:4848

  5. 在左侧选项卡上转到更新工具

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

  7. 点击安装并接受许可。

  8. 重新启动 GlassFish 服务器。
  9. 再次打开管理控制台,然后单击左侧导航栏中的服务器(管理服务器)。
  10. 单击“OSGi 控制台”选项卡以查看已部署的 OSGi 包的列表。

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

关于java - 无法启动 OSGiModuleImpl::Bundle = [org.glassfish.main.admingui.glassfish-osgi-console-plugin [302]],状态 = [NEW],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33932682/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com