WSClient not working with CAS enabled JasperServer

Hi, 

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:

AxisFault
 faultCode: {http://xml.apache.org/axis/}HTTP
 faultSubcode: 
 faultString: (401)Unauthorized
 faultActor: 
 faultNode: 
 faultDetail: 
        {}: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;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 401 - No AuthenticationProvider found for org.springframework.security.providers.UsernamePasswordAuthenticationToken</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>No AuthenticationProvider found for org.springframework.security.providers.UsernamePasswordAuthenticationToken</u></p><p><b>description</b> <u>This request requires HTTP authentication (No AuthenticationProvider found for org.springframework.security.providers.UsernamePasswordAuthenticationToken).</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.26</h3></body></html>
        {http://xml.apache.org/axis/}HttpErrorCode:401
 
(401)Unauthorized
 

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. 

 

Thanks

Adi

 

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

0 Answers:

No answers yet
Feedback