- fixed errors starting the app on tomcat7.