services.xml for approvedServices

Scott Battaglia scott.battaglia at gmail.com
Thu Jun 7 13:09:11 EDT 2007


Do you explode the WAR file? Or does it remain as one file?

-Scott

On 6/6/07, cas sso <skcas at hotmail.com> wrote:
>
>  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
>
>
>
> Thanks
> Sam
>
> ------------------------------
> Change is good. See what's different about Windows Live Hotmail. Check it
> out!<http://www.windowslive-hotmail.com/learnmore/default.html?locale=en-us&ocid=RMT_TAGLM_HMWL_reten_changegood_0607>
>
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>


-- 
-Scott Battaglia

LinkedIn: http://www.linkedin.com/in/scottbattaglia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20070607/9c790c0c/attachment.html 


More information about the cas mailing list