WSClient not working with CAS enabled JasperServer


I am trying to use the Jasperserver Web Services Sample code to run with CAS enabled JasperServer instance. Let me first mention the environment I have:

Tomcat 6(for CAS and Sample WebApp)  | OS: CentOS 6.2 | Java: java version "1.7.0_17" | Jasperserver: jasperreports-server-cp-5.0.0

I have enabled CAS Authentication on Both Sample Webapp and Jasperserver and individually its working fine. When I try to access a report using WSClient (i should not require any username/password as the CAS server should authenticate), I am getting error on the sample webapp tomcat log:

 faultCode: {}HTTP
 faultString: (401)Unauthorized
        {}:return code:  401
<html><head><title>Apache Tomcat/6.0.26 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;} {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 401 - No AuthenticationProvider found for</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>No AuthenticationProvider found for</u></p><p><b>description</b> <u>This request requires HTTP authentication (No AuthenticationProvider found for</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.26</h3></body></html>

Any pointer would be greatly appreciated. I have similar issue with iReport also when I try to publish reports to the server. Need some help on that side as well. 





Aditya S's picture
Joined: Apr 16 2012 - 2:31am
Last seen: 1 year 3 weeks ago

0 Answers:

No answers yet