NIHVIVO-336 Add a warning message to StartupStatus when the namespaces don't match.

This commit is contained in:
j2blake 2011-09-26 14:33:09 +00:00
parent 6cfd65efb7
commit ed14575517

View file

@ -317,6 +317,14 @@ public class JenaDataSourceSetup extends JenaDataSourceSetupBase implements java
"\" Namespace from an existing portal: \"" + portalUri + "\" To get the application to start with this " + "\" Namespace from an existing portal: \"" + portalUri + "\" To get the application to start with this " +
"database change the default namespace in deploy.properties " + portalUri.substring(0, portalUri.lastIndexOf("/")+1) + "database change the default namespace in deploy.properties " + portalUri.substring(0, portalUri.lastIndexOf("/")+1) +
" Another possibility is that deploy.properties does not specify the intended database."); " Another possibility is that deploy.properties does not specify the intended database.");
StartupStatus ss = StartupStatus.getBean(ctx);
ss.warning(this, "Namespace mismatch between db and deploy.properties.");
ss.warning(this, "Vivo will not start up correctly because the default namespace specified in deploy.properties does not match the namespace of " +
"a portal in the database. Namespace from deploy.properties: \"" + defaultNamespaceFromDeployProperites +
"\" Namespace from an existing portal: \"" + portalUri + "\" To get the application to start with this " +
"database change the default namespace in deploy.properties " + portalUri.substring(0, portalUri.lastIndexOf("/")+1) +
" Another possibility is that deploy.properties does not specify the intended database.");
} }
} }
} }