Request to the servlet not working after changing project groupid in multi module project

So I received my lecturer's app and it runs without any problem But when I changed the group id from "com.jiat" to "com.rag" The Servlet in the web module throws 404
29 Replies
JavaBot
JavaBot9mo ago
This post has been reserved for your question.
Hey @Rag...JN 🌌 🦡 👽 💰! 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 closed 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.
Rag...JN 🌌 🦡 👽 💰 🐊
At first I tried to clean, build , package every module possible
No description
Rag...JN 🌌 🦡 👽 💰 🐊
Here is the projects https://github.com/ragujan/get_help_for_a_multi_module_maven_project ee-app-2 is mine, ee-app is lecturers
GitHub
GitHub - ragujan/get_help_for_a_multi_module_maven_project: Getting...
Getting help to fix some issues, it's mainly the servlet url - GitHub - ragujan/get_help_for_a_multi_module_maven_project: Getting help to fix some issues, it's mainly the servlet url
Rag...JN 🌌 🦡 👽 💰 🐊
it should've give this result
No description
Rag...JN 🌌 🦡 👽 💰 🐊
but I got this
No description
Rag...JN 🌌 🦡 👽 💰 🐊
but when I removed the Servlet classes that contains EJB related stuff (a normal servlet) it worked fine So there is a problem with ejb tracking by the web module is my guess
dan1st
dan1st9mo ago
How are you deploying the project?
Rag...JN 🌌 🦡 👽 💰 🐊
I just run the server
No description
dan1st
dan1st9mo ago
Can you show the deployment config? I feel like the issue might be that the deployment expects the old group ID
Rag...JN 🌌 🦡 👽 💰 🐊
I changed the url to identify which project is mine but the issue remains the same
No description
dan1st
dan1st9mo ago
What's shown if you click the edit button there? Is there a deployment thing in your project structure?
Rag...JN 🌌 🦡 👽 💰 🐊
I deleted the rag folder in .m2/com
Rag...JN 🌌 🦡 👽 💰 🐊
and I tried to run clean, compile, package at first Core module then ear module During ear module clean, compile, package I got this error
No description
Rag...JN 🌌 🦡 👽 💰 🐊
========== The old url is working fine now but the new url is not So it might be because of the ear ? but the server's url is still set to github help
No description
Rag...JN 🌌 🦡 👽 💰 🐊
interesting?
Rag...JN 🌌 🦡 👽 💰 🐊
I am currently running on server When I netstat 8080
Rag...JN 🌌 🦡 👽 💰 🐊
so I am going to close everything and try re running the server alright master dan @dan1st | Daniel I figured it out
Rag...JN 🌌 🦡 👽 💰 🐊
So I changed this context root Then gave clean compile package to the ear module Then gave clean compile package to the whole app
No description
Rag...JN 🌌 🦡 👽 💰 🐊
calculate tax web servlet request
No description
Rag...JN 🌌 🦡 👽 💰 🐊
btw what is the difference between Giving clean compile package for whole app vs separate modules?
dan1st
dan1st9mo ago
You don't need to call me master dan, I'm just another programmer if you do it on the parent thing, Maven cleans and compiles all modules
Rag...JN 🌌 🦡 👽 💰 🐊
alright yah got it sorry about that, I like to call people sir/mam mostly
JavaBot
JavaBot9mo 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.
Want results from more Discord servers?
Add your server