Is it worth to obfuscate java web application?
No. The code is stored on the server where external users (hopefully) don’t have access to it. You may want to obfuscate the JavaScript if you feel it’s worth the (minimal) IP protection. The best thing is so make sure your server security is up to scratch and you don’t have open access to your application directories (which shouldn’t happen anyway).