Little changes for hibernate since it isn't loading from tomcat

This commit is contained in:
Cyrus 2022-10-31 14:41:18 -04:00
parent 152286e13e
commit 90dc4c2273
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,6 @@
package hirs.attestationca;
import hirs.attestationca.configuration.PersistenceConfiguration;
import hirs.attestationca.service.AppraiserServiceImpl;
import hirs.attestationca.service.PolicyServiceImpl;
import hirs.utils.HIRSProfiles;
@ -20,7 +21,7 @@ public class InitializationListener implements ServletContextListener {
context.getEnvironment().addActiveProfile(HIRSProfiles.SERVER);
// register the database configuration and refresh the context
context.register(AttestationCertificateAuthorityConfiguration.class);
context.register(PersistenceConfiguration.class);
context.refresh();
// obtain reference to hibernate session factory

View File

@ -48,8 +48,7 @@ dependencies {
exclude group: 'junit'
}
compile 'org.jboss.logging:jboss-logging:3.2.0.Final'
compile 'org.apache.commons:commons-text:1.9'
compile 'org.apache.commons:commons-text:1.10.0'
// add spring plugin, but do not pull transitive dependencies (causes conflicts)
compile(libs.spring_plugin) {
exclude group: "org.springframework"