Which version of JBoss AS is this? @Service is deprecated starting AS-6.0.0.M3 since we now have EJB3.1 @Singleton implemented in this version.
manager = new DefaultCacheManager("mycache.xml");
cache = manager.getCache("testCache");
...
It fails on the startup of the application, it can't find the mycache.xml files.
I have tried also with different paths like resources/mycache.xml and /mycache.xml
The fact is that *properties files are loaded correctly with resources/file.properties but those are loaded after the application has been deployed.
It all depends on where the DefaultCacheManager looks for the file. I guess it looks for the file in the classpath. So where exactly in the .jar (or .ear) is that file located. The path you posted looks more like the path in your source rather than in the binary .jar/.ear.