aspose file tools*
The moose likes EhCache and the fly likes Renamed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Caching » EhCache
Bookmark "Renamed "ehcache.xml" to "myehcache.xml" - Cannot find the declaration of element Watch "Renamed "ehcache.xml" to "myehcache.xml" - Cannot find the declaration of element New topic
Author

Renamed "ehcache.xml" to "myehcache.xml" - Cannot find the declaration of element 'ehcache'

Sam Gehouse
Ranch Hand

Joined: Jul 21, 2003
Posts: 281
The code works successfully, as long as I keep the name of the default "ehcache.xml". I can load it using code:


However, if I change the name of "ehcache.xml" to "myehcache.xml", I get exception. I load the "myehcache.xml" as:



The "myehcache.xml" is in the src folder of the project.

If I do do, I get error as:



"myehcache.xml" is as:



As soon as I change the name of the "myehcache.xml" to "ehcache.xml", the code works.

Any suggestion will be appreciated.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Renamed "ehcache.xml" to "myehcache.xml" - Cannot find the declaration of element 'ehcache'