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.