This is the exception I get:

javax.servlet.ServletException: Server returned HTTP response code: 403 for 
URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
        
edu.yale.its.tp.cas.client.filter.CASFilter.getAuthenticatedUser(CASFilter.java:254)
        edu.yale.its.tp.cas.client.filter.CASFilter.doFilter(CASFilter.java:184)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:585)
        org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
        java.security.AccessController.doPrivileged(Native Method)
        javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
        
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
root cause java.io.IOException: Server returned HTTP response code: 403 for 
URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
        
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1170)
        org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown 
Source)
        org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
        org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
        org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
        
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown 
Source)
        
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
        org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        
edu.yale.its.tp.cas.client.ServiceTicketValidator.validate(ServiceTicketValidator.java:221)
        
edu.yale.its.tp.cas.client.filter.CASFilter.getAuthenticatedUser(CASFilter.java:219)
        edu.yale.its.tp.cas.client.filter.CASFilter.doFilter(CASFilter.java:184)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:585)
        org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
        java.security.AccessController.doPrivileged(Native Method)
        javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
        
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)

Any idea?

Regards


--- En date de : Jeu 12.3.09, Marvin Addison <[email protected]> a 
écrit :
De: Marvin Addison <[email protected]>
Objet: Re: [cas-user] Cas java client 2.1.1 and cas server 3.3 compatibility
À: [email protected]
Date: Jeudi 12 Mars 2009, 18h18

> java.io.IOException: Server returned HTTP response code: 403 for URL:
> http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd

We have experienced trouble requesting resources like XML schemas from
remote sources.  In our case it appeared that the remote host limited
excessive connections by source address.  (It's been a while, but I
believe it was a 403.)  All validating parsers actually make a request
to fetch the DTD/XSD every time an XML document is parsed, so the
requests add up quickly.  I will admit it's a stretch to blame a
validating XML parser here since it's an XHTML DTD, but the core
problem of requesting a remote resource excessively could certainly
apply.

You might consider storing resources like the above either within your
application or on a Web server in your domain, then update your source
files to use the locally-available version.

In any case it's pretty clear this is not a CAS issue per se.

M

-- 
You are currently subscribed to [email protected] as: [email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user



      
-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to