But I got another problem, all images (there are in /var/lib/tomcat6/webapps/myapp/img dir) are broken and "An error occurred: org.springframework.dao.DataAccessResourceFailureE xception: could not execute query; nested exception is org.hibernate.exception.JDBCConnectionException: could not execute query" exception is throwing.