Hi everyone, I’m working on a Grails 6.2.1 applica...
# community-support
l
Hi everyone, I’m working on a Grails 6.2.1 application with a multi-module structure and using Gradle 7.6.4. I built the WAR file for the main project and deployed it to Tomcat 9. The deployment process was very fast, and the WAR was extracted into a folder under
webapps
. However, when I try to access the app in the browser, I get a "Status 404 – Not Found" error. My project includes multiple submodules configured in
settings.gradle
and
build.gradle
. The application works fine locally. Could the fast deployment indicate something is missing in the WAR? Do I need to add anything specific to
build.gradle
to ensure all submodules are included? Any suggestions on what to check or configure would be greatly appreciated. Thank you!
v
A war is just a zip file, open it and look inside whether it looks like you expect. But if you expect the
war
plugin to magically include all subprojects, then this is most probably the problem. Afair it does not do so, would be quite bad if it did. If you want it to included something, you need to configure that like adding dependencies on the projects you want included.
l
@Vampire, subprojects are included as a jar files in the war.
v
Well, hard to guess what is your issue. But if the expected things are there, you probably miss something wise that should be in the war, but this is most probably not a Gradle question then.
l
@Vampire well i will cross check again , Thank for your response.
šŸ‘Œ 1