使用Worklight Console部署应用程序失败:“无法部署应用程序<appname> .wlapp'。:ERROR </appname>

时间:2013-05-17 04:59:34

标签: websphere-7 ibm-mobilefirst

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

  

'无法部署应用程序   'CitizenCollaboration-Android的1.0.5.wlapp'。 :错误'

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

注意:我能够成功部署worklight适配器

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 个答案:

答案 0 :(得分:0)

要做的一些实验:

  1. 确保您在两个WAS中使用相同的Worklight版本 (您已安装的Worklight Server)和Worklight Studio (您使用的Eclipse插件最终会生成.wlapp)。

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

    查找已安装的Worklight版本 Eclipse,转到帮助菜单&gt;&gt;关于&gt;&gt;单击Worklight图标。 版本号显示在那里。

    建议不要使用不匹配的Worklight版本,否则会导致此类错误。

  2. 删除已放置在application-descriptor.xml中各种环境元素中的securityTests并生成新的.wlapp;尝试部署它,看看部署现在是否通过。

    或者,还要确保如果在application-descriptor.xml中设置了securityTests,则会将它们写为correclty(与authenticationConfig.xml中定义的相匹配)。

    这可以表明authenticationConfig.xml中可能存在的问题。