make sure to have jjwt-api and jjwt-impl dependencies versions are matching. Also do mvn clean & install.