[
http://opensource.atlassian.com/projects/hibernate/browse/HB-1512?page=co...
]
Vitaly Sazanovich commented on HB-1512:
---------------------------------------
In one year I'm having the same problem with ehcache1.1 and hibernate2. My temporary
solution is more radical though. I moved the whole project to C:\ and voila, it works.
Looks like the guys who wrote this loading routine were on Linux.
Hibernate 2.1.8 with EhCache 0.9 throws exception on Windows in
EhCacheProvider.start if the filepath to ehcache.xml contains spaces.
-------------------------------------------------------------------------------------------------------------------------------------
Key: HB-1512
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HB-1512
Project: Hibernate2
Type: Bug
Components: core
Versions: 2.1.8
Environment: Platform Microsoft Windows XP, Hibernate Version 2.1.8, EhCache 0.9, JBoss
4.0.2. Installed directory "c:\program files"
Reporter: Sandip Ghosh
I have an application deployed in JBoss 4.0.2 using Hibernate 2.1.8 using EhCache 0.9 on
Windows platform with the deployment directory off "c:\program files". In
EhCacheProvider.start() method the code:
manager = CacheManager.create();
throws an exception caused by a FileNotFoundException in
net.sf.ehcache.config.Configurator.configure when attempting to parse ehcache.xml file
because the file path has spaces in it. I have filed an bug against the Ehcache project at
the following URL:
http://sourceforge.net/tracker/index.php?func=detail&aid=1237017&...
Ehcache 1.1 has a method to create load the cache from an InputStream to the ehcache.xml
object. Modifying the code in EhCacheProvider to call
net.sf.ehcache.CacheManager.create(InputStream) will work in windows when there are
spaces in the deployment directory.
My temporary solution was to swallow the exception in EhCacheProvider.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira