Setting hibernate.javax.cache.uri property value as relative path causes an error

Description

Setting the hibernate.javax.cache.uri property value as relative path causes an error:
java.lang.IllegalArgumentException: URI is not absolute

Activity

Show:

Guillaume SmetOctober 15, 2018 at 8:45 AM

any progress on this one? It would be nice to have it for 5.4.0.Final.

Thanks.

Steve EbersoleSeptember 26, 2018 at 1:27 PM

IMO a centralized "uri" service (/helper) that uniformly provides `classpath://` (and any other schemes we want to implement) uri suppport would be best. Look at the XML/DTD/XSD resolution code which already has all of this logic; e.g.:

  • org.hibernate.boot.jaxb.internal.stax.LocalXmlResourceResolver

  • org.hibernate.internal.util.xml.DTDEntityResolver

Vlad MihalceaSeptember 24, 2018 at 2:44 PM

Sure. I can take care of it.

Guillaume SmetSeptember 24, 2018 at 2:31 PM

do you think you could take a look at this one?

It would be nice to have classpath:// supported for 5.4.

Сергей МоховSeptember 21, 2018 at 7:19 AM

Steeve, I mean something like "classpash://" uri. What I want is to include ehcache.xml file into my application war, into META-INF folder for example. Please see this conversation: https://discourse.hibernate.org/t/hibernate-5-3-with-ehcache-3-5-2-configuration-problem/789

Fixed

Details

Assignee

Reporter

Worked in

Components

Fix versions

Affects versions

Priority

Created September 17, 2018 at 8:49 AM
Updated November 15, 2018 at 1:43 PM
Resolved October 25, 2018 at 7:25 AM