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

37 messages · Page 1 of 1 (latest)

hearty scroll
#

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

marsh streamBOT
#

This post has been reserved for your question.

Hey @hearty scroll! 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.

hearty scroll
#

At first I tried to clean, build , package every module possible

#

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

pale forge
#

How are you deploying the project?

hearty scroll
pale forge
#

Can you show the deployment config?

#

I feel like the issue might be that the deployment expects the old group ID

hearty scroll
#

I changed the url to identify which project is mine but the issue remains the same

pale forge
#

Is there a deployment thing in your project structure?

hearty scroll
#

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?

hearty scroll
#

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 @pale forge 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?

pale forge
pale forge
hearty scroll