繁体   English   中英

GlassFish 4无法部署

[英]GlassFish 4 cannot Deploy

我在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
]] 

我感谢各种帮助。

我假设您正在使用glassfish应用程序服务器的本地实例。 在安装之前,您可以检查是否满足GF 4.1发行说明中列出的要求。

您可以执行的另一项操作是使用安装目录/ bin文件夹中的命令asadmin verify-domain-xmlasadmin verify-domain-xml domain.xml配置文件的完整性。

您说您无法访问管理控制台,但是服务器是否还在运行? http:// localhost:8080 / )。

您也可以查看server.log以获取有关正在发生的事情的更多提示,这些提示可以在installation-directory / domains / domain-name / logs中找到 ,或者尝试通过asadmin进行手动部署并查看发生了什么发生。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM