Thanks but I am Building the .war file in Netbeans then copying the file to a new folder called WarFiles.
Then I use Tomcat 9 deployment manager. The deployment occurs fine.
I then start the webApp and all is good except when I ask localhost:8012/<mywar.war>
the URL is except when I ask localhost:8012/<mywar.war>
the problem starts when I try to loging and then I get a 'ExceptionInIntializer" error.
This error only occurs when I execute the jatr from the Tomcat 9 web server??