【发布时间】:2018-05-05 18:37:56
【问题描述】:
我在 Eclipse 中使用 GlassFish4 进行 Java 动态 Web 开发。 GlassFish 无法再部署我的项目。我已经在 stackoverflow 和互联网上尝试了几种方法来修复它。
我什至无法通过 localhost:4848 访问管理控制台。我看到 glassfish 控制台的表面,但它显示“状态:尚未安装管理控制台应用程序。”
这是我的错误:
[2018-05-05T20:28:14.580+0200] [glassfish 4.1] [INFO] [NCLS-CORE-00093] [javax.enterprise.system.core] [tid: _ThreadID=104 _ThreadName=Thread-23] [timeMillis: 1525544894580] [levelValue: 800] [[
Problem while attempting to install admin console!
org.jvnet.hk2.config.TransactionFailure: A ApplicationRef with the same key "__admingui" already exists in Server server
at org.jvnet.hk2.config.ConfigSupport._apply(ConfigSupport.java:209)
at org.jvnet.hk2.config.ConfigSupport.apply(ConfigSupport.java:139)
at com.sun.enterprise.v3.admin.adapter.InstallerThread.install(InstallerThread.java:166)
at com.sun.enterprise.v3.admin.adapter.InstallerThread.run(InstallerThread.java:99)
Caused by: java.lang.IllegalArgumentException: A ApplicationRef with the same key "__admingui" already exists in Server server
at org.jvnet.hk2.config.WriteableView$ProtectedList.add(WriteableView.java:648)
at com.sun.enterprise.v3.admin.adapter.InstallerThread$1.run(InstallerThread.java:161)
at org.jvnet.hk2.config.ConfigSupport._apply(ConfigSupport.java:180)
... 3 more
]]
感谢您的各种帮助。
【问题讨论】: