D
D
dromanoff15012021-10-15 19:05:12
Java
dromanoff1501, 2021-10-15 19:05:12

How to start a servlet?

https://github.com/dromanoff/FileStorage

I created a project in intellijidea - a standard web application, a tomcat server. (Auto-generated)

Pom.xml https://github.com/dromanoff/FileStorage/blob/mast...
Servlet https://github.com/dromanoff/FileStorage/blob/mast...
web.xml https:/ /github.com/dromanoff/FileStorage/blob/mast...

When going to the servlet, it gives a 404 error.
What could be the error?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan, 2021-10-15
@dromanoff1501

Well, you can first try checking the context path. Most likely this is the problem.
Those. for example, you are trying to open the url localhost:8080/, but you should localhost:8080/customPath
. Most likely, you are faced with just this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question