Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/61.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ibm mobilefirst IBM Worklight-自定义身份验证_Ibm Mobilefirst_Worklight Security - Fatal编程技术网

Ibm mobilefirst IBM Worklight-自定义身份验证

Ibm mobilefirst IBM Worklight-自定义身份验证,ibm-mobilefirst,worklight-security,Ibm Mobilefirst,Worklight Security,当尝试使用自定义验证器和登录模块对适配器进行身份验证时,我遇到以下异常 [ERROR ] FWLST0003E: ========= Failed starting project /CustomAuth [project CustomAuth] Error creating bean with name 'taskManager' defined in URL [wsjar:file:/D:/worklight_workspace/WorklightServerConfig/shared/

当尝试使用自定义验证器和登录模块对适配器进行身份验证时,我遇到以下异常

[ERROR   ] FWLST0003E: ========= Failed starting project /CustomAuth [project CustomAuth]
Error creating bean with name 'taskManager' defined in URL [wsjar:file:/D:/worklight_workspace/WorklightServerConfig/shared/resources/worklight-jee-library-6.1.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'worklightAuthenticationService' while setting bean property 'authenticationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklightAuthenticationService' defined in URL [wsjar:file:/D:/worklight_workspace/WorklightServerConfig/shared/resources/worklight-jee-library-6.1.0.jar!/conf/core.xml]: Cannot create inner bean 'com.worklight.core.auth.impl.LoginConfigurationServiceBean#7cffa209' of type [com.worklight.core.auth.impl.LoginConfigurationServiceBean] while setting bean property 'loginConfigurationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.worklight.core.auth.impl.LoginConfigurationServiceBean#7cffa209' defined in URL [wsjar:file:/D:/worklight_workspace/WorklightServerConfig/shared/resources/worklight-jee-library-6.1.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Class 'com.mypackage.MyCustomLoginModule' defined in login module 'CustomLoginModule' in the authentication configuration file doesn't exist.
[AUDIT   ] CWWKZ0001I: Application CustomAuth started in 0.948 seconds.
[ERROR   ] SRVE0315E: An execption occurred: com.ibm.ws.webcontainer.webapp.WebAppErrorReport: javax.servlet.ServletException: Worklight Console initialization failed.Logged Exception: java.lang.RuntimeException: Class 'com.mypackage.MyCustomLoginModule' defined in login module 'CustomLoginModule' in the authentication configuration file doesn't exist.
    at com.worklight.core.auth.impl.AuthenticationFilter.verifyServletInitialized(AuthenticationFilter.java:300)
    at com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:111)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:194)
    at [internal classes]
Caused by: javax.servlet.ServletException: Worklight Console initialization failed.Logged Exception: java.lang.RuntimeException: Class 'com.mypackage.MyCustomLoginModule' defined in login module 'CustomLoginModule' in the authentication configuration file doesn't exist.
    ... 5 more

您能帮助我吗?

出于某种原因,您的project war似乎不包含java类。我不知道为什么,需要更多关于这方面的信息,但我认为通过删除您的bin文件夹并重建所有工件,您将能够解决此问题。

在生成的二进制应用程序和Worklight server版本之间查看您的JDK版本。您可以检查二进制文件是否在基于Windows或Unix的操作系统中生成,并以服务器操作系统为基础重新部署您的应用程序。

需要编写自己的java类以进行自定义身份验证。在编写自定义身份验证方法时,这些java类将充当验证器和挑战者


请查找基于HTTP的自定义身份验证的详细信息。

请阅读异常,并按照它提供的信息进行操作。验证您的类是否已正确设置和引用?