Unable to compile class for JSP: An error occurred at line: [14] in the generated java file: [/root/irapin/tomcat/apache-tomcat-9.0.34/work/Catalina/localhost/ROOT/org/apache/jsp/Themes/jobtheme/jobresult_jsp.java] Only a type can be imported. com.liferay.portal.util.PortalUtil resolves to a package An error occurred at line: [10] in the jsp file: [/Themes/jobtheme/jobresult.jsp] PortalUtil cannot be resolved 7: try { 8: request.setCharacterEncoding("UTF-8"); 9: String theme = null, domain = ""; 10: domain = PortalUtil.getHost(request); 11: if (domain.substring(0, 4).equals("www.")) { 12: } else { 13: domain = "www." + domain; Stacktrace: