问题描述
environment config:
Windows Server 2008 R2
Entreprise WebSphere Application Server V7
Worklight服务器V6
DataBase Derby(默认安装通过worklight服务器安装)
environment config : Windows Server 2008 R2Entreprise WebSphere Application server V7Worklight server V6DataBase Derby (default install trough worklight server install)
我的应用程序在server / conf / authenticationConfig.xml中包含一个customLogin模块,该模块使用位于server / java / com / authentication /
My Application contains in the server/conf/authenticationConfig.xml a customLogin module that use two java class located in server/java/com/authentication/
在worklight服务器上部署并启动我的应用程序后,当我尝试使用以下URL访问它时: http:// ip_address:9080 / context_root / console
After deploying and starting my application on worklight server, when I try to reach it using the following URL : http://ip_address:9080/context_root/console
我的Websphere中出现此错误 SystemOut.log
:
I have this error in my Websphere SystemOut.log
:
com.ibm.ws.webcontainer.webapp.WebApp logError SRVE0293E: [Servlet Error]-[Worklight Project not initialized]: javax.servlet.ServletException: Worklight Project not initialized
at com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:110)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
当我在authenticationConfig中评论我的自定义loginModule时。 xml,我没有任何问题到达控制台。
And when I comment my custom loginModule, in authenticationConfig.xml, I don't have any problem to reach the console.
似乎我的自定义身份验证java类没有定义(尽管事实上我添加了server / java我的worklight项目的部署程序集中的文件夹
it seems that my custom authentication java classes are not defined (despite the fact that I added "server/java" folder in the Deployment Assembly of my worklight project)
提前感谢您的时间和帮助
Thank in advance for your time and for your help
问候
推荐答案
- 您是否将端口更改为9080?
Worklight 6.0中的默认Worklight端口是10080.但无论如何......
- 我知道在Worklight 6.0.0.0中,至少在Eclipse中,这项工作你需要:
- 右键单击项目>>属性>> Java构建路径>>库>>添加库... >>服务器运行时>> Worklight Development Server >>清理项目>>重新构建应用程序。
这篇关于IBM Worklight 6.0 - 自定义身份验证 - 似乎找不到自定义Java代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!