From e53691d436b7f42441fa8d056510227f9902a570 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Tue, 24 Sep 2013 16:52:03 +0000 Subject: [PATCH] Initial import. git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/portal/portal-manager@81928 82a268e6-3cf1-43bd-a215-b396298e98cf --- src/main/java/org/gcube/common/portal/PortalContext.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }