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
⌛
This post has been reserved for your question.
Hey @Rag...JN 🌌 🦡 👽 💰! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose 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.
At first I tried to clean, build , package every module possible
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
it should've give this result
but I got this
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
How are you deploying the project?
I just run the server
Can you show the deployment config?
I feel like the issue might be that the deployment expects the old group ID
I changed the url to identify which project is mine but the issue remains the same
What's shown if you click the edit button there?
Is there a deployment thing in your project structure?
I deleted the rag folder in .m2/com
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
==========
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
interesting?
I am currently running on server
When I netstat 8080
I got 4
so I am going to close everything and try re running the server
alright master dan @dan1st | Daniel I figured it out
So I changed this context root
Then gave clean compile package to the ear module
Then gave clean compile package to the whole app
calculate tax web servlet request
btw what is the difference between
Giving clean compile package for whole app vs separate modules?
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
alright
yah got it sorry about that, I like to call people sir/mam mostly
💤
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.