• Bug
  • Status: Closed
  • Resolution: Fixed
  • drb
  • Reporter: sourceforgetracker
  • September 21, 2009
  • 0
  • Watchers: 0
  • September 22, 2009
  • September 22, 2009

Description

I am using ehcache-09 called from inside of hibernate for an application deployed on JBoss on Windows platform. JBoss is installed in a directory off, “c:\program files”. net.sf.hibernate.EhCacheProvider invokes CacheManager.create() to create a cache manager. A FileNotFoundException is thrown from parser.parse(url.toExternalForm(), handler); in Configurator.configure. To make the code work on windows with spaces in the file path, the following code is needed. //get URL object to ehcache.xml from class loader File f = new File(url.getFile()); FileInputStream fis = new FileInputStream(f); parser.parse(fis, handler); I noticed there is a workaround in ehcache-1.1 where a cache manager can be created with an InputStream, however the other 3 configure methods will fail on windows with spaces in the file path. Suggest modifying the 3 other configure methods in Configurator to first create a FileInputStream and then call the configure method that accepts InputStream.

Sourceforge Ticket ID: 1237017 - Opened By: sandip_ghosh - 12 Jul 2005 23:07 UTC

Comments

Fiona OShea 2009-09-22

Re-opening so that I can properly close out these issues and have correct Resolution status in Jira