net.sf.ehcache.CacheException

Error configuring from file:/D:/fjl/eproject/testTerracotta/bin/ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was null:2: Element does not allow attribute "url".


Solutions on the web251

Solution icon of terracotta
via Terracotta by ylshi, 1 year ago
Error configuring from file:/D:/fjl/eproject/testTerracotta/bin/ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was null:2: Element does not allow attribute "url".

Solution icon of web
via terracotta.org by Unknown author, 1 year 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".

Solution icon of terracotta
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".

Solution icon of coderanch
via Coderanch by mozammil muzza, 8 months ago
Error configuring from file:/D:/Workspace/Testworkspace/CoreJavaProject/config/ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was null:11: Element <cache> does not allow attribute "name".

Solution icon of web
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.

Solution icon of web
via oschina.net by Unknown author, 1 year 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".

Solution icon of web
via oschina.net by Unknown author, 1 year 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".

Solution icon of web
via oschina.net by Unknown author, 1 year 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".

Solution icon of stackoverflow
via Stack Overflow by Senthil
, 1 year ago
Error configuring from input stream. Initial cause was null:17: Element &lt;defaultCache&gt; does not allow attribute "maxElementsOnDisk".

Solution icon of stackoverflow
Error configuring from input stream. Initial cause was null:6: Element &lt;cache&gt; does not allow attribute "maxBytesLocalDisk".

Stack trace

  • net.sf.ehcache.CacheException: Error configuring from file:/D:/fjl/eproject/testTerracotta/bin/ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was null:2: Element does not allow attribute "url". at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:103) at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:138) at net.sf.ehcache.CacheManager.parseConfiguration(CacheManager.java:506) at net.sf.ehcache.CacheManager.init(CacheManager.java:289) at net.sf.ehcache.CacheManager.<init>(CacheManager.java:279) at xxx.TerracottaExample.<init>(TerracottaExample.java:8) at xxx.TerracottaExample.main(TerracottaExample.java:20) Caused by: net.sf.ehcache.CacheException: Error configuring from input stream. Initial cause was null:2: Element does not allow attribute "url". at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:157) at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:101) ... 6 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 17 hours ago
280 times, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
5 more bugmates