Talk about timing. I decided to hit up a few old Ask a Jedi questions and came across this:
I'm working with the CFMX 7 Admin API. When trying to invoke the 'getJvmProperty()' method, I receive an error stating 'Current user is not authorized to invoke this method.'I am instantiating the admin.cfc and the runtime.cfc in the request scope. I am also using the request.adminObj.login() method to login to the Administrator. When I invoke the inherited method 'isAdminUser()' from the runtime object, the response is TRUE.
I am slightly confused here.
Today Macromedia (um, sorry, Adobe) released a tech note that I believe answers this exact question:
Archived Comments
I brought this issue to Steven Erat's attention about 2 months ago. I think it's a shame that the Admin API does not work on J2EE deployments as that appears to be the preferred method of deployment these days.
What's worse is that there are no plans (that I've heard of) to fix this in a future release. Macromedia / Adobe is saying that this is a 'documentation flaw' and have now corrected it with a technote. Apparently, if you deploy using the J2EE method, then you won't be able to fully utilize the Admin API.
I was using this method of creating datasources dynamically: http://www.creative-restrai... and ran into this problem. The solution only has a work around for that one method, any one know how I can create a datasource dynamically?
Sorry! Please disregard, creating datasources works fine this was my fault as my login wasn't being called properly, this does work fine, I just assumed that my bug was macromedia's.