This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Everyone here is willing to help. But if say "it doesn't work" without providing any relevant details, then chances are very high that your post will be ignored. While asking for help, please be sure to provide the necessary details so that others can help you.
Specifically, in this case, please provide more details about the Java version, the Tomcat version you are using. And also explain what "it doesn't work" mean. Do you see any exceptions? If yes, post the stacktrace.