使用 Worklight 控制台部署应用程序失败:"无法部署应用程序 <appName>.wlapp":错误



我正在使用Worklight 5.0.6.201300311-0918,在RedHat Linux上的WebSphere应用程序服务器(7.0.0.21(上运行,并尝试使用Worklight控制台部署应用程序。我收到一个错误:

'部署应用程序失败'CitizenCollaboration-android-1.0.5.wlap'。:错误'

WebSphere的SystemOut.log中没有太多信息。我尝试在App Server管理控制台中增加跟踪级别,但仍然没有足够的错误信息。

注意:我能够成功部署工作灯适配器

Authentication.xml

<staticResources>
    <resource id="worklightConsole" securityTest="WorklightConsole">
        <urlPatterns>/console*</urlPatterns>
    </resource>
</staticResources>

<securityTests>
   <customSecurityTest name="WorklightConsole">
     <test realm="WorklightConsole" isInternalUserID="true"/>
   </customSecurityTest>
    <mobileSecurityTest name="WAS-mobileSecurityTest">
        <testDeviceId provisioningType="none" />
        <!-- <testUser realm="wl_remoteDisableRealm"/>  -->
        <testUser realm="WASLTPARealm"/>
    </mobileSecurityTest>
    <webSecurityTest name="WAS-webSecurityTest">
        <testUser realm="WASLTPARealm"/> 
    </webSecurityTest>
    <customSecurityTest name="pushSecurityTest">
        <test realm="PushBackendRealm" isInternalUserID="true"/>
    </customSecurityTest>
</securityTests>
<realms>
    <realm loginModule="StrongDummy" name="SampleAppRealm">
        <className>com.worklight.core.auth.ext.FormBasedAuthenticator</className>
    </realm>
    <realm loginModule="requireLogin" name="WorklightConsole">
        <className>com.worklight.core.auth.ext.FormBasedAuthenticator</className>
        <onLoginUrl>/console</onLoginUrl>
    </realm>
    <realm loginModule="requireLogin" name="PushBackendRealm">
        <className>com.worklight.core.auth.ext.BasicAuthenticator</className>
        <parameter name="basic-realm-name" value="CitizenCollaboration" />
    </realm>
     <realm name="WASLTPARealm" loginModule="WASLTPAModule">
        <className>com.worklight.core.auth.ext.WebSphereFormBasedAuthenticator</className>
        <parameter name="login-page" value="/login.html"/>
        <parameter name="error-page" value="/loginError.html"/>
    </realm>
</realms>
<loginModules>
    <loginModule name="StrongDummy">
        <className>com.worklight.core.auth.ext.NonValidatingLoginModule</className>
    </loginModule>
    <loginModule name="requireLogin">
        <className>com.worklight.core.auth.ext.SingleIdentityLoginModule</className>
    </loginModule>
    <loginModule name="WASLTPAModule">
        <className>com.worklight.core.auth.ext.WebSphereLoginModule</className>
    </loginModule>
</loginModules>

要做的一些实验:

  1. 确保在两个WAS中使用相同的Worklight版本(已安装在其上的Worklight Server(和Worklight Studio(用于最终生成.wlap的Eclipse插件(.

    要查找您在WAS中安装的Worklight版本,加载Worklight Console,然后单击右上角的"关于"链接。版本号显示在那里。

    要查找您在中安装的Worklight版本Eclipse,转至"帮助"菜单>>关于>>单击Worklight图标。版本号显示在那里。

    不建议使用不匹配的Worklight版本,并且可能/将导致此类错误。

  2. 删除您在application-descriptor.xml中的各种环境元素中放置的securityTest,并生成一个新的.wlap;试着部署它,看看部署现在是否通过。

    或者,也要确保如果在application-descriptor.xml中设置了securityTest,那么它们的编写是正确的(与authenticationConfig.xml中定义的相匹配(

    这可以说明CCD_ 2中可能存在的问题。

相关内容

最新更新