NIHVIVO-336 Add a warning message to StartupStatus when the namespaces don't match.
This commit is contained in:
parent
6cfd65efb7
commit
ed14575517
1 changed files with 8 additions and 0 deletions
|
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue