我正在尝试设置我的第一个移动应用,但现在没有成功超过一周
我在RHEL 6上使用MFP 7.0和MySQL 56.我仍在尝试通过谷歌找到此错误的解决方案
我使用' localConnector-1.0'在server.xml中,如下所示
<featureManager>
<feature>jsp-2.2</feature>
<feature>jdbc-4.0</feature>
<feature>appSecurity-2.0</feature>
<feature>servlet-3.0</feature>
<feature>localConnector-1.0</feature>
但是在messages.log中,我能够通过REST看到&#39;连接。尽管使用了localConnector&#39;其次是格式错误的网址&#39;
[7/31/15 9:57:35:188 IST] 00000048 com.worklight.common.util.jmx.LibertyRuntimeMBeanHandler I Establishing REST connection to service:jmx:rest://localhost:9443/IBMJMXConnectorREST
[7/31/15 9:57:35:189 IST] 00000048 com.worklight.common.util.jmx.LibertyRuntimeMBeanHandler I Establishing REST connection to service:jmx:rest://localhost:9443/IBMJMXConnectorREST
[7/31/15 9:57:35:190 IST] 00000048 com.worklight.core.jmx.ProjectSynchronizationBean E FWLSE0320E: Failed to check whether the admin services are ready. Caused by: [project worklightconsole]
java.net.MalformedURLException: Unsupported protocol: rest
at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:367)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:277)
at com.worklight.common.util.jmx.LibertyRuntimeMBeanHandler.getMBeanServerConnection(LibertyRuntimeMBeanHandler.java:84)
at com.worklight.common.util.jmx.MBeanConnectorFactory.getLocalMBeanProxy(MBeanConnectorFactory.java:139)
at com.worklight.core.jmx.ProjectSynchronizationBean.isReady(ProjectSynchronizationBean.java:126)
at com.worklight.core.init.WorklightServletInitializer$1.run(WorklightServletInitializer.java:140)
at java.lang.Thread.run(Thread.java:780)
任何帮助或网址链接都会有很大帮助
答案 0 :(得分:1)
按照设计,与MobileFirst Admin Services的连接使用JMX并使用SSL加以保护。 为了能够使用这样的连接,您必须在Liberty中使用功能restConnector-1.0而不是功能localConnector-1.0。
&#34;配置与Liberty配置文件的安全JMX连接&#34; https://www-01.ibm.com/support/knowledgecenter/SSD28V_8.5.5/com.ibm.websphere.wlp.core.doc/ae/twlp_admin_restconnector.html?cp=SSD28V_8.5.5%2F1-5-2-10-1
这在MobileFirst 7.0文档的“#34;配置WebSphere Application Server Liberty概要文件&#34; http://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.installconfig.doc/install_config/t_optional_config_app_server_liberty.html 据说MobileFirst Server需要配置安全的JMX连接。
您可以在本节中找到配置MobileFirst管理服务的手动步骤 &#34;手动为MobileFirst Server管理配置WebSphere Application Server Liberty配置文件&#34; http://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.installconfig.doc/admin/t_configuring_liberty_profile_for_wladmin_manually.html
要使用的Liberty功能列表取决于Liberty版本,但在所有情况下,您都会注意到只使用了restConnector-1.0功能。
要更进一步,请注意还有一个用于配置Liberty with MySQL的部分 &#34;手动配置MySQL的Liberty配置文件&#34; http://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.deploy.doc/admin/t_configuring_liberty_profile_for_my_sql_manually.html