IntelliJ and Tomcat Java servlet mappings not working
Answered
Hi,
Not sure if this is the right place to post but I'm having an issue mapping a url to a java servlet when using Tomcat and IntelliJ.
If I create a simple HelloWorld project, with a Servlet class named "HelloWorld" and map the url, using either annotations or web.xml, to "/HelloWorld", I always get a 404 error with Tomcat when trying to access the servlet.
Initially I thought there was something wrong with my project settings, but after investigating I'm sure this is an issue with IntelliJ and Tomcat. The same setup and code works with Tomcat when deployed from eclipse.
Am I missing a configuration somewhere? Or is this a bug with IntelliJ?
Any feedback would be appreciated. Thanks.
Please sign in to leave a comment.
Hi,
Could you please file an issue in youtrack.jetbrains.com and attach sample project?
Regards,
Nikolay