簡體   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