This post has NOT been accepted by the mailing list yet.
I have installed Glassfish4 on CentOs. All worked fine. However I noticed a problem. I used the command ./asadmin create-service to have GlassFish start on boot. When I restart, if I go to http://localhost/mywebsite mywebsite loads. If I go to http://localhost:4848 it looks like the console is trying to load but then I get a message that the website is not available.
I tried to look in logs /opt/oracle/glassfish4/glassfish/domains/domain1/logs/server.log However there is no entries from the GlassFish console. All I could find is entries from mywebsite.
I then used the command /etc/init.d/GlassFish_domain1 stop which prints "Command stop-domain executed successfully."
I then used the command /etc/init.d/GlassFish_domain1 start which prints an exception:
java.io.IOException: Couldn't get lock for /opt/oracle/glassfish4/glassfish/domains/domain1/logs/server.log
There is a process already using the admin port 4848 -- it probably is another instance of a GlassFish server. Command start-domain failed.
Does anyone know what the problem might be? At the moment I am stuck without being able to re-deploy a new version of the application.