diff --git a/src/main/java/org/gcube/common/portal/PortalContext.java b/src/main/java/org/gcube/common/portal/PortalContext.java index f8d3c82..6f13934 100644 --- a/src/main/java/org/gcube/common/portal/PortalContext.java +++ b/src/main/java/org/gcube/common/portal/PortalContext.java @@ -45,7 +45,7 @@ public class PortalContext { private void initialize() { Properties props = new Properties(); try { - String propertyfile = getGCoreFolder() + File.separator + "infrastructure.properties"; + String propertyfile = getGCoreFolder() + File.separator + ".." + File.separator +"infrastructure.properties"; File propsFile = new File(propertyfile); FileInputStream fis = new FileInputStream(propsFile); props.load( fis); @@ -55,7 +55,7 @@ public class PortalContext { catch(IOException e) { infra = "gcube"; vos = ""; - _log.error("infrastructure.properties file not found under $CATALINA_HOME/ dir, setting default infrastructure Name and no Scopes" + infra); + _log.error("infrastructure.properties file not found under $Portal Bundle/ dir, setting default infrastructure Name and no Scopes" + infra); } _log.info("PortalContext configurator correctly initialized on " + infra); }