mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Merge pull request #1675 from mwoodiupui/rest7
[DS-3482] Fix test failure and update dependencies
This commit is contained in:
@@ -142,7 +142,8 @@ public class Context
|
||||
if(dbConnection == null)
|
||||
{
|
||||
// Obtain a non-auto-committing connection
|
||||
dbConnection = new DSpace().getSingletonService(DBConnection.class);
|
||||
dbConnection = new DSpace().getServiceManager()
|
||||
.getServiceByName(null, DBConnection.class);
|
||||
if(dbConnection == null)
|
||||
{
|
||||
log.fatal("Cannot obtain the bean which provides a database connection. " +
|
||||
|
@@ -100,7 +100,7 @@
|
||||
<dependency>
|
||||
<groupId>net.sf.ehcache</groupId>
|
||||
<artifactId>ehcache-core</artifactId>
|
||||
<version>2.4.3</version>
|
||||
<version>2.6.11</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<!-- for filters -->
|
||||
|
@@ -49,6 +49,7 @@
|
||||
</constructor-arg>
|
||||
</bean>
|
||||
</property>
|
||||
<property name="shared" value="true"/>
|
||||
</bean>
|
||||
<!-- CACHING end beans -->
|
||||
|
||||
@@ -70,4 +71,4 @@
|
||||
<!-- DSpaceServicesFactory (for easy access to above core services) -->
|
||||
<bean id="dSpaceServicesFactory" class="org.dspace.services.factory.DSpaceServicesFactoryImpl"/>
|
||||
|
||||
</beans>
|
||||
</beans>
|
||||
|
@@ -0,0 +1,8 @@
|
||||
#
|
||||
# The contents of this file are subject to the license and copyright
|
||||
# detailed in the LICENSE and NOTICE files at the root of the source
|
||||
# tree and available online at
|
||||
#
|
||||
# http://www.dspace.org/license/
|
||||
#
|
||||
|
||||
|
@@ -1,3 +1,12 @@
|
||||
<!--
|
||||
|
||||
The contents of this file are subject to the license and copyright
|
||||
detailed in the LICENSE and NOTICE files at the root of the source
|
||||
tree and available online at
|
||||
|
||||
http://www.dspace.org/license/
|
||||
|
||||
-->
|
||||
|
||||
<!doctype html>
|
||||
<head>
|
||||
|
@@ -22,7 +22,9 @@
|
||||
<!--Second level cache configuration-->
|
||||
<property name="hibernate.cache.use_second_level_cache">true</property>
|
||||
<property name="hibernate.cache.use_query_cache">true</property>
|
||||
<property name="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.EhCacheRegionFactory</property>
|
||||
<property name="hibernate.cache.region.factory_class">
|
||||
org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory
|
||||
</property>
|
||||
<property name="javax.persistence.sharedCache.mode">ENABLE_SELECTIVE</property>
|
||||
|
||||
|
||||
|
7
pom.xml
7
pom.xml
@@ -28,13 +28,8 @@
|
||||
<solr.version>4.10.4</solr.version>
|
||||
<jena.version>2.13.0</jena.version>
|
||||
<slf4j.version>1.7.22</slf4j.version>
|
||||
<!--
|
||||
Hibernate version pinned to 4.2, 4.3 does not work with the spring version we are currently using
|
||||
Upgrading the spring version will make the XMLUI crash
|
||||
-->
|
||||
<hibernate.version>5.0.11.Final</hibernate.version>
|
||||
<hibernate.version>5.2.8.Final</hibernate.version>
|
||||
<spring.version>4.3.6.RELEASE</spring.version>
|
||||
<!-- <spring.version>4.2.4.RELEASE</spring.version> -->
|
||||
<!-- 'root.basedir' is the path to the root [dspace-src] dir. It must be redefined by each child POM,
|
||||
as it is used to reference the LICENSE_HEADER and *.properties file(s) in that directory. -->
|
||||
<root.basedir>${basedir}</root.basedir>
|
||||
|
Reference in New Issue
Block a user