IBM Worklight 6.0 - Custom authentication - custom

2019-09-16 11:15发布

environment config : Windows Server 2008 R2 Entreprise WebSphere Application server V7 Worklight server V6 DataBase Derby (default install trough worklight server install)

My Application contains in the server/conf/authenticationConfig.xml a customLogin module that use two java class located in server/java/com/authentication/

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

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)

And when I comment my custom loginModule, in authenticationConfig.xml, I don't have any problem to reach the console.

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

Regards

1条回答
Root(大扎)
2楼-- · 2019-09-16 11:59
  1. Did you change the port to 9080?
    Default Worklight port in Worklight 6.0 is 10080. But anyway...

  2. I know that in Worklight 6.0.0.0, at least in Eclipse, to make this work you need to:
    • right-click on the project >> Properties >> Java Build Path >> Libraries >> Add Library... >> Server Runtime >> Worklight Development Server >> Clean the project >> Re-build application.
查看更多
登录 后发表回答