Eliza Chan implemented two fixes to ensure VIVO can talk to Virtuoso. He thought it would be useful to include in core. Let me know if any of this doesn't make sense.
@Override
public void contextInitialized(ServletContextEvent sce) {
ServletContext ctx = sce.getServletContext();
ConfigurationProperties props = ConfigurationProperties.getBean(ctx);
StartupStatus ss = StartupStatus.getBean(ctx);
checkHomeDirectory(ctx, props, ss);
// Eliza: if using SPARQL endpoint, there is no need to test database connection
String endPointUri = props.getProperty(PROPERTY_ENDPOINT_URI);
if (endPointUri == null || endPointUri.isEmpty()) {
checkDatabaseConnection(ctx, props, ss);
}
Paul Albert (Migrated from VIVO-1077) said:
Eliza Chan implemented two fixes to ensure VIVO can talk to Virtuoso. He thought it would be useful to include in core. Let me know if any of this doesn't make sense.
i) /vivo-rel-1.7-wcmc-virtuoso/vitro-core/webapp/src/edu/cornell/mannlib/vitro/webapp/servlet/setup/GuardAgainstUnmigratedRDB.java
Added the following check on configuration:
...
ii) /vivo-rel-1.7-wcmc-virtuoso/vitro-core/webapp/src/edu/cornell/mannlib/vitro/webapp/config/ConfigurationPropertiesSmokeTests.java
Added the following check on configuration:
...