When run in a web server environment (e.g. Jakarta Tomcat), the license file is modified at runtime.
your web server may try to reload the web application context.
Solution 1: Configure your web server so that it does not reload the web application each time a file,
stored on the classpath, changes.
If you are using Jakarta Tomcat, edit the /tomcat/conf/server.xml file and change the reloadable
attribute of the application context to false:
<Context path="yourPath" docBase="yourDocBase" debug="0"
Solution 2: Put the licencse file in a global resource folder that is recognized by your webserver
environment. If you are using Jakarta Tomcat,
read the class loader howto of your Tomcat version to figure out where to place it. Example: Using Tomcat 4.1
one appropriate folder would be
$CATALINA_HOME/shared/classes (see Tomcat 4.1 Classloader