Ibm mobilefirst 部署错误:";authenticationConfig.xml包含名为:wl“U anonymousUserRealm”的重复域;
我正在使用Worklight 6.1和SQL适配器以及DB2数据库开发一个应用程序。我部署了它,部署过程运行良好,没有问题 但是当我使用Ibm mobilefirst 部署错误:";authenticationConfig.xml包含名为:wl“U anonymousUserRealm”的重复域;,ibm-mobilefirst,worklight-server,Ibm Mobilefirst,Worklight Server,我正在使用Worklight 6.1和SQL适配器以及DB2数据库开发一个应用程序。我部署了它,部署过程运行良好,没有问题 但是当我使用http://server-host:9080/TicketWorklight/console,它失败并出现以下错误: 错误500:javax.servlet.ServletException:Worklight控制台 初始化失败。记录的异常:java.lang.RuntimeException: conf/authenticationConfig.xml包含名
http://server-host:9080/TicketWorklight/console
,它失败并出现以下错误:
错误500:javax.servlet.ServletException:Worklight控制台
初始化失败。记录的异常:java.lang.RuntimeException:
conf/authenticationConfig.xml包含名为:
wl_匿名用户域
这是comlete authenticationConfig.xml文件:
/订阅MS*/接收*
com.worklight.core.auth.ext.FormBasedAuthenticator
com.worklight.core.auth.ext.FormBasedAuthenticator
/控制台
com.worklight.core.auth.ext.HeaderAuthenticator
com.worklight.core.auth.ext.NonValidatingLoginModule
com.worklight.core.auth.ext.SingleIdentityLoginModule
com.worklight.core.auth.ext.RejectingLoginModule
我也遇到了同样的问题,找到了解决问题的方法。此处引用
而Worklight版本是…?此外,编辑问题并添加完整的authenticationConfig.xml文件这是远程服务器还是Worklight Studio?您能否尝试使用一个空白的新项目来验证它是否正常工作?使用空白项目仍然存在问题。worklight studio生成的文件authenticationConfig.xml文件您在哪里运行应用程序?这是一个远程服务器(您需要首先在其中部署Worklight.war文件并部署JEE文件以及.wlapp文件),还是在Workinght Studio中运行它?
<!-- Uncomment the next element to protect the worklight console and the first section in securityTests below. -->
<staticResources>
<!-- <resource id="worklightConsole" securityTest="WorklightConsole">
<urlPatterns>/console*</urlPatterns>
</resource>
-->
<resource id="subscribeServlet" securityTest="SubscribeServlet">
<urlPatterns>/subscribeSMS*;/receiveSMS*</urlPatterns>
</resource>
</staticResources>
<securityTests>
<!--
<customSecurityTest name="WorklightConsole">
<test realm="WorklightConsole" isInternalUserID="true"/>
</customSecurityTest>
<mobileSecurityTest name="mobileTests">
<testAppAuthenticity/>
<testDeviceId provisioningType="none" />
<testUser realm="myMobileLoginForm" />
</mobileSecurityTest>
<webSecurityTest name="webTests">
<testUser realm="myWebLoginForm"/>
</webSecurityTest>
<customSecurityTest name="customTests">
<test realm="wl_antiXSRFRealm" step="1"/>
<test realm="wl_authenticityRealm" step="1"/>
<test realm="wl_remoteDisableRealm" step="1"/>
<test realm="wl_anonymousUserRealm" isInternalUserID="true" step="1"/>
<test realm="wl_deviceNoProvisioningRealm" isInternalDeviceID="true" step="2"/>
</customSecurityTest>
-->
<customSecurityTest name="SubscribeServlet">
<test realm="SubscribeServlet" isInternalUserID="true"/>
</customSecurityTest>
</securityTests>
<realms>
<realm name="SampleAppRealm" loginModule="StrongDummy">
<className>com.worklight.core.auth.ext.FormBasedAuthenticator</className>
</realm>
<realm name="WorklightConsole" loginModule="requireLogin">
<className>com.worklight.core.auth.ext.FormBasedAuthenticator</className>
<onLoginUrl>/console</onLoginUrl>
</realm>
<realm name="SubscribeServlet" loginModule="rejectAll">
<className>com.worklight.core.auth.ext.HeaderAuthenticator</className>
</realm>
<!-- For websphere -->
<!-- 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 -->
<!-- For User Certificate Authentication -->
<!-- realm name="wl_userCertificateAuthRealm" loginModule="WLUserCertificateLoginModule">
<className>com.worklight.core.auth.ext.UserCertificateAuthenticator</className>
<parameter name="dependent-user-auth-realm" value="WASLTPARealm" />
<parameter name="pki-bridge-class" value="com.worklight.core.auth.ext.UserCertificateEmbeddedPKI" />
<parameter name="embedded-pki-bridge-ca-p12-file-path" value="/opt/ssl_ca/ca.p12"/>
<parameter name="embedded-pki-bridge-ca-p12-password" value="capassword" />
</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="rejectAll">
<className>com.worklight.core.auth.ext.RejectingLoginModule</className>
</loginModule>
<!-- For websphere -->
<!-- loginModule name="WASLTPAModule">
<className>com.worklight.core.auth.ext.WebSphereLoginModule</className>
</loginModule -->
<!-- Login module for User Certificate Authentication -->
<!-- <loginModule name="WLUserCertificateLoginModule">
<className>com.worklight.core.auth.ext.UserCertificateLoginModule</className>
</loginModule> -->
<!-- For enabling SSO with no-provisioning device authentication -->
<!-- <loginModule name="MySSO" ssoDeviceLoginModule="WLDeviceNoProvisioningLoginModule">
<className>com.worklight.core.auth.ext.NonValidatingLoginModule</className>
</loginModule> -->
<!-- For enabling SSO with auto-provisioning device authentication -->
<!-- <loginModule name="MySSO" ssoDeviceLoginModule="WLDeviceAutoProvisioningLoginModule">
<className>com.worklight.core.auth.ext.NonValidatingLoginModule</className>
</loginModule> -->
</loginModules>