Servlet error

Answered

Good evening, I am a total newbie to intelliJ, I have just downloaded the ultimate version and followed a quick guide on create a Java web application. Before I even edit anything, I have run the app using Tomcat server, this open up the index.jsp file but when I click on the link to the hello-servlet page, it returns and 404 error.

Could anyone help with what I am doing wrong?

Danny

5 comments
Comment actions Permalink

Please share a sample project zipped: https://uploads.jetbrains.com.

0
Comment actions Permalink

Hi done 2021_03_24_YHaPbXi9z4hhEz5Y

0
Comment actions Permalink

The issue seems to be Tomcat 10 specific. It works fine with Tomcat 9.

1
Comment actions Permalink

Thanks....tbh the tutorial was using tomcat 9, I just got 10 as it was the latest release. I will change to 9

0
Comment actions Permalink

See https://stackoverflow.com/a/66808062/104891 for the details why it doesn't work with Tomcat 10.

0

Please sign in to leave a comment.