Hi, my question is why ehcache.xsd prevents me to add maxBytesLocalHeap, maxBytesLocalOffHeap and maxBytesLocalDisk on the defaultCache element. I mean when I add maxBytesLocalHeap, maxBytesLocalOffHeap and maxBytesLocalDisk to defaultCache element in the ehcache.xml the xml validator complain about this entries, same about sizeOfPolicy subelement.
Code:
<defaultCache
timeToIdleSeconds="0"
timeToLiveSeconds="0"
eternal="true"
overflowToDisk="true"
maxBytesLocalHeap="100M"
maxBytesLocalDisk="1G"
memoryStoreEvictionPolicy="LRU" >
<!-- The used for counting the object graph size in bytes -->
<sizeOfPolicy maxDepthExceededBehavior="abort" maxDepth="1500" />
</defaultCache>
[list]
1. Attribute 'maxBytesLocalDisk' is not allowed to appear in element 'defaultCache'.
2. Attribute 'maxBytesLocalHeap' is not allowed to appear in element 'defaultCache'.
3. Invalid content was found starting with element 'sizeOfPolicy'. One of '{cacheEventListenerFactory, cacheExtensionFactory, cacheLoaderFactory, cacheDecoratorFactory,
bootstrapCacheLoaderFactory, cacheExceptionHandlerFactory, pinning, terracotta, cacheWriter, copyStrategy, elementValueComparator}' is expected.
[/list]