Running Jolokia on Tomcat 7.0.52

classic Classic list List threaded Threaded
3 messages Options
Aviral Aviral
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Running Jolokia on Tomcat 7.0.52

Hi,


I am trying to run jolokia on tomcat. I am following this tutorial https://jolokia.org/tutorial.html
 I downloaded the jolokia war from here: http://repo1.maven.org/maven2/org/jolokia/jolokia-war/1.2.3/jolokia-war-1.2.3.war
Now going to Tomcat bin folder and typing the command catalina.sh start
My tomcat is running on localhost:8080
but when I type localhost:8080/jolokia/version in the browser I am getting:
HTTP STATUS 404 - /jolokia/version
roland roland
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Running Jolokia on Tomcat 7.0.52

Have you renamed the war file to 'jolokia.war' in webapps/ ?

The first part of the URL reflects the file name of the file in webapps/

BTW the tutorial is a bit outdated, the actual war file can be found at https://jolokia.org/download.html
... roland
Aviral Aviral
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Running Jolokia on Tomcat 7.0.52

Thanks Roland,


Sorry, My silly mistake
Renaming the file jolokia-war-1.2.3.war to jolokia.war worked.

Output I am getting is as follows:-

{
        "timestamp": 1476436724,
        "status": 200,
        "request": {
                "type": "version"
        },
        "value": {
                "protocol": "7.2",
                "config": {
                        "detectorOptions": "{}",
                        "canonicalNaming": "true",
                        "maxCollectionSize": "0",
                        "includeStackTrace": "true",
                        "historyMaxEntries": "10",
                        "agentId": "IPaddress-97820-7898b133-servlet",
                        "debug": "false",
                        "dispatcherClasses": "org.jolokia.jsr160.Jsr160RequestDispatcher",
                        "maxDepth": "15",
                        "maxObjects": "0",
                        "discoveryEnabled": "false",
                        "serializeException": "false",
                        "agentType": "servlet",
                        "debugMaxEntries": "100"
                },
                "agent": "1.3.5",
                "info": {
                        "product": "tomcat",
                        "vendor": "Apache",
                        "version": "7.0.52"
                }
        }
}
Loading...