简体   繁体   中英

GlassFish 4 cannot Deploy

I use GlassFish4 in Eclipse for Java Dynamic Web Development. GlassFish cannot deploy my project anymore. I have already tried several methods on stackoverflow and on the internet in general to fix it.

I can't even access the admin console via localhost:4848. I see the surface of the glassfish console but it says "Status: The Admin Console Application is not yet installed."

This is my error:

 [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
]] 

I appreciate every kind of help.

I assume that you are working with a local instance of the glassfish application server. You could check if you acomplished the requirements listed in the GF 4.1 Release Notes before you did the installation.

Another action you can take is to verify the integrity of your domain.xml configuration file using the command asadmin verify-domain-xml from your installation-directory/bin folder

You say you cannot access the admin console, but is your server even running? ( http://localhost:8080/ ).

You can also take a look at the server.log for some more hints on what is going on, which you can find in installation-directory/domains/domain-name/logs , or try to do a manual deployment via asadmin and see what happens.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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