The 3.4.0.Final release was faulty, because for some reason the release process included a ton of classes (like the servlet api) in the shaded rewrite-server artifact. That’s why you are getting this error.
Rewrite 3.4.1.Final was released to fix this. So you should go with 3.4.1 instead.
Do you play Magic?
Get TopDecked MTG, the #1 Magic App, built by players, for players. Free to use, forever.