diff --git a/INSTALL.APPSERVER.README b/INSTALL.APPSERVER.README index 87acbb405382742a534afd3ab66255993dcab6b3..b56f05817e1f76ee21815e3a0cfd260e038af2f5 100644 --- a/INSTALL.APPSERVER.README +++ b/INSTALL.APPSERVER.README @@ -15,17 +15,20 @@ To create your eclipse project, use these commands instead of the default one: for JBoss AS: mvn eclipse:clean eclipse:eclipse -P-tomcat,wildfly -Configuration WildFly (JBoss AS 8.0) +Configuration WildFly (JBoss AS 10.1) ------------------------------------ -1. Define a JDBC connection pool in your standalone.xml configuration with a jndi-name like: +1. We need Hibernate 5.2, you need to use the utorial to update the version of hibernate + in Widlfly: http://docs.jboss.org/hibernate/orm/5.2/topical/html_single/wildfly/Wildfly.html + +2. Define a JDBC connection pool in your standalone.xml configuration with a jndi-name like: java:jboss/datasources/OpenOLATDS and set this JNDI name in olat.local.properties set the following properties: db.source=jndi db.jndi=java:jboss/datasources/OpenOLATDS cluster.mode=Cluster The cluster mode will disable the hibernate cache -2. Create a queue with a jndi-name like: +3. Create a queue with a jndi-name like: java:jboss/exported/jms/queue/searchQueue and a topic: java:jboss/exported/jms/topic/sysbus @@ -36,6 +39,7 @@ Configuration WildFly (JBoss AS 8.0) search.broker.jndi=java:jboss/exported/jms/queue/searchQueue index.broker.jndi=java:jboss/exported/jms/queue/indexQueue exam.broker.jndi=java:jboss/exported/jms/queue/examQueue + certificate.broker.jndi=java:jboss/exported/jms/queue/certificateQueue Features located on the application server diff --git a/src/main/java/org/olat/core/commons/persistence/_spring/databaseCorecontext.xml b/src/main/java/org/olat/core/commons/persistence/_spring/databaseCorecontext.xml index 4f8a23e9262019dc782d667b3a6eb895f486d586..5a211cd82fcd4f4084a06a55dc345d19ac2c005a 100644 --- a/src/main/java/org/olat/core/commons/persistence/_spring/databaseCorecontext.xml +++ b/src/main/java/org/olat/core/commons/persistence/_spring/databaseCorecontext.xml @@ -149,7 +149,7 @@ <props> <prop key="hibernate.cache.use_query_cache">true</prop> <prop key="hibernate.cache.use_second_level_cache">true</prop> - <prop key="hibernate.cache.region.factory_class">org.jboss.as.jpa.hibernate4.infinispan.InfinispanRegionFactory</prop> + <prop key="hibernate.cache.region.factory_class">org.jboss.as.jpa.hibernate5.infinispan.InfinispanRegionFactory</prop> <prop key="hibernate.cache.infinispan.statistics">true</prop> <prop key="hibernate.cache.infinispan.cachemanager">java:jboss/infinispan/container/hibernate</prop> <prop key="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</prop> diff --git a/src/main/resources/META-INF/persistence.xml b/src/main/resources/META-INF/persistence.xml index 95f2aa950f6befa0e105839a6fb93909a5ccbb81..a8d4cc3605aae0b3b8e07b701e3244a9823fbc58 100644 --- a/src/main/resources/META-INF/persistence.xml +++ b/src/main/resources/META-INF/persistence.xml @@ -200,6 +200,7 @@ <property name="hibernate.max_fetch_depth" value="10"/> <property name="hibernate.connection.handling_mode" value="DELAYED_ACQUISITION_AND_RELEASE_AFTER_TRANSACTION"/> <property name="hibernate.session_factory.interceptor" value="org.olat.core.commons.persistence.AuditInterceptor"/> + <property name="jboss.as.jpa.providerModule" value="org.hibernate:5.2" /> </properties> </persistence-unit> </persistence> \ No newline at end of file diff --git a/src/main/webapp-wildfly/WEB-INF/jboss-deployment-structure.xml b/src/main/webapp-wildfly/WEB-INF/jboss-deployment-structure.xml index 2441b0091b68371050dc6a9882eaef395f104c97..e03930329d643790dc13e60aa9aa564379ed82bf 100644 --- a/src/main/webapp-wildfly/WEB-INF/jboss-deployment-structure.xml +++ b/src/main/webapp-wildfly/WEB-INF/jboss-deployment-structure.xml @@ -14,6 +14,7 @@ </dependencies> <exclusions> <module name="org.slf4j" /> + <module name="org.javassist" /> <module name="org.apache.commons.logging" /> </exclusions> </deployment>