我正在使用 Worklight 5.0.6.20130311-0918,在 RedHat Linux 上的 WebSphere 应用程序服务器 (7.0.0.21) 上运行,并且我正在尝试使用 Worklight Console 部署应用程序。我收到错误:
'部署应用程序失败
'CitizenCollaboration-android-1.0.5.wlapp'。 : 错误'
WebSphere 的 SystemOut.log 中没有太多信息。我尝试提高应用程序服务器管理控制台中的跟踪级别,但仍然没有足够的错误信息。
注意:我能够成功部署工作灯适配器
认证.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>
一些要做的实验:
-
确保您在两个 WAS 中使用相同的 Worklight 版本
(您已安装在其上的 Worklight Server)和 Worklight Studio
(您使用的 Eclipse 插件最终生成 .wlapp)。
要查找您在 WAS 中安装的 Worklight 版本,
加载 Worklight Console 并单击右上角的“关于”链接。版本号显示在那里。
要查找您安装的 Worklight 版本
Eclipse,转到“帮助”菜单>>“关于”>>单击“Worklight”图标。
版本号显示在那里。
不建议使用不匹配的 Worklight 版本,并且可能会导致此类错误。
-
删除您放置在各种环境元素中的安全测试application-descriptor.xml
并生成一个新的.wlapp;尝试部署它并查看部署现在是否通过。
或者,还要确保如果您在 application-descriptor.xml 中设置了 securityTests,则它们的编写正确(与authenticationConfig.xml 中定义的相匹配)。
这可以表明可能存在的问题authenticationConfig.xml
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)