I guess I could try setting breakpoints in wildfly but my test was just pasting the escaped url below into wildfly.
So I just tried again and this time it worked ok. I believe I've only made one change - the jolokia agent is authenticating using as shown here:
<application-security-domain name="jolokia" http-authentication-factory="management-http-authentication"/>
and it's using the default
<properties-realm name="ManagementRealm"> <users-properties path="mgmt-users.properties" relative-to="jboss.server.config.dir" digest-realm-name="ManagementRealm"/> <groups-properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/> </properties-realm>
Authentication seemed to work OK but the actual failure occurs if there is no configured role. The agent expects the role "jolokia" which was missing from mgmt-groups.properties
In that file, if I have this entry:
hawtadmin=admin,jolokia
everything works. If I remove "jolokia" or add some trailing junk I get the exception below. In all cases the url in the browser is the correctly escaped url.
I discovered the role was missing because the jolokia client can be configured to use POST instead of GET. When I did that I got a "Forbidden" status back
So in summary - if you have a properly configured app you won't see the error, but get the roles wrong and you get a misleading error.
--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wildfly/30c327ce-c10d-488c-a72a-19bb923789bbn%40googlegroups.com.