문제

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.

도움이 되었습니까?

해결책

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.

다른 팁

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/
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top