我一直在尝试设置IBM Worklight环境。我要使用:
一切似乎都正常。我已经设置了Tomcat(默认配置),MySQL(默认配置)。然后,我继续设置IBM Worklight。我指向Tomcat的安装目录,放置在MySQL Connector / J jar文件中,等等,等等。
完成后,我部署了一个应用程序。该应用程序是使用Eclipse使用IBM Worklight Studio 6.2插件制作的。碰到应用程序URL(http://localhost:8080/appname/console)时,出现以下错误:HTTP状态500-java.lang.RuntimeException:等待管理服务启动时超时
http://localhost:8080/appname/console
type Exception report message java.lang.RuntimeException: Timeout while waiting for the management service to start up description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: java.lang.RuntimeException: Timeout while waiting for the management service to start up com.worklight.core.auth.impl.AuthenticationFilter.isWaitingForInitialization(AuthenticationFilter.java:561) com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:130) root cause java.lang.RuntimeException: Timeout while waiting for the management service to start up com.worklight.core.init.WorklightServletInitializer$1.run(WorklightServletInitializer.java:133) java.lang.Thread.run(Unknown Source) note The full stack trace of the root cause is available in the Apache Tomcat/7.0.54 logs. Apache Tomcat/7.0.54
但是,当我使用IBM WebSphere Liberty服务器执行相同的安装时,一切正常。我们确实想使用Apache Tomcat而不是WebSphere Liberty。
我究竟做错了什么?什么是“管理服务”,我如何启动或激活它?或至少检查一下?它与JMX有关吗?
我认为您的情况下JMX配置不正确。请参阅https://www-01.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.installconfig.doc/install_config/t_optional_config_app_server_tomcat.html
服务器启动时,Worklight运行时将尝试通过JMX与Worklight Admin Service通信。由于Web应用程序的启动顺序是任意的,因此它可能比Worklight运行时之后启动Worklight Admin Services发生。在这种情况下,Worklight运行时将一直等到Worklight Admin Services正在运行。异常中提到的超时意味着运行时在给定的时间内未找到正在运行的Worklight Admin Services。这可能意味着: