ibm mobilefirst - IBM Worklight 5.0.5 - Realm is not defined in authenticationConfig.xml -
here error receive our websphere application server liberty profile running worklight server:
defaultoptions:onfailure procedure invocation error. runtime: realm 'singlestepauthrealm' not defined in authenticationconfig.xml.
this runs fine on local server.
i have rebuilt , deployed server customization war file server, , restarted it.
could because version of remote server not match version of local server? local server version is: 5.0.5.20121129-1027
here authenticationconfig.xml:
<?xml version="1.0" encoding="utf-8" standalone="no"?> <tns:loginconfiguration xmlns:tns="http://www.worklight.com/auth/config" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"> <!-- licensed materials - property of ibm 5725-g92 (c) copyright ibm corp. 2006, 2012. rights reserved. government users restricted rights - use, duplication or disclosure restricted gsa adp schedule contract ibm corp. --> <!-- uncomment next element protect worklight console --> <!-- <staticresources> <resource id="worklightconsole" securitytest="worklightconsole"> <urlpatterns>/console*</urlpatterns> </resource> </staticresources> --> <!-- sample security tests if not used there default websecuritytest , mobilesecuritytest attention: if using <testappauthenticity/> test below ,<publicsigningkey> element must added application-descriptor.xml well. --> <!-- <securitytests> <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="worklightconsole"> <test realm="worklightconsole" isinternaluserid="true"/> </customsecuritytest> </securitytests> --> <realms> <realm name="singlestepauthrealm" loginmodule="singlestepauthloginmodule"> <classname>com.worklight.integration.auth.adapterauthenticator</classname> <parameter name="login-function" value="singlestepauthadapter.onauthrequired" /> <parameter name="logout-function" value="singlestepauthadapter.onlogout" /> </realm> <!-- 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 --> </realms> <loginmodules> <loginmodule name="singlestepauthloginmodule"> <classname>com.worklight.core.auth.ext.nonvalidatingloginmodule</classname> </loginmodule> <!-- websphere --> <!-- loginmodule name="wasltpamodule"> <classname>com.worklight.core.auth.ext.websphereloginmodule</classname> </loginmodule --> </loginmodules> </tns:loginconfiguration>
update:
thanks orlando's answer, able discern server versions:
server version: 5.0.5.20121130-0919
local version: 5.0.5.20121129-1027
the version (probably build number, not sure how wl versions work) different; however, suspect minor version mismatch not issue.
here have tried far debug issue:
i followed steps in worklight documentation build , upload server customization file proper directory on server.
you can find steps in ic article under heading "deploying project".
i opened war file , noticed authenticationconfig.xml not in there! so, figured manually push xml same folder resides in on local server. in case,this directory is: /opt/ibm/worklight/server/wlp/usr/servers/worklightserver/worklight.home/app_name/conf
i figured might have been permissions issue, set +rwx on file. still no dice.
maybe looking other files in directory on local server? uploaded of them , tried permissions again. no luck.
i restarted server after each 1 of these steps (and in case of step 4, restarted twice, once default perms , once full perms).
have tried suggestion in question?
basically:
how many .war files have deployed in application server?
in worklight 5 there can 1. make sure case.
Comments
Post a Comment