Topic
  • No replies
IT_Girdhar
IT_Girdhar
1 Post

Pinned topic Error 403: AuthenticationFailed getting as response while connecting to https://localhost:9443/test/j_security_check

‏2013-07-02T13:32:04Z |

Hi, 

      I've written jersey client that would send the log-in request to websphere server(V 8.5)  on https URL . I get 403 forbidden in response. At server log , I get  SECJ0056E: Authentication failed for reason appContext parameter is null.  When I send wrong password, It returns Login failed . I am sure , Login is working but why 403 forbidden   is getting returned . I've pasted the request and response below here.

 When Trying from browser, It  works fine.   Please help me to resolve this .   

1 * Client out-bound request
1 > POST https://localhost:9443/test/j_security_check
1 > Content-Type: application/x-www-form-urlencoded
1 > Connection: application/json
1 > Accept: application/json

j_password=test%40123&j_username=testuser
1 * Client in-bound response
1 < 403
 < Content-Language: en-US
 < $WSEP:
 < Transfer-Encoding: chunked
 < Date: Tue, 02 Jul 2013 12:59:36 GMT
 < Content-Type: text/html;charset=ISO-8859-1
 < Connection: Close
 < X-Powered-By: Servlet/3.0
 < Server: WebSphere Application Server/8.5
<
Error 403: AuthenticationFailed

Response Error 403: AuthenticationFailed