Updating pom to not include javax.serlet during the run and modified the if condition in the maincontroller