Jump to content
We've recently updated our Privacy Statement, available here ×

WSClient not working with CAS enabled JasperServer


Aditya S

Recommended Posts

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
 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>
 
(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

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...