<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<base href="https://hibernate.atlassian.net">
<title>Message Title</title>
</head>
<body class="jira" style="color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 1.429">
<table id="background-table" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0; background-color: #f5f5f5; border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0" bgcolor="#f5f5f5">
<!-- header here -->
<tbody>
<tr>
<td id="header-pattern-container" style="padding: 0; border-collapse: collapse; padding: 10px 20px">
<table id="header-pattern" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0">
<tbody>
<tr>
<td id="header-avatar-image-container" valign="top" style="padding: 0; border-collapse: collapse; vertical-align: top; width: 32px; padding-right: 8px" width="32"> <img id="header-avatar-image" class="image_fix" src="https://avatar-cdn.atlassian.com/94bedf9f5833b405b6af0a336c87af88?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F94bedf9f5833b405b6af0a336c87af88%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" height="32" width="32" border="0" style="border-radius: 3px; vertical-align: top"> </td>
<td id="header-text-container" valign="middle" style="padding: 0; border-collapse: collapse; vertical-align: middle; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 1px"> <a class="user-hover" rel="tomkast" id="email_tomkast" href="https://hibernate.atlassian.net/secure/ViewProfile.jspa?name=tomkast" style="color:#6c797f;; color: #3b73af; text-decoration: none">Tom Kast</a> <strong>updated</strong> an issue </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td id="email-content-container" style="padding: 0; border-collapse: collapse; padding: 0 20px">
<table id="email-content-table" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0; border-spacing: 0; border-collapse: separate">
<tbody>
<tr>
<!-- there needs to be content in the cell for it to render in some clients -->
<td class="email-content-rounded-top mobile-expand" style="padding: 0; border-collapse: collapse; color: #ffffff; padding: 0 15px 0 16px; height: 15px; background-color: #ffffff; border-left: 1px solid #cccccc; border-top: 1px solid #cccccc; border-right: 1px solid #cccccc; border-bottom: 0; border-top-right-radius: 5px; border-top-left-radius: 5px; height: 10px; line-height: 10px; padding: 0 15px 0 16px; mso-line-height-rule: exactly" height="10" bgcolor="#ffffff"> </td>
</tr>
<tr>
<td class="email-content-main mobile-expand " style="padding: 0; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff" bgcolor="#ffffff">
<table class="page-title-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0">
<tbody>
<tr>
<td class="page-title-pattern-first-line " style="padding: 0; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; padding-top: 10px"> <a href="https://hibernate.atlassian.net/browse/HHH" style="color: #3b73af; text-decoration: none">Hibernate ORM</a> / <a href="https://hibernate.atlassian.net/browse/HHH-12635" style="color: #3b73af; text-decoration: none"><img src="cid:jira-generated-image-avatar-b20f4813-d9c4-4f1e-8f74-344d201eed78" height="16" width="16" border="0" align="absmiddle" alt="Bug" style="vertical-align: text-bottom"></a> <a href="https://hibernate.atlassian.net/browse/HHH-12635" style="color: #3b73af; text-decoration: none">HHH-12635</a> </td>
</tr>
<tr>
<td style="vertical-align: top;; padding: 0; border-collapse: collapse; padding-right: 5px; font-size: 20px; line-height: 30px; mso-line-height-rule: exactly" class="page-title-pattern-header-container"> <span class="page-title-pattern-header" style="font-family: Arial, sans-serif; padding: 0; font-size: 20px; line-height: 30px; mso-text-raise: 2px; mso-line-height-rule: exactly; vertical-align: middle"> <a href="https://hibernate.atlassian.net/browse/HHH-12635" style="color: #3b73af; text-decoration: none">IllegalStateException: Cache provider not started</a> </span> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td class="email-content-main mobile-expand wrapper-special-margin" style="padding: 0; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff; padding-top: 10px; padding-bottom: 5px" bgcolor="#ffffff">
<table class="keyvalue-table" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0">
<tbody>
<tr>
<th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">Change By:</th>
<td style="padding: 0; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> <a class="user-hover" rel="tomkast" id="email_tomkast" href="https://hibernate.atlassian.net/secure/ViewProfile.jspa?name=tomkast" style="color:#6c797f;; color: #3b73af; text-decoration: none">Tom Kast</a> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td class="email-content-main mobile-expand issue-description-container" style="padding: 0; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff; padding-top: 5px; padding-bottom: 10px" bgcolor="#ffffff">
<table class="text-paragraph-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 2px">
<tbody>
<tr>
<td class="text-paragraph-pattern-container mobile-resize-text " style="padding: 0; border-collapse: collapse; padding: 0 0 10px"> <span class="diffcontext">https://stackoverflow.com/questions/50517881/hibernate-5-3-spring-5-ehcache-3-5-2-jdk-10-hibernate-says-cache-provider-no<br><br>when i start tomcat 9, jdk 10, hibernate 5.3 i get this error:<br><br>{code:java}<br> ... 93 common frames omitted<br>aused by: java.lang.IllegalStateException: Cache provider not started<br> at org.hibernate.cache.spi.AbstractRegionFactory.verifyStarted(AbstractRegionFactory.java:42)<br> at org.hibernate.cache.spi.support.RegionFactoryTemplate.buildTimestampsRegion(RegionFactoryTemplate.java:66)<br> at org.hibernate.cache.internal.EnabledCaching.<init>(EnabledCaching.java:80)<br> at org.hibernate.engine.spi.CacheInitiator.initiateService(CacheInitiator.java:33)<br> at org.hibernate.engine.spi.CacheInitiator.initiateService(CacheInitiator.java:24)<br> at org.hibernate.service.spi.SessionFactoryServiceInitiator.initiateService(SessionFactoryServiceInitiator.java:<br>0)<br> at org.hibernate.service.internal.SessionFactoryServiceRegistryImpl.initiateService(SessionFactoryServiceRegistr<br>Impl.java:68)<br> at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263<br><br>{code}<br><br>so first question, do i need to start something like, ehcache or hibernate-jcache or hibernate-ehcache? i am very much interested in a KISS solution, just need to get this up and running for a 10 year old workflow app upgrading from hib 3, spring 2.5, tomcat 6 etc... ehcache from back in hib 3 works awesome for us. so i am just looking for no-harm upgrade motivated by hibernate 5.3 - that is what we need to change. <br><br>so after much, much confusion about the easiest way to integrate hibernate 5.3 and ehcache, i decided on this:<br><br>ivy.xml<br><br>{code:java}<br><dependency org="org.hibernate" name="hibernate-core" rev="5.3.0.Final"><br></dependency><br><br><dependency org="org.hibernate" name="hibernate-jcache" rev="5.3.0.Final" /><br><br><dependency org="org.hibernate" name="hibernate-ehcache"<br> rev="5.3.0.Final" /><br><br><br><dependency org="org.springframework.boot" name="spring-boot-starter-cache"<br> rev="2.0.2.RELEASE" /><br><br><br><dependency org="org.ehcache" name="ehcache" rev="3.5.2" /><br><br><dependency org="org.springframework" name="spring-orm" rev="5.0.6.RELEASE" /><br><dependency org="org.springframework" name="spring-core"<br> rev="5.0.6.RELEASE" /><br>{code}<br><br>spring<br><br>{code:java}<br><property name="hibernateProperties"><br> <props><br> <prop key="hibernate.c3p0.acquire_increment">5</prop><br> <prop key="hibernate.c3p0.idle_test_period">100</prop><br> <prop key="hibernate.c3p0.max_size">20</prop><br> <prop key="hibernate.c3p0.max_statements">50</prop><br> <prop key="hibernate.c3p0.min_size">5</prop><br> <prop key="hibernate.c3p0.timeout">300</prop><br> <prop key="hibernate.dialect">${hibernate.dialect}</prop><br> <prop key="hibernate.show_sql">false</prop><br> <prop key="hibernate.format_sql">false</prop><br> <prop key="hibernate.use_sql_comments">false</prop><br><br> <!-- <prop key="hibernate.enable_lazy_load_no_trans">true</prop> --><br><br> <!-- ehcache settings --><br><br> <prop key="hibernate.cache.use_query_cache">true</prop><br> <prop key="hibernate.cache.region.factory_class">org.hibernate.cache.jcache.JCacheRegionFactory</prop><br> <prop key="hibernate.javax.cache.provider">org.ehcache.jsr107.EhcacheCachingProvider</prop><br> <prop key="hibernate.cache.use_second_level_cache">true</prop><br> <prop key="hibernate.cache.default_cache_concurrency_strategy">read-write</prop><br> <prop key="hibernate.javax.cache.uri">classpath:jcache.xml</prop><br><br> </props><br> </property><br><br></bean><br>{code}<br><br>jcache.xml from https://hibernate.atlassian.net/browse/HHH-12531</span> <span class="diffaddedchars" style="background-color:#ddfade;"> (https://hibernate.atlassian.net/browse/HHH-11953?focusedCommentId=102080&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-102080)</span> <span class="diffcontext"><br><br>{code:java}<br><?xml version="1.0" encoding="UTF-8"?><br><config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.ehcache.org/v3" xmlns:jsr107="http://www.ehcache.org/v3/jsr107"<br>xsi:schemaLocation="<br> http://www.ehcache.org/v3<br> http://www.ehcache.org/schema/ehcache-core.xsd<br> http://www.ehcache.org/v3/jsr107<br> http://www.ehcache.org/schema/ehcache-107-ext.xsd"><br><br><!-- https://hibernate.atlassian.net/browse/HHH-12531 --><br><service><br> <jsr107:defaults enable-management="true" enable-statistics="true" default-template="default" /><br></service><br><br><cache alias="org.hibernate.cache.spi.QueryResultsRegion"><br> <expiry><br> <tti unit="seconds">300</tti><br> </expiry><br> <heap>1024</heap><br></cache><br><br><cache alias="org.hibernate.cache.spi.TimestampsRegion"><br> <expiry><br> <none /><br> </expiry><br> <heap>4096</heap><br></cache><br><br><cache-template name="default"><br> <expiry><br> <tti unit="seconds">300</tti><br> </expiry><br> <heap>1024</heap><br></cache-template><br><br></config><br>{code}<br></span> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td class="email-content-main mobile-expand " style="padding: 0; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff" bgcolor="#ffffff"> <script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"description": "View Issue",
"potentialAction": {
"@type": "ViewAction",
"target": "https://hibernate.atlassian.net/browse/HHH-12635?inbox=true&",
"name": "View Issue"
},
"publisher": {
"@type": "Organization",
"name": "Atlassian",
"url": "https://www.atlassian.com"
}
}
</script>
<table id="actions-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 1px">
<tbody>
<tr>
<td id="actions-pattern-container" valign="middle" style="padding: 0; border-collapse: collapse; padding: 10px 0 10px 24px; vertical-align: middle; padding-left: 0">
<table align="left" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0">
<tbody>
<tr>
<td class="actions-pattern-action-icon-container" style="padding: 0; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 0; vertical-align: middle"> <a href="https://hibernate.atlassian.net/browse/HHH-12635#add-comment" target="_blank" title="Add Comment" style="color: #3b73af; text-decoration: none"> <img class="actions-pattern-action-icon-image" src="cid:jira-generated-image-static-comment-icon-748def56-7c46-4245-88fc-a9e5a56e7642" alt="Add Comment" title="Add Comment" height="16" width="16" border="0" style="vertical-align: middle"> </a> </td>
<td class="actions-pattern-action-text-container" style="padding: 0; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 4px; padding-left: 5px"> <a href="https://hibernate.atlassian.net/browse/HHH-12635#add-comment" target="_blank" title="Add Comment" style="color: #3b73af; text-decoration: none">Add Comment</a> </td>
</tr>
</tbody>
</table> </td>
</tr>
</tbody>
</table> </td>
</tr>
<!-- there needs to be content in the cell for it to render in some clients -->
<tr>
<td class="email-content-rounded-bottom mobile-expand" style="padding: 0; border-collapse: collapse; color: #ffffff; padding: 0 15px 0 16px; height: 5px; line-height: 5px; background-color: #ffffff; border-top: 0; border-left: 1px solid #cccccc; border-bottom: 1px solid #cccccc; border-right: 1px solid #cccccc; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; mso-line-height-rule: exactly" height="5" bgcolor="#ffffff"> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td id="footer-pattern" style="padding: 0; border-collapse: collapse; padding: 12px 20px">
<table id="footer-pattern-container" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0">
<tbody>
<tr>
<td id="footer-pattern-mobile-separated-links" class="mobile-resize-text" width="100%" colspan="2" style="padding: 0; border-collapse: collapse; color: #999999; font-size: 12px; line-height: 18px; font-family: Arial, sans-serif; mso-line-height-rule: exactly; mso-text-raise: 2px"> Get Jira notifications on your phone! Download the Jira Cloud app for <a href="https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail" style="color: #3b73af; text-decoration: none">Android</a> or <a href="https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8" style="color: #3b73af; text-decoration: none">iOS</a>
<hr> </td>
</tr>
<tr>
<td id="footer-pattern-text" class="mobile-resize-text" width="100%" style="padding: 0; border-collapse: collapse; color: #999999; font-size: 12px; line-height: 18px; font-family: Arial, sans-serif; mso-line-height-rule: exactly; mso-text-raise: 2px"> This message was sent by Atlassian Jira <span id="footer-build-information">(v1001.0.0-SNAPSHOT#100086-<span title="7fad13948b6adbe5ea542448fe1296250b3bde2a" data-commit-id="7fad13948b6adbe5ea542448fe1296250b3bde2a}">sha1:7fad139</span>)</span> </td>
<td id="footer-pattern-logo-desktop-container" valign="top" style="padding: 0; border-collapse: collapse; padding-left: 20px; vertical-align: top">
<table style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0">
<tbody>
<tr>
<td id="footer-pattern-logo-desktop-padding" style="padding: 0; border-collapse: collapse; padding-top: 3px; opacity: 0.150"> <img id="footer-pattern-logo-desktop" src="cid:jira-generated-image-static-footer-desktop-logo-625fe13f-af95-4c6b-8533-da78f287bc6a" alt="Atlassian logo" title="Atlassian logo" width="192" height="24" class="image_fix"> </td>
</tr>
</tbody>
</table> </td>
</tr>
</tbody>
</table> </td>
</tr>
</tbody>
</table>
<img src="https://u4043402.ct.sendgrid.net/wf/open?upn=YNXLe5Uzuivj8jGpuXra04BSJ-2BS7raa1puTAtyVUP-2F0UG25sB-2BHToWWBMcbXwnNU8CXoTmW4mge-2Fm9fI-2F9bJ1IqRiPO1U-2FrgZLxqavXLZOHFLCRtm2yNvQYG1ZyObhKZmnrCvguRcUMlAKqbStJJbmDzgJAgX0Cm0elkHPju5WsMIvhlNMFYAyttTIilZL-2FDW6-2BnXGafc1O2FfcbvHi4bL6stW3OepGFRKmK0hwJLBDsOmNPtmvJT9Gm5aQy5m-2BcSw88kezYQfioFr4uSMcpTeT3UraE7Ke3a1Y12LwhFgYSp1IRKw0hWn3efvM64GEZgIUxHIf9VwwzqJvRC5NFCBSC6mMe1ZGYMbDObs-2F-2Fkhh2C6T7ujv7k8ESrWd3qLe63fVvgEr7YtjJmArew49cOWBTA8H1OJXZJkSpz8vnsFVE5DY-2BSh95EUZfvzhhjmm7" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body>
</html>