Frage

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.

War es hilfreich?

Lösung

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.

Andere Tipps

If you don't see the "fix" button or you don't see the server you created in the drop down menu, it is likely a permissions issue.

If you are on your local box and don't really care about giving access to that folder:

chmod -R a+wrx /opt/IBM/WebSphere/Liberty/
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top