Start a new topic

Instructions to restart Glassfish Server

How to identify a problem with Glassfish server

Symptom: Push Failure. Email notifications are sent containing a message below.

"There was no endpoint listening at that could accept the message"

Eventuality we see deals pile up in the pending queue. Check the log for errors

glassfish4 > glassfish > domains > domain1 > logs > server

Below are instructions to restart the server

1. Log in as yourself to the App VM ( and launch Task Manager. You should have the necessary rights in the Prod domain now
2. Check the domain1 service to see if it is running. If it is, try to stop the service


3. Once done, we want to delete all the files that are generated when we deploy the application. Quite often they get corrupt which in turn causes a failure.
4. Go to E:\glassfish-4.1\glassfish4\glassfish\domains\domain1\generated and delete all the files in there.


5. Go to E:\glassfish-4.1\glassfish4\glassfish\domains\domain1\applications and delete all the files in there


6. Go toE:\glassfish-4.1\glassfish4\glassfish\domains\domain1\lib\databases and delete the ejbtimer folder.


7. At this point, we can restart the server. Go back to the Services in Task Manager and start the domain1 service.
8. Open up a browser and go to http://localhost:4848/. This is the glassfish admin console. Credentials there are ‘admin’ and a blank password. It might be ‘admin’ with ‘admin’ as a password but I think its blank. Should be cached anyway with the home page of IE already set to it.
9. Drill into Applications in the left hand nav pane and undeploy the listed Applications. The server thinks these are deployed but since we deleted all the generated files, these applications really are not.


10. Now we have to redeploy each of the 3 applications. Deploy them in this order: ‘RequestWebservice’, ‘vartopia_integration’ and ‘talend_connector’.
11. To deploy, select Deploy in the main pane then use the ‘Local Packaged File or…’ option, then browse to E:\glassfish-4.1\glassfish4\glassfish\domains\domain1\autodeploy.


12. Once in there, select the applications in order, one by one, and deploy them by selecting the ‘OK’ button on right hand side. Each will take anywhere from 15 to 45s. The last is usually quick.



13. Once they all three deploy, the Applications main pane should look like it did when you first logged in with all 3 applications listed.
14. Finally, kick off a pull to test the server to make sure it is taking requests from the UI. You can try a pull for a DRS vendor or Dell / PC Connection combo. Refer to ‘Step 11 ‘in the ‘Normal Restart’ scenario email for details.

make sure these 2 URLs are working afterwards

Login or Signup to post a comment