我在中使用GlassFish4。GlassFish不能再部署我的项目了。我已经在堆栈溢出和一般的互联网上尝试过几种方法来修复它。
我甚至无法通过localhost:4848访问管理控制台。我看到了glassfish控制台的表面,但是上面写着"Status: Admin还没有安装“。
这是我的错误:
[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
]] 我很感激每一种帮助。
发布于 2018-05-06 09:52:23
我假设您正在使用glassfish应用服务器的本地实例。在安装之前,您可以检查是否符合GF 4.1发行说明中列出的要求。
您可以采取的另一个操作是使用安装目录/bin文件夹中的命令asadmin verify-domain-xml验证您的asadmin verify-domain-xml配置文件的完整性。
您说您不能访问管理控制台,但是您的服务器是否正在运行?(http://localhost:8080/)。
您还可以查看server.log,以获得更多关于正在发生的事情的提示,您可以在server.log中找到这些提示,或者尝试执行通过asadmin进行手动部署并查看发生了什么。
https://stackoverflow.com/questions/50192835
复制相似问题