Another I just noticed, if I just write the <ec2_url>/jolokia then I do the
get the json response. So, something is a bit off when you do a remote
connection via hawtio.

{
    "request": {
        "type": "version"
    },
    "value": {
        "agent": "1.3.0",
        "protocol": "7.2",
        "config": {
            "listenForHttpService": "true",
            "agentId": "172.17.0.10-1-6bc13aa8-osgi",
            "debug": "false",
            "agentType": "servlet",
            "policyLocation": "classpath:\/jolokia-access.xml",
            "agentContext": "\/jolokia",
            "serializeException": "false",
            "mimeType": "text\/plain",
            "authMode": "jaas",
            "canonicalNaming": "true",
            "historyMaxEntries": "10",
            "realm": "karaf",
            "includeStackTrace": "true",
            "user": "karaf",
            "useRestrictorService": "false",
            "debugMaxEntries": "100"
        },
        "info": {
            "product": "felix",
            "vendor": "Apache",
            "version": "5.2.0"
        }
    },
    "timestamp": 1479717185,
    "status": 200
}

On Mon, Nov 21, 2016 at 9:30 AM, Souciance Eqdam Rashti <
[email protected]> wrote:

> I think it must be something with what hawtio is doing during the connect
> stage as I can do a curl to jolokia from within the EC2 instance. But from
> my laptop hawtio seems to have issues to connect. It simply receives the
> HTTP post not allowed - 405 error.
>
> On Mon, Nov 21, 2016 at 9:18 AM, Souciance Eqdam Rashti <
> [email protected]> wrote:
>
>> Hi Jean-Baptiste
>>
>> I didn't see anything strange in the logs. The routes are started, the
>> camel-context gets initiated, jolokia agent is listening to to port 8181.
>> The only thing is that I see this at the end of the log:
>> 2016-11-21 08:12:27,252 | WARN  | qtp632370309-219 |
>> EventAdminAuditLoginModule       |  | Unable to send security auditing
>> EventAdmin events: java.lang.NoClassDefFoundError:
>> org/osgi/service/event/EventAdmin
>>
>>
>> I am not sure if this is ha anything to do with it?
>>
>> By the way I am building our Karaf instance as a custom distribution and
>> including the jolokia feature as a boot feature. Is there anything extra to
>> do there?
>>
>> Best
>> Souciance
>>
>> On Sun, Nov 20, 2016 at 8:28 PM, jbonofre [via Karaf] <
>> [email protected]> wrote:
>>
>>> Hi Souciance,
>>>
>>> anything special in the log ?
>>>
>>> It's maybe the auth in jolokia servlet.
>>>
>>> Regards
>>> JB
>>>
>>> On 11/18/2016 11:42 PM, souciance wrote:
>>>
>>> > Hello,
>>> >
>>> > We have Karaf version 4.0.2 and when we install jolokia and run hawtio
>>> > against it locally it works fine.
>>> >
>>> > When we deploy karaf to an EC2 instance and try to connect to the
>>> jolokia
>>> > agent we get the authentication popup but after it reports an error
>>> saying
>>> > http 405 post is not allowed.
>>> >
>>> > Any guesses what could be the issue?
>>> >
>>> > Best
>>> > Souciance
>>> >
>>> >
>>> >
>>> > --
>>> > View this message in context: http://karaf.922171.n3.nabble.
>>> com/Jolokia-inside-Karaf-returns-405-http-error-tp4048707.html
>>> > Sent from the Karaf - User mailing list archive at Nabble.com.
>>> >
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> [hidden email] <http:///user/SendEmail.jtp?type=node&node=4048718&i=0>
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>>
>>> ------------------------------
>>> If you reply to this email, your message will be added to the discussion
>>> below:
>>> http://karaf.922171.n3.nabble.com/Jolokia-inside-Karaf-retur
>>> ns-405-http-error-tp4048707p4048718.html
>>> To unsubscribe from Jolokia inside Karaf returns 405 http error, click
>>> here
>>> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4048707&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDA0ODcwN3wxNTMyOTExNjU2>
>>> .
>>> NAML
>>> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>>
>>
>>
>




--
View this message in context: 
http://karaf.922171.n3.nabble.com/Jolokia-inside-Karaf-returns-405-http-error-tp4048707p4048724.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to