Thursday, June 18, 2015

Openxava 5.3 - minuteproject 0.9.3 - ehcache quick fix

Minuteproject 0.9.4- is not compatible with Openxava 5.3 regarding hibernate - ehcache integration.

Openxava hibernate dependency has been upgraded.
Hibernate now requires the property hibernate.cache.region.factory_class instead of hibernate.cache.provider_class
In the case of ehcache cache provider then the value is org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory

This situation prevents OX generated App to start.

Patch 1

Download Minuteproject 0.9.5 to disable minuteproject 4 openxava ehcache wiring.
Add this property

< property name="openxava-disable-sdd" value="true" />


Patch 2

So the fix to apply in the generated code is to patch the generated persistence.xml with

< property name="hibernate.cache.region.factory_class" 
value="org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory" />


Meanwhile it is not enough since now hibernate core do not bundle the cache package.
The package is now in the archive hibernate-ehcache.xxx.jar

Alternative


Disable the openxava ehcache hibernate config by removing the hibernate properties related to cache in persistence.xml

Follow-up

In next release minuteproject will come with the property to disable openxava-hibernate-cache.


7 comments:

  1. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.

    Home Spa Services in Mumbai

    ReplyDelete
  2. nice blog too informative. looking and reading your points its so impressive. doing more blog like this. i really appreciated doing like this.
    Best CAT Coaching in Chennai

    ReplyDelete
  3. This is an awesome post.Really very informative and creative contents. These concept is a good way to enhance the knowledge.I like it and help me to development very well.Thank you for this brief explanation and very nice information.Well, got a good knowledge.
    Digital Marketing Company in Chennai

    ReplyDelete
  4. Thank you for taking the time to provide us with your valuable information. We strive to provide our candidates with excellent care and we take your comments to heart.As always, we appreciate your confidence and trust in us
    SEO Company in India

    ReplyDelete
  5. Thank you for sharing such a nice and interesting blog with us. I have seen that all will say the same thing repeatedly. But in your blog, I had a chance to get some useful and unique information. I would like to suggest your blog in my dude circle.
    Jobs in Chennai
    Jobs in Bangalore
    Jobs in Delhi
    Jobs in Hyderabad
    Jobs in Kolkata
    Jobs in Mumbai
    Jobs in Noida
    Jobs in Pune

    ReplyDelete
  6. Its fantatic explaintion lot of information gather it...nice article....
    seo company in Chennai

    ReplyDelete
  7. you are posting a good information for people and keep maintin it and give more updates too.
    seo company india

    ReplyDelete