igniterealtime/openfire-jmxweb-plugin

404 on http://your-server:7070/hawtio

evle-zzz opened this issue · 8 comments

After installation and initial configuration (with xmpp.jmx.enabled=true, xmpp.jmx.secure=false)
http://your-server:7070/hawtio and http://your-server:7070/jolokia return error

HTTP ERROR 404
Problem accessing /hawtio/. Reason:
Not Found
Powered by Jetty:// 9.4.18.v20190429

Openfire 4.4.1, JmxWeb Plugin 0.0.7 (from plugins page in openfire)

I ran into the same problem on 4.2 and even after an upgrade to 4.3 it was still not working. I haven't attempted updating it to 4.4 yet, but looks like I will still have no luck. How can I help troubleshoot? Would be really nice to get jmx going for insight/metrics/graphing.

I will take a look. Not used it in a while

At around Openfire 4.2 the API for adding servlet contexts to the port 7070 tomcat changed; the plugin probably needs an update to reflect that.

At around Openfire 4.2 the API for adding servlet contexts to the port 7070 tomcat changed; the plugin probably needs an update to reflect that.

I remember making that change :-)

HttpBindManager.getInstance().addJettyHandler( context );

I got it working.

http://desktop-545pc5b:7070/jolokia/ produced

{
    "request":{"type":"version"},
    "value":{
        "agent":"1.3.3",
        "protocol":"7.2",
        "config":{
            "maxCollectionSize":"1000",
            "agentId":"10.0.75.1-19632-6db00a71-servlet",
            "debug":"false",
            "agentType":"servlet",
            "serializeException":"false",
            "detectorOptions":"{}",
            "dispatcherClasses":"org.jolokia.jsr160.Jsr160RequestDispatcher",
            "maxDepth":"15",
            "discoveryEnabled":"false",
            "canonicalNaming":"true",
            "historyMaxEntries":"10",
            "includeStackTrace":"true",
            "maxObjects":"0",
            "debugMaxEntries":"100"
        },"info":{
            "product":"jetty",
            "vendor":"Eclipse",
            "version":"9.4.18.v20190429"
        }
    },
    "timestamp":1574792908,
    "status":200
}

Dashboard is also working from http://desktop-545pc5b:7070/hawtio/

image

Fixed in 465eb8a