0

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

Pankaj Kathiriya
  • 4,210
  • 2
  • 19
  • 26
user3429578
  • 1,093
  • 3
  • 12
  • 21

0 Answers0