WebSphere Liberty profile and Intellij: JMX administration should be enable

intellij-idea, jmx, websphere, websphere-liberty

Solution

To make it possible for IDEA to administrate WebSphere LP with JMX, you should specify in the `server.xml`:

<applicationMonitor updateTrigger="mbean" />

in addition to the fragment you've already specified:

<featureManager>
    <feature>localConnector-1.0</feature>
</featureManager>

Actually, IDEA is able to make both changes for you -- you should just press the Fix button next to the `JMX administration should be enabled` message in the run configuration.

Problem

Is anyone running the WebSphere 8.5.0.1 Liberty Profile from inside Intellij 12? I have added a WebSphere Server Run Configuration, but all I get is: ``` Error running WebSphere 8.5.0.1: JMX administration should be enabled ``` I can understand the error, but am not sure how to solve this within Intellij. I added server.xml inside WebSphere to say: ``` <featureManager> <feature>localConnector-1.0</feature> </featureManager> ``` But I am not sure Intellij is even reading this config file. If anyone has this working, please tell me how. Thanks.

Original source