GlassFish Console (4848) not loading

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

GlassFish Console (4848) not loading

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: Couldn't get lock for /opt/oracle/glassfish4/glassfish/domains/domain1/logs/server.log
        at java.util.logging.FileHandler.openFiles(
        at java.util.logging.FileHandler.<init>(
        at com.sun.enterprise.admin.launcher.GFLauncherLogger.addLogFileHandler(
        at com.sun.enterprise.admin.launcher.GFLauncher.setup(
        at com.sun.enterprise.admin.servermgmt.cli.StartDomainCommand.createLauncher(
        at com.sun.enterprise.admin.servermgmt.cli.StartDomainCommand.executeCommand(
        at com.sun.enterprise.admin.cli.CLICommand.execute(
        at com.sun.enterprise.admin.cli.AdminMain.executeCommand(
        at com.sun.enterprise.admin.cli.AdminMain.doMain(
        at com.sun.enterprise.admin.cli.AdminMain.main(
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.