Viewing the Web Service LogsΒΆ

All the web service logs can be found in the domain directory of the Glassfish application server. The web service uses the log4j logger. You can change the log level of the web service resources for debugging purposes. To view the logs:

Log in to the web service node as root:

ssh root@<ip address of the node>
cd /var/log/glassfish/
tail -f server.log

To change the log level of the web service:

  1. Log in to the web service node as root
ssh root@<ip address of the node>

cd /var/log/glassfish/
vi log4j.properties
  1. Update the logging level for each resource you wish by using the following keywords: info|warn|debug
  2. Force glassfish to reload
touch /opt/GlassFish/glassfish/domains/uforge/applications/uForgeWebService .reload
  1. Restart the Web Service
service glassfish restart