EHC ❯ Allow xsi:noNamespaceSchemaLocation="ehcache.xsd"
-
Bug
-
Status: Closed
-
-
Resolution: Fixed
-
-
-
drb
-
Reporter: sourceforgetracker
-
September 21, 2009
-
0
-
Watchers: 0
-
September 22, 2009
-
September 22, 2009
Description
Be able to link xsd to xml is usefull using tools like eclipse.
But we have the following error if we do so:
Caused by: net.sf.ehcache.CacheException: Error
configuring from file:xxx/WEB-INF/classes/ehcache.xml.
Initial cause was Error configuring from input stream.
Initial cause was null:2: Element
And I link ehcache using the following code.
Re-opening so that I can properly close out these issues and have correct Resolution status in Jira
Logged In: YES user_id=693320
Gabriel
Ok, I debugged through SAX parser and Xerces hell and found the problem in ehcache’s very own BeanHandler. Added the following code to allow arbitrary attributes to be added to the element.
//allow references to an XML schema but do not use it if (element.elementName.equals(“ehcache”)) { if (LOG.isDebugEnabled()) { LOG.debug(“Ignoring ehcache attribute “ + attrName); } return; }
I have changed my ehcache.xml files over to your syntax. Very nice. IntelliJ does the same trick as eclipse.
Thanks for the bug report. This will be in ehcache-1.2.3.
BTW moved this to feature requests.
Greg Comment by: gregluck - 19 Aug 2006 04:22 UTC