{"id":20757617,"url":"https://github.com/dodevops/check-tomcat","last_synced_at":"2026-04-28T04:01:34.646Z","repository":{"id":90748177,"uuid":"123248814","full_name":"dodevops/check-tomcat","owner":"dodevops","description":"Check, if all contexts of a tomcat are running","archived":false,"fork":false,"pushed_at":"2018-02-28T07:51:39.000Z","size":1022,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-12-27T12:12:06.489Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dodevops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-28T07:48:42.000Z","updated_at":"2018-02-28T07:51:41.000Z","dependencies_parsed_at":"2024-01-11T00:04:02.340Z","dependency_job_id":null,"html_url":"https://github.com/dodevops/check-tomcat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dodevops/check-tomcat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fcheck-tomcat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fcheck-tomcat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fcheck-tomcat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fcheck-tomcat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dodevops","download_url":"https://codeload.github.com/dodevops/check-tomcat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fcheck-tomcat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32365519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T09:43:24.647Z","updated_at":"2026-04-28T04:01:34.595Z","avatar_url":"https://github.com/dodevops.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# check-tomcat\n\nThis is a small JAVA program, that connects to a Tomcat servlet container \nusing JMX and waits, until all contexts are loaded.\n\nThis is done by checking all beans with type NamingResources and\nresourcetype context and comparing them to a list of known contexts, that\nshould start.\n\nOnce all contexts have the stateName \"STARTED\", the program exits.\n\n## Usage\n\n    java -jar check-tomcat.jar -j \u003cjmx-URL\u003e -r \u003cResources to check\u003e\n\nUse a valid jmx-URL like this:\n\n    service:jmx:rmi:///jndi/rmi://\u003cjmx host name\u003e:\u003cjmx port\u003e/jmxrmi\n\nReplace \u003cjmx host name\u003e and \u003cjmx port\u003e with the hostname and port of your jmx\n server.\n\nSpecify -r for each resource you want to check (i.e. myserver:some/context)\n \n## Timeout\n\nThe default timeout for waiting for tomcat to load the resources is ten \nminutes. This can be configured using the parameter \"-t\". \n\nIf the timeout is reached, the program exists with an error message and \nreturn code 2.\n\n## Connection problems\n\nWhen called directly after a server is started, the JMX service might not be \nup and running - which is an expected error. In this case, the script will \nreturn code 3, so that other scripts using it may react to it and restart it.\n\n## Dealing with startup problems\n\nTo check, why check-tomcat doesn't return, run check-tomcat with \"-d\" and\nit will output all contexts, that have not been started.\n\nExample:\n\n    TOMCAT_HOME=/usr/local/tomcat/conf/Catalina\n    RESOURCES=`cd ${TOMCAT_HOME} \u0026\u0026 find * -type f | sed -re \"s/ROOT//gi\" | tr / : | tr \\# \\/ | sed -re \"s/\\.xml//gi\" | paste -s -d \",\" | sed -re \"s/,/ -r /gi\"`\n    java -jar check-tomcat.jar -j service:jmx:rmi:///jndi/rmi://localhost:9003/jmxrmi -r $RESOURCES -d\n  \n## Details\n\nUse --help to get more information about available parameters.\n\n## Building\n\nTo build the app, run\n\n    mvn package\n\nAfterwards, you can find a JAR with all packaged dependency in the \ntarget/-folder named check-tomcat-\u003cversion\u003e-jar-with-dependencies.jar. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodevops%2Fcheck-tomcat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdodevops%2Fcheck-tomcat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodevops%2Fcheck-tomcat/lists"}