This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Sam Gehouse
Ranch Hand
Posts: 281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic