services.xml for approvedServices
cas sso
skcas at hotmail.com
Wed Jun 6 20:54:29 EDT 2007
Hello,
I am using cas 3.0.5 I want to use the registered services option, so added /WEB-INF/approvedServices.xml to web.xml.
With the default services.xml file, the application is not starting. I get the error page:
CAS is Unavailable
There was a fatal error initializing the CAS application context. This is almost always because of an error in the Spring bean configuration files. Are the files valid XML? Do the beans they refer to all exist
The Throwable encountered at context listener initialization was: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceRegistryJob' defined in ServletContext resource [/WEB-INF/approvedServices.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [services.xml] cannot be resolved to absolute file path because it does not reside in the file system: zip:C:/java/bea92/user_projects/domains/cas/servers/CasServer/tmp/_WL_user/cas/y0upha/war/WEB-INF/lib/_wl_cls_gen.jar!/services.xml
My cas.war does have the services.xml in WEB-INF/classes\ folder.
Also I have verified that this is a valid servies.xml file:
-----------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="contactsCas" class="org.jasig.cas.services.RegisteredService">
<constructor-arg index="0"><value>https://localhost:8443/contacts-cas/j_acegi_cas_security_check</value></constructor-arg>
<constructor-arg index="1"><value>true</value></constructor-arg>
<constructor-arg index="2"><value>true</value></constructor-arg>
<constructor-arg index="3"><null /></constructor-arg>
<constructor-arg index="4"><value>https://localhost:8443/contacts-cas/casProxy/receptor</value></constructor-arg>
</bean>
</beans>
Can someone please give me a pointer? I am assuming that index=”0” for each <bean> will have the url of my service that wants to use CAS for authentication
ThanksSam
_________________________________________________________________
With Windows Live Hotmail, you can personalize your inbox with your favorite color.
www.windowslive-hotmail.com/learnmore/personalize.html?locale=en-us&ocid=TXT_TAGLM_HMWL_reten_addcolor_0607
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20070606/eab25844/attachment.html
More information about the cas
mailing list