JSONWriteable is a model class. DataAccessObjects closed connection automatically because of finalsie method (fixed). logging code was using console appender instead of file appender (fixed). logging works now.