I have IBM Worklight 6.2 development environment with the following setup.
Oracle Java 1.7
Eclipse 4.3
IBM Worklight 6.2 Developer Edition
A sample Hybrid project had been created and deployed in the Worklight development server and app works fine in the Mobile Browser Simulator.
I am getting the following error in Worklight Server console in Eclipse:
[ERROR ] Failed to obtain JMX connection to access an MBean.
There might be a JMX configuration error: Read timed out
[ERROR ] FWLSE3000E: A server error was detected.
FWLSE3012E: JMX configuration error. Unable to obtain MBeans. Reason: "Read timed out".
And also I am getting the following error in Worklight Console[Web Console].
FWLSE3012E: JMX configuration error. Unable to obtain MBeans. Reason: "Read timed out".
Note: I have read the following questions but no luck.
IBM Worklight - Can't run an app on WebSphere Application Server
How to solve management service not starting up in Worklight 6.2
Additional Info:
I used to get the following error whenever the Worklight development server is started from eclipse.
*[WARNING ] CWNEN0070W: The javax.ws.rs.QueryParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.PathParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.HeaderParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.CookieParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.core.Context annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.MatrixParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.*
I hope necessary information's I have provided. Let me know if u still need.
The JMX timeout error in Worklight 6.2 is a known issue.
Typically when this error occurs to me, a way to resolve it is to either 'wait' a while and then to stop & restart the Worklight Server (in Eclipse > Servers view > 'play' button). Another option is to restart Eclipse.
You can also try the suggestions from the comments:
Try to edit the file WorklightServerConfig/servers/worklight/jvm.options in your Eclipse workspace, adding the line "-Dcom.ibm.ws.jmx.connector.client.rest.readTimeout=180000". Then stop and restart the Worklight Development Server.
and
Try to edit the file WorklightServerConfig/servers/worklight/server.xml and add in the section the following line, then restart and try again:
<executor name="LargeThreadPool" id="default" coreThreads="40" maxThreads="80" keepAlive="60s" stealPolicy="STRICT" rejectedWorkPolicy="CALLER_RUNS" />
Best is to open a PMR (support ticket) and request an iFix as this is due to be fixed.
来源:https://stackoverflow.com/questions/24721416/ibm-worklight-6-2-jmx-configuration-error-unable-to-obtain-mbeans