Hi all,

I'm trying to run the sample 1 of AS 5.2.1 (
http://docs.wso2.org/display/AS521/Checking+the+Authorization+of+WebApp+Requests).


Once i run the example after following the given instructions, AS returns
responses for only two requests(i noticed that response for first request
is not what doc says it should be) and then throws an exception. The output
is as follows,




































*sajith@sajith-ThinkPad-T520:~/wso2as-5.2.1/samples/EntitlementFilter$
./run-client.sh Using CARBON_HOME: /home/sajith/wso2as-5.2.1Using JAVA_HOME
: /home/sajith/jdk1.6.0_45***********Starting the Entitlement Servlet
Filter Sample************Sending Request For a Web Page Which Requires
AuthorizationSubject : adminResource :
/Entitlement_Sample_WebApp/protected.jspAction : GETEnvironment : Not
Specified***Response BEGIN ***<html><head><title>Index
Page</title></head><body>Anybody Can Access This
Page....</body></html>***Response END ***Sending Request For a Web Page
Which Not Requires AuthorizationSubject : adminResource :
/Entitlement_Sample_WebApp/index.jspAction : GETEnvironment : Not
Specified***Response BEGIN ***<html><head><title>Index
Page</title></head><body>Anybody Can Access This
Page....</body></html>***Response END ***Sending Request For a Web Page
Which Requires Authorization with False Subject NAMEjava.io.IOException:
Server returned HTTP response code: 401 for URL:
http://localhost:9863/Entitlement_Sample_WebApp/protected.jsp
<http://localhost:9863/Entitlement_Sample_WebApp/protected.jsp>    at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1459)
at org.wso2.carbon.entitlement.filter.client.Client.main(Client.java:89)*


I followed below  steps to when setting up in addition to the steps
described in documentation
1) First i started the IS with default setting,
2) Started  AS with -DportOffset=100.
3) Changed run-client.sh to adjust the port
4) Change the remoteServiceUrl port to be 9443 in the web.xml of the
EntitlementFilter web app and deployed it with ant command.




*<context-param>        <param-name>remoteServiceUrl</param-name>
<param-value>https://localhost:9443/services/
<https://localhost:9443/services/></param-value>    </context-param>*
Can someone please help me find out what i have done wrong here?

Thanks
*,Sajith Ravindra*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 2273550
<http://lk.linkedin.com/pub/shani-ranasinghe/34/111/ab>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to