首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不支持的协议: rest mobilefirst

不支持的协议: rest mobilefirst
EN

Stack Overflow用户
提问于 2015-07-31 12:47:54
回答 1查看 875关注 0票数 0

我正在尝试设置我的第一个移动应用程序,但至今一个多星期都没有成功

我在RHEL6上使用MFP7.0和MySQL 56。我仍然在尝试通过谷歌找到解决这个错误的方法

我在server.xml中使用'localConnector-1.0‘,如下所示

代码语言:javascript
复制
<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的连接’,尽管我使用了'localConnector‘后跟’错误的URL‘。

代码语言:javascript
复制
[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)

任何帮助或URL链接都将是非常有用的

EN

回答 1

Stack Overflow用户

发布于 2015-07-31 14:52:59

根据设计,到MobileFirst管理服务的连接使用JMX,并使用安全套接字层进行保护。为了能够使用这样的连接,您必须在Liberty中使用feature restConnector-1.0,而不是feature localConnector-1.0。

“配置到自由配置文件的安全JMX连接”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

在JMX7.0文档的“配置profile”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服务器需要配置安全的WebSphere连接。

您可以在本节“手动配置用于MobileFirst服务器管理的WebSphere应用程序服务器权限配置文件”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中找到配置MobileFirst管理服务的手动步骤

要使用的Liberty特性列表取决于Liberty版本,但在所有情况下,您都可以注意到只使用了特性restConnector-1.0。

更进一步,请注意,还有一节介绍如何使用MySQL配置权限“手动为MySQL配置权限配置文件”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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31738260

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档