Thank you for the answer. As you said i managed to used this api for implementing authentication client in the non carbon servers. However in some instance when i do not use the login client for a long time. I get the following error.
ERROR {org.wso2.carbon.core.services.authentication.AuthenticationAdmin} - System error while Authenticating/Authorizing User : null {org.wso2.carbon.core.services.authentication.AuthenticationAdmin}java.lang.NullPointerException at org.wso2.carbon.utils.multitenancy.MultitenantUtils.getTenantAwareUsername(MultitenantUtils.java:40) at org.wso2.carbon.utils.multitenancy.CarbonContextHolder.setUsername(CarbonContextHolder.java:506) at org.wso2.carbon.core.multitenancy.SuperTenantCarbonContext.setUsername(SuperTenantCarbonContext.java:193) at org.wso2.carbon.core.services.util.CarbonAuthenticationUtil.onFailedAdminLogin(CarbonAuthenticationUtil.java:52) at org.wso2.carbon.core.services.util.CarbonAuthenticationUtil.onFailedAdminLogin(CarbonAuthenticationUtil.java:44) at org.wso2.carbon.core.services.authentication.AuthenticationAdmin.login(AuthenticationAdmin.java:66) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146) at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:206) at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.wso2.carbon.bridge.BridgeServlet.service(BridgeServlet.java:155) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.wso2.carbon.server.TomcatServer$1.invoke(TomcatServer.java:241) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399) at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:396) at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:356) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1534) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) However i after i tried to access one more time the login is successful and the consecutive request are also successful. When i try to make the request after i while like 10 min the error occur again. What causes this NPE ? Fatih Güçlü Akkaya Software Development Engineer ARDIC ARGE BILGI VE TEKNOLOJI ÇÖZÜMLERI APPLIED RESEARCH DEVELOPMENT INNOVATION CENTER Tel: + 90 262 642 42 52 GSM: + 90 554 542 48 50 -----Original Message----- From: carbon-dev-boun...@wso2.org on behalf of Amila Jayasekara Sent: Wed 1/4/2012 17:18 To: carbon-dev@wso2.org Subject: Re: [Carbon-dev] External Authentication API in Carbon 2012/1/3 Güçlü Akkaya <guclu.akk...@ardictech.com>: > > > Hi, > > We want to use the user-store database of the Carbon servers for providing > authentication to a non-carbon server. In the wso2 carbon is there an api > providing authentication module for non-carbon servers, which uses > user-store database schema of carbon servers? Hi Akkaya, WSO2 servers provide a web service API to authenticate users. WSO2 servers provide an admin webservice called "AuthenticationAdmin". You can check the WSDL of this web service using a URL similar to [1] (In this example i am running WSO2 server in my local machine in port 9443). In order to access WSDL in [1] you need to enable viewing admin webservice WSDLs. For that you need to enable following configuration in ${CARBON_HOME/repository/conf//carbon.xml. <HideAdminServiceWSDLs>false</HideAdminServiceWSDLs> (Under Axis2Config). Hope this helpful. [1] https://localhost:9443/services/AuthenticationAdmin?wsdl Thanks AmilaJ > > Fatih Güçlü Akkaya > > Software Development Engineer > > > > > > _______________________________________________ > Carbon-dev mailing list > Carbon-dev@wso2.org > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > -- Mobile : +94773330538 _______________________________________________ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
<<winmail.dat>>
_______________________________________________ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev