mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-03-23 04:25:17 +00:00
Little changes for hibernate since it isn't loading from tomcat
This commit is contained in:
parent
152286e13e
commit
90dc4c2273
@ -1,5 +1,6 @@
|
|||||||
package hirs.attestationca;
|
package hirs.attestationca;
|
||||||
|
|
||||||
|
import hirs.attestationca.configuration.PersistenceConfiguration;
|
||||||
import hirs.attestationca.service.AppraiserServiceImpl;
|
import hirs.attestationca.service.AppraiserServiceImpl;
|
||||||
import hirs.attestationca.service.PolicyServiceImpl;
|
import hirs.attestationca.service.PolicyServiceImpl;
|
||||||
import hirs.utils.HIRSProfiles;
|
import hirs.utils.HIRSProfiles;
|
||||||
@ -20,7 +21,7 @@ public class InitializationListener implements ServletContextListener {
|
|||||||
context.getEnvironment().addActiveProfile(HIRSProfiles.SERVER);
|
context.getEnvironment().addActiveProfile(HIRSProfiles.SERVER);
|
||||||
|
|
||||||
// register the database configuration and refresh the context
|
// register the database configuration and refresh the context
|
||||||
context.register(AttestationCertificateAuthorityConfiguration.class);
|
context.register(PersistenceConfiguration.class);
|
||||||
context.refresh();
|
context.refresh();
|
||||||
|
|
||||||
// obtain reference to hibernate session factory
|
// obtain reference to hibernate session factory
|
||||||
|
@ -48,8 +48,7 @@ dependencies {
|
|||||||
exclude group: 'junit'
|
exclude group: 'junit'
|
||||||
}
|
}
|
||||||
compile 'org.jboss.logging:jboss-logging:3.2.0.Final'
|
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)
|
// add spring plugin, but do not pull transitive dependencies (causes conflicts)
|
||||||
compile(libs.spring_plugin) {
|
compile(libs.spring_plugin) {
|
||||||
exclude group: "org.springframework"
|
exclude group: "org.springframework"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user