Webarchive (WAR) Agent
Jolokia 2.0 uses Jakarta EE 9+ (Servlet API 5+ with
while Jolokia 1.x uses JavaEE/JakartaEE up to version 8 (Servlet API up to version 4 with
This agent is most suitable for Jakarta EE environments. It gets deployed
as a usual web archive (WAR). The specific deployment procedure depends on
the Jakarta EE server in used. E.g. for Tomcat, copy the WAR agent into the
The WAR agent comes in two flavors:
jolokia-agent-war.warwhich is secured with a role "jolokia". So you need to setup your servlet container to link this role with your authentication setup (like the
jolokia-agent-war-unsecured.waris completely unsecured and might be useful for a quick evaluation. Please note that this unauthenticated access should be ony used for development purposes. Check out reference manual for details how to enable security.
As soon as it is deployed, the agents offers its services under the URL of the deployed web application. For Tomcat running with its standard configuration the agent is then reachable under
Setup and configuration of the WAR agent is explained detailed in the reference manual.