net.sf.ehcache.CacheException: Error configuring from file:/C://ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was null:295: Element does not allow attribute "maxElementsOnDisk".

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Terracotta by avarg, 1 year ago
Error configuring from file:/C://ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was null:295: Element does not allow attribute "maxElementsOnDisk".
via terracotta.org by Unknown author, 2 years ago
Error configuring from file:/C:/<MyFilePath>/ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was null:295: Element <cache> does not allow attribute "maxElementsOnDisk".
via Terracotta by ylshi, 1 year ago
Error configuring from input stream. Initial cause was null:2: Element does not allow attribute "url".
via csdn.net by Unknown author, 2 years ago
Error configuring from file:/F:/Struts2/Hibernate21/bin/ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was null:5: Element <ehcache> does not allow nested <defaultCatch> elements.
via Stack Overflow by Derek Mahar
, 1 year ago
Error configuring from zip:C:/Program Files/Oracle/Middleware/user_projects/domains/abstrack1/servers/AdminServer/tmp/_WL_user/_appsdir_middleware-ear-1.0-SNAPSHOT_ear/n8rga7/middleware-ejb-1.0-SNAPSHOT.jar!/ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was null:35: Element <cache> does not allow attribute "transactionalMode".
via oschina.net by Unknown author, 2 years ago
Error configuring from C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\lklmposweb\WEB-INF\classes\ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was null:28: Element <cacheManagerPeerProviderFactory> does not allow attribute "propertySeparator".
net.sf.ehcache.CacheException: Error configuring from file:/C://ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was null:295: Element does not allow attribute "maxElementsOnDisk".
at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:95)
at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:131)
at net.sf.ehcache.CacheManager.parseConfiguration(CacheManager.java:241)
at net.sf.ehcache.CacheManager.init(CacheManager.java:190)
at net.sf.ehcache.CacheManager.(CacheManager.java:183)
at net.sf.ehcache.CacheManager.create(CacheManager.java:343)
at net.sf.ehcache.CacheManager.getInstance(CacheManager.java:364)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.