Recommended solutions based on your search
You need to config your login URL in both the main and in URLs file.
Thrown to indicate that a method has been invoked at an illegal or inappropriate or wrong time. Several reasons could lead to your Tomcat failing to start or load your application. Start by ensuring that Tomcat uses the same JRE version as your application
Solutions on the web