Hi,

You need to change the port in login API xml..

thanks,


On Tue, Jul 30, 2013 at 7:28 PM, Kasun Gajasinghe <[email protected]> wrote:

> Hi,
>
> I tried the APIM trunk pack, and tried to invoke the Login API [1]. APIM
> is running with port offset 1. So, I sent a POST request there with the
> grant_type, username, password, and scope set as headers. It failed with
> following response. [2] Apparently it tries to access localhost:9443 which
> fails since APIM is running with port offset set to 1. Following error can
> be seen in back-end. [3]
>
> [1] https://localhost:8244/login
> [2]
>
> <am:fault xmlns:am="http://wso2.org/apimanager";>
>    <am:code>101503</am:code><am:type>Status report</am:type>
>    <am:message>Runtime Error</am:message>
>    <am:description>Connection refused or failed for : *localhost/
> 127.0.0.1:9443,* IO Exception occured : Connection refused
>     </am:description>
> </am:fault>
>
> [3]
>
> osgi> [2013-07-30 19:27:41,210]  WARN - LogMediator MESSAGE = **The /login
> API has been deprecated. Please use the /token url for access token
> generation.**
> [2013-07-30 19:27:41,213]  WARN - EndpointContext Endpoint :
> endpoint_e65dccd8388b835c5169ea3557d68aa7b9184b5eb629f1b4 will be marked
> SUSPENDED as it failed
> [2013-07-30 19:27:41,214]  WARN - EndpointContext Suspending endpoint :
> endpoint_e65dccd8388b835c5169ea3557d68aa7b9184b5eb629f1b4 - last suspend
> duration was : 30000ms and current suspend duration is : 30000ms - Next
> retry after : Tue Jul 30 19:28:11 IST 2013
> [2013-07-30 19:27:41,214]  INFO - LogMediator To: /login, MessageID:
> urn:uuid:ccb01b9e-1e58-4908-916e-54389dc27d4d, Direction: request, STATUS =
> Executing default 'fault' sequence, ERROR_CODE = 101503, ERROR_MESSAGE = 
> *Connection
> refused or failed for : localhost/127.0.0.1:9443*, IO Exception occured :
> Connection refused, Envelope: <?xml version='1.0'
> encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="
> http://www.w3.org/2003/05/soap-envelope";><soapenv:Body><ns:binary
> xmlns:ns="http://ws.apache.org/commons/ns/payload
> "></ns:binary></soapenv:Body></soapenv:Envelope>
>
>
> --
> *Kasun Gajasinghe*
> Software Engineer;
> Development Technologies Team, WSO2 Inc.; http://wso2.com
>
>
>  ,
> *email: **kasung AT spamfree wso2.com
>
>
> ** cell: **+94 (77) 678-0813*
> *linked-in: *http://lk.linkedin.com/in/gajasinghe
>
>
> *
> *
> *blog: **http://kasunbg.org* <http://kasunbg.org>
>
>
> *
> twitter: **http://twitter.com/kasunbg* <http://twitter.com/kasunbg>
>
>
> *
> *
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
http://wso2.org
email - [email protected] <[email protected]>
mobile - 071 56 91 321
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to