Disabling the file watcher
The ConfigurationManager sets a FileWatcher or URLWatcher when you load a configuration. The FileWatcher itself will create a new thread to track any changes to the file.
Creating new threads are not allowed when you run your application inside a servlet or J2EE container. This is defined in the specs. Actually the FileWatcher will work but it is not required that you use it.
Therefore as of version 2.8 you can now disable the FileWatcher.
There are two ways to switch it off.
1. system property
Set a system property called jconfig.filewatcher and set the value to anything but true2. jconfig.properties
Create a file called jconfig.properties and make sure it is inside the classpath. Now put in a property:jconfig.filewatcher=false
to disable the FileWatcher.