Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Deployment 未能在worklight中部署worklight适配器_Deployment_Ibm Mobilefirst_Websphere 8 - Fatal编程技术网

Deployment 未能在worklight中部署worklight适配器

Deployment 未能在worklight中部署worklight适配器,deployment,ibm-mobilefirst,websphere-8,Deployment,Ibm Mobilefirst,Websphere 8,在开发环境中部署时,一切正常。但是,尝试将项目移动到WAS应用程序服务器时,适配器部署失败(.war和.wlapp部署成功通过): 我们已经验证了authenticationConfig.xml中存在安全测试,下面是测试的一部分,因此它实际上是存在的: <securityTests> <customSecurityTest name="BPMAdapter-securityTest"> <test isInternalUserID="true

在开发环境中部署时,一切正常。但是,尝试将项目移动到WAS应用程序服务器时,适配器部署失败(.war和.wlapp部署成功通过):

我们已经验证了authenticationConfig.xml中存在安全测试,下面是测试的一部分,因此它实际上是存在的:

<securityTests>
    <customSecurityTest name="BPMAdapter-securityTest">
        <test isInternalUserID="true" realm="BPMAuthRealm"/>
    </customSecurityTest>
    <webSecurityTest name="BPMApp-web-securityTest">
        <testUser realm="BPMAuthRealm"/>
    </webSecurityTest>
    <mobileSecurityTest name="BPMApp-strong-mobile-securityTest">
        <testUser realm="BPMAuthRealm"/>
        <testDeviceId provisioningType="none"/>
    </mobileSecurityTest>
    <mobileSecurityTest name="BPMApp-mobile-securityTest">
        <testUser realm="BPMAuthRealm"/>
    </mobileSecurityTest>
</securityTests>

以下是我们采取的步骤:

测试服务器:Windows 2008 R2数据中心
数据库:DB210.1
应用服务器:第8.0.0.3位

  • 已成功安装带有DB2数据库的Worklight Server Enterprise 5.0.5。(工作灯在以下位置工作:
    http://internal:9082

  • 已成功安装在服务器中(为了避免在构建过程中出现JDBC问题),Worklight Studio Enterprise 5.0.5已成功安装

  • 将项目导入Studio内的新工作区

  • 已成功部署worklight适配器BPMAdapter.xml

  • 右键单击应用程序(BPMApp)并成功“全部构建并部署”

  • 已打开<代码>http://internalIP:8080/console(基于开发Jetty的worklight console),查看应用程序是否已部署,并且确实已显示在列表中(应用程序和适配器)

  • 使用“预览为公共资源”进行测试,以验证应用程序是否有效,是否成功

    现在,我们继续对WAS部署所需的文件进行调整:

  • 已将application-descriptor.xml文件中的
    http://${local.IPAddress}:8080
    to
    http://internalIP:9082/worklight
    (此示例显示了相同的方法)

  • 此时,我们打开bin dir并将所有*.wlapp文件和BPMAdapter.adapter文件复制到桌面中的文件夹中

  • 现在,我们在worklight.properties文件中进行更改:

    publicWorkLightHostname=worklight服务器的操作主机名 publicWorkLightProtocol=http publicWorkLightPort=9082 publicWorkLightContext=/worklight wl.db.jndi.name=jdbc/WorklightDS wl.db.type=DB2 url=jdbc:db2:Worklight wl.db.username=wluser wl.db.password=correctpassword wl.reports.db.jndi.name=jdbc/WorklightReportsDS wl.reports.db.type=${wl.db.type} wl.reports.db.url=${wl.db.url} wl.reports.db.username=${wl.db.username} wl.reports.db.password=${wl.db.password}

  • 保存worklight.properties并立即重新生成*.war,我们将*.war复制到部署文件夹,以便稍后上载到WAS

  • 根据:(WL 5.0.5信息中心-将customization.war文件部署到WebSphere application Server完整配置文件)在企业应用程序中创建,确保在“类加载器顺序”窗格中,首先单击使用本地类加载器加载的类(最后一个父类),然后在模块部分中单击“类加载器顺序”窗格中,首先单击使用本地类加载器加载的类(最后单击父类)。 WAR上传和启动成功

  • 上传.war(上下文根BPMWorklight)后,我们在浏览器中进入
    http://internalIP:9082/BPMWorklight/console/#catalog
    上传BPMApp-all.wlapp(我们不上传其他三款iPhone、android或common,只上传-all.wlapp)上传成功

  • 我们继续在
    http://internalIP:9082/BPMWorklight/console/#catalog
    适配器BPMAdapter.adapter出现错误“部署适配器'BPMAdapter.adapter'失败”:适配器'BPMAdapter'中的过程'getRest'需要安全测试'BPMAdapter securityTest',但authenticationConfig.xml中未定义该测试。”

  • 请看我的回答:

    确保安装在WebSphere上的Worklight Server版本与用于创建.war、.wlapps和.adapter文件的Worklight Studio Eclipse插件的版本相匹配

    此外,请确保:

  • 您对以下所有内容使用相同的上下文根(“BPMWorklight”):

    • 在application-descriptor.xml中
    • 在worklight.properties中
    • .war文件的名称
  • 您已删除先前在WAS上的Worklight安装默认安装的.war

  • 我感觉您部署了多个Worklight.war文件,但不知何故它们使用了错误的.war,因此没有找到/使用正确的authenticationConfig.xml,这可以解释为什么找不到securityTest


    在Worklight 5.0.x中,一次应该只有一个Worklight.war文件。

    请确保更新的.war文件中的authenticationConfig.xml确实包含假定缺失的securityTest.Idan,是的!刚刚验证了测试在部署的.war中,我们是否应该寻找其他文件?谢谢!Idan,我们有插件版本5.0.5.1和s服务器版本5.0.5(据我们所知,没有5.0.5.1服务器)唯一的问题是将服务器和插件升级到5.0.6,但我们仍然无法做到这一点,因为我们仍然使用以前版本的Cordova.Idan,我们能够找到带有MAC IWS的插件版本5.0.5。我们重建了.war,在服务器中重新安装了它,并重新加载了BPMApp-all.wlapp,wlapp上载正常。当我们尝试上载.adapter我们现在只得到:“部署适配器'BPMAdapter.adapter'失败:错误”非常需要并非常感谢您的想法!再次感谢!此错误与我在答案列表中描述的错误完全相同。您必须确保Worklight Server和Worklight Studio的版本相同。以下是我们的版本:服务器版本:5.0.5.20121130-0919 Worklight Studio插件:5.0.5.20121130-0158 A它们是一样的吗?我想是的…你能确认一下吗?伊丹,最后!!你的直觉是对的…我唯一不清楚的是,安装在was中的Worklight Console应用程序实际上是w的另一个版本
    <securityTests>
        <customSecurityTest name="BPMAdapter-securityTest">
            <test isInternalUserID="true" realm="BPMAuthRealm"/>
        </customSecurityTest>
        <webSecurityTest name="BPMApp-web-securityTest">
            <testUser realm="BPMAuthRealm"/>
        </webSecurityTest>
        <mobileSecurityTest name="BPMApp-strong-mobile-securityTest">
            <testUser realm="BPMAuthRealm"/>
            <testDeviceId provisioningType="none"/>
        </mobileSecurityTest>
        <mobileSecurityTest name="BPMApp-mobile-securityTest">
            <testUser realm="BPMAuthRealm"/>
        </mobileSecurityTest>
    </securityTests>