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?
No description
13 Replies
JavaBot
JavaBot6mo ago
This post has been reserved for your question.
Hey @Eloreuy! Please use /close or the Close Post button 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.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Eloreuy
EloreuyOP6mo ago
Hi
Madjosz
Madjosz6mo ago
Could you post the code please where you add your request mapping?
Eloreuy
EloreuyOP6mo ago
ok
Eloreuy
EloreuyOP6mo ago
Madjosz
Madjosz6mo ago
Are you sure that the url is not just localhost:8080/ArticoloSrv?
Eloreuy
EloreuyOP6mo ago
I tried it, but don't work. I create a Web Dynamic Project called "Magazzino"
JavaBot
JavaBot6mo ago
💤 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.
Eloreuy
EloreuyOP6mo ago
Resolved
Madjosz
Madjosz6mo ago
May I ask what was the problem?
dan1st
dan1st6mo ago
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.
Madjosz
Madjosz6mo ago
Ah yes, sounds reasonable. I think a colleague encountered a similar issue once.
JavaBot
JavaBot6mo ago
💤 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.

Did you find this page helpful?