Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebSphere Liberty profile and Intellij: JMX administration should be enable

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.

enter image description here

If anyone has this working, please tell me how. Thanks.

like image 241
planetjones Avatar asked Mar 18 '13 19:03

planetjones


1 Answers

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.

like image 106
CrazyCoder Avatar answered Sep 24 '22 03:09

CrazyCoder