I'm trying to run a liferay project on an application server, but I have to run this part of code
String tablesSQL = HttpUtil.URLtoString(servletContext.getResource("/WEB-INF/sql/tables.sql"));
The problem is that the servletContext is still null and I don't know how can I instantiate this latter using applicationContext or other stuff.
Thanks