Re: getting a list of failed deployments
Mark Thomas <[email protected]>
| Newsgroups | gmane.comp.jakarta.tomcat.user |
|---|---|
| Message-ID | <[email protected]> |
On 11/11/2025 20:35, Paymon wrote: > hello, > > we seem to be having problem with some deployed apps. they stop running and > server returns 404 for that app. we are trying to get the status of each app > from `manager/status/all?JSON=true` endpoint. > > i wrote a little script for that, returned json seems to list deployed apps in > an array under tomcat.context. > > problem is i don't know, and i can't tell from the docs, if this is the list of > all apps, or just the ones "running"? > > same with `manager/text/list`; it does list the apps but in the examples in the > doc it never show the case where one of the apps has failed. they're all marked > 'running' > > what should i excpect to see when an app has failed to run? It isn't hard to test this yourself. Just create a directory under webapps and add a META-INF/context.xml file with invalid content. Then see what the Manager app shows you. http://localhost:8080/manager/text/list OK - Listed applications for virtual host [localhost] /:running:0:ROOT /examples:running:0:examples /host-manager:running:0:host-manager /test:stopped:0:test /manager:running:0:manager /docs:running:0:docs http://localhost:8080/manager/status/all?JSON=true Hmm. Invalid JSON. Looks like we have a bug. I'll take a look. Mark