-
Notifications
You must be signed in to change notification settings - Fork 950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running a war file doesn't work if it has a path #12173
Labels
Comments
jeffscottbrown
pushed a commit
to jeffscottbrown/xpusotomosrunwar
that referenced
this issue
Nov 10, 2021
@xpusostomos Does the following work for you?
|
I think I see now. The app probably starts fine and request process leads to problems. Is that the case? |
I have added the |
Yes, it fails when you actually access a view. |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just wasted a few days of my life trying to figure out why a war file won't run....
This doesn't work...
java -Dgrails.env=development -jar build/libs/myapp.war
If you do it, grails won't be able to find your view files.
This will work...
(cd build/libs ; java -Dgrails.env=development -jar myapp.war )
This really should work as expected... however at the very least, if it can't support the correct behavior, it should exit gracefully with a meanful error message rather than starting up tomcat, but misbehaving.
This issue seems to have come up before, but it didn't seem as if people understood that the problem is related to having a path on the command line:
#605
and I'm not the first one to be confused about what is wrong:
https://stackoverflow.com/questions/37863465/how-to-run-grails-3-1-x-application-with-java
Here is some stack trace from when it fails...
grails 4.0.12
The text was updated successfully, but these errors were encountered: