Admin port configuration not found' error while setting up Glassfish config in IntelliJ

Viewed 17790

When setting up Glassfish in IntelliJ IDEA I get the following Error message ´Admin port configuration not found´.

Now I searched high an low but I found no place where I can set the admin port.

Searching Google all I found was a dead link on the JavaRanch. So Im not the first but the solution is lost.

Does anybody know what is to be done?

5 Answers

First, you can delete domain.xml.bak Second, go to IDEA - Edit Configurations - GlassFish. Set an absolute path in the field "Server Domain", for example: C:\glassfish5\glassfish\domains\domain1. So, check field "JRE" if you wrote path to JDK in file "asenv". This path must be the same as the value from server configuraton.

A simple and straightforward way to handle this error in IntelliJ IDEA is changing

domain1

to equivalent full path, e.g.:

C:\glassfish6\glassfish\domains\domain1

in Run/Debug Configurations pane of Glassfish integration:

enter image description here

Related