从开发环境迁移到dev / test环境时的Worklight连接问题

时间:2013-04-05 14:18:22

标签: connection ibm-mobilefirst

从开发环境迁移到dev / test环境时,我遇到了一个紧急问题。我总是得到错误

  

服务器无法处理来自应用程序的请求。   请稍后再试。

注意:开发环境已准备就绪(worklight控制台和应用程序中心)。我可以通过以下两个网址访问它们:... 9080 / worklight / console /和......:9080 / applicationcenter / applications / Applications.html

我看到了“Help-IBM Worklight”文档并按照列出的步骤进行了操作,但它没有用。

我采取的步骤:

  1. 将application-descriptor.xml的worklightServerRootURL更改为:http://www.test.com:9080/worklight
  2. 更改worklight.properties:
  3. publicWorkLightHostname=www.test.com
    # http or https
    publicWorkLightProtocol = http
    # For default port leave empty
    publicWorkLightPort=9080
    publicWorkLightContext=/worklight
    

    其次是:

    1. 构建全部和部署
    2. 将MyTest.war文件重命名为worklight.war (我认为已经部署了一个名为“worklight.war”的.war文件,用于工作光控制台。)
    3. 当我直接访问网址“www.test.com:9080/worklight/apps/services/api/ISMD/android/”时,出现错误:

        

      AuthenticationContext.getOrCreateAuthenticationContext()

      任何帮助?

1 个答案:

答案 0 :(得分:0)

您没有在步骤中提及是否重新部署了.war文件。 您没有提到您在开发/测试环境中运行的应用程序服务器是什么。

war文件远远超过Worklight Console;它还包含worklight.properties和authenticationConfig.xml以及其他工件;您必须在应用程序服务器中重新部署此.war文件才能进行更改。

此外,this APAR suggests a configuration issue会记录此类错误。 首先尝试重新部署。

相关问题