I have IBM Worklight 6.2 development environment with the following setup.
我有IBM Worklight 6.2开发环境和以下设置。
-
Oracle Java 1.7
甲骨文Java 1.7
-
Eclipse 4.3
Eclipse 4.3
-
IBM Worklight 6.2 Developer Edition
IBM Worklight 6.2开发版。
A sample Hybrid project had been created and deployed in the Worklight development server and app works fine in the Mobile Browser Simulator.
在Worklight开发服务器中创建并部署了一个示例混合项目,在移动浏览器模拟器中应用程序运行良好。
I am getting the following error in Worklight Server console in Eclipse:
我在Eclipse的Worklight服务器控制台得到以下错误:
[ERROR ] Failed to obtain JMX connection to access an MBean.
未能获得JMX连接以访问MBean。
There might be a JMX configuration error: Read timed out
可能有一个JMX配置错误:读取超时。
[ERROR ] FWLSE3000E: A server error was detected.
[错误]FWLSE3000E:检测到服务器错误。
FWLSE3012E: JMX configuration error. Unable to obtain MBeans. Reason: "Read timed out".
FWLSE3012E:JMX配置错误。无法获得mbean。理由:“读超时”。
And also I am getting the following error in Worklight Console[Web Console].
而且我在Worklight Console[Web控制台]中也得到了以下错误。
FWLSE3012E: JMX configuration error. Unable to obtain MBeans. Reason: "Read timed out".
FWLSE3012E:JMX配置错误。无法获得mbean。理由:“读超时”。
Note: I have read the following questions but no luck.
注:我已经阅读了以下问题,但没有任何运气。
-
IBM Worklight - Can't run an app on WebSphere Application Server
IBM Worklight -不能在WebSphere应用服务器上运行应用程序。
-
How to solve management service not starting up in Worklight 6.2
如何解决工作中不启动的管理服务6.2 ?
Additional Info:
额外的信息:
I used to get the following error whenever the Worklight development server is started from eclipse.
每当从eclipse启动Worklight开发服务器时,我都会得到以下错误。
*[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.
*[警告]CWNEN0070W: javax.ws.rs。QueryParam注释类不会被识别,因为它是从null位置加载的,而不是从产品类装入器中加载的。
[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.
[警告]CWNEN0070W: javax.ws.rs。PathParam注释类不会被识别,因为它是从null位置加载的,而不是从产品类装入器中加载的。
[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.
[警告]CWNEN0070W: javax.ws.rs。HeaderParam注释类不会被识别,因为它是从null位置加载的,而不是从产品类装入器中加载的。
[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.
[警告]CWNEN0070W: javax.ws.rs。CookieParam注释类不会被识别,因为它是从null位置加载的,而不是从产品类装入器中加载的。
[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.
[警告]CWNEN0070W: javax.ws.r .core。上下文注释类不会被识别,因为它是从null位置加载的,而不是从产品类装入器中加载的。
[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.*
[警告]CWNEN0070W: javax.ws.rs。不能识别MatrixParam注释类,因为它是从null位置加载的,而不是从产品类装入器中加载的。
I hope necessary information's I have provided. Let me know if u still need.
我希望我已经提供了必要的信息。如果你还需要的话,请告诉我。
1 个解决方案
#1
1
The JMX timeout error in Worklight 6.2 is a known issue.
Worklight 6.2中的JMX超时错误是一个已知问题。
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.
通常,当这个错误发生在我的时候,解决它的方法是“等待”一段时间,然后停止并重新启动Worklight服务器(在Eclipse >服务器上查看> 'play'按钮)。另一个选项是重启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.
尝试编辑文件WorklightServerConfig/server /worklight/jvm。在您的Eclipse工作区中,添加“-Dcom.ibm.ws.jmx.connector.client.rest.readTimeout=180000”。然后停止并重新启动Worklight开发服务器。
and
和
Try to edit the file WorklightServerConfig/servers/worklight/server.xml and add in the section the following line, then restart and try again:
尝试编辑文件WorklightServerConfig/server /worklight/server。xml并添加到下面一行中,然后重新启动并再次尝试:
<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.
最好是打开一个PMR(支持票)并请求一个iFix,因为这是固定的。
#1
1
The JMX timeout error in Worklight 6.2 is a known issue.
Worklight 6.2中的JMX超时错误是一个已知问题。
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.
通常,当这个错误发生在我的时候,解决它的方法是“等待”一段时间,然后停止并重新启动Worklight服务器(在Eclipse >服务器上查看> 'play'按钮)。另一个选项是重启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.
尝试编辑文件WorklightServerConfig/server /worklight/jvm。在您的Eclipse工作区中,添加“-Dcom.ibm.ws.jmx.connector.client.rest.readTimeout=180000”。然后停止并重新启动Worklight开发服务器。
and
和
Try to edit the file WorklightServerConfig/servers/worklight/server.xml and add in the section the following line, then restart and try again:
尝试编辑文件WorklightServerConfig/server /worklight/server。xml并添加到下面一行中,然后重新启动并再次尝试:
<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.
最好是打开一个PMR(支持票)并请求一个iFix,因为这是固定的。