Hi
I have modified the JolokiaDemo java class slightly to make it use the correct url and username/password, but I keep getting "org.jolokia.client.exception.J4pRemoteException: Forbidden"
The only modification I have made is how the J4pClient is created:
J4pClient j4pClient = J4pClient.url("
http://localhost:8181/hawtio/jolokia").user("karaf").password("karaf").build();
I can connect using curl without problems:
curl -su karaf:karaf
http://localhost:8181/hawtio/jolokia/read/java.lang:type=Memory/HeapMemoryUsage{"timestamp":1400769276,"status":200,"request":{"mbean":"java.lang:type=Memory","attribute":"HeapMemoryUsage","type":"read"},"value":{"max":518979584,"committed":133644288,"init":134217728,"used":56233064}}
I am trying to reach a Jolokia in Hawt.io 1.4.0 running in Apache Karaf 3
Any help appreciated ;-)
Cheers,
Stefan