Having trouble with localhost to Java (Eclipse)
Hi, I'm experiencing an issue connecting to my project on localhost. The server starts successfully, but when I try to access my servlet, the connection doesn't work and I receive a 404 error. I'm using WildFly, and the servlet is properly annotated with @WebServlet. Could you help me identify what's going wrong?

13 Replies
⌛ This post has been reserved for your question.
Hey @Eloreuy! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
Hi
Could you post the code please where you add your request mapping?
ok
Are you sure that the url is not just
localhost:8080/ArticoloSrv?I tried it, but don't work.
I create a Web Dynamic Project called "Magazzino"
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.Resolved
May I ask what was the problem?
My guess would be using Java EE dependencies and packages with a new WildFly server that uses Jakarta EE (e.g. WildFly 36). And this could be solved by switching the web project to Jakarta EE.
Ah yes, sounds reasonable. I think a colleague encountered a similar issue once.
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.