• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

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

 
Ranch Hand
Posts: 281
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I'm so happy! And I wish to make this tiny ad happy too:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic