Well,
I assume that you'll need more info in order to help me so I'll paste my configuration IoC files here.
applicationContext.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<!-- ========================= GENERAL DEFINITIONS ========================= -->
<!-- Message source for this context, loaded from localized "messages_xx" files -->
<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
<property name="basename"><value>messages</value></property>
</bean>
<!-- applicationContext merge-point -->
<!-- Hibernate SessionFactory -->
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource"><ref bean="dataSource"/></property>
<property name="mappingResources">
<list>
<value>jupen/calcu/dpnc/Salarios.hbm.xml</value>
<value>jupen/calcu/dpnc/Choto.hbm.xml</value>
<value>jupen/calcu/dgjp/IPC.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</prop>
<prop key="hibernate.default_schema">jupendb</prop>
<prop key="hibernate.cache.use_query_cache">false</prop>
<prop key="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</prop>
<prop key="hibernate.cache.query_cache_factory">org.hibernate.cache.StandardQueryCacheFactory</prop>
</props>
</property>
</bean>
<!-- The Hibernate interceptor -->
<bean id="hibernateInterceptor" class="org.springframework.orm.hibernate3.HibernateInterceptor">
<property name="sessionFactory"><ref bean="sessionFactory"/></property>
</bean>
<!-- Salarios Entity Proxy with inner Salarios Entity implementation -->
<bean id="salariosDao" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="target">
<bean class="jupen.calcu.dpnc.SalariosDaoImpl">
<property name="sessionFactory"><ref local="sessionFactory"/></property>
</bean>
</property>
<property name="proxyInterfaces">
<value>jupen.calcu.dpnc.SalariosDao</value>
</property>
<property name="interceptorNames">
<list>
<value>hibernateInterceptor</value>
</list>
</property>
</bean>
<!-- Choto Entity Proxy with inner Choto Entity implementation -->
<bean id="chotoDao" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="target">
<bean class="jupen.calcu.dpnc.ChotoDaoImpl">
<property name="sessionFactory"><ref local="sessionFactory"/></property>
</bean>
</property>
<property name="proxyInterfaces">
<value>jupen.calcu.dpnc.ChotoDao</value>
</property>
<property name="interceptorNames">
<list>
<value>hibernateInterceptor</value>
</list>
</property>
</bean>
<!-- IPC Entity Proxy with inner IPC Entity implementation -->
<bean id="iPCDao" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="target">
<bean class="jupen.calcu.dgjp.IPCDaoImpl">
<property name="sessionFactory"><ref local="sessionFactory"/></property>
</bean>
</property>
<property name="proxyInterfaces">
<value>jupen.calcu.dgjp.IPCDao</value>
</property>
<property name="interceptorNames">
<list>
<value>hibernateInterceptor</value>
</list>
</property>
</bean>
<!-- ========================= Start of SERVICE DEFINITIONS ========================= -->
<!-- Service Transactional Interceptor -->
<bean id="serviceTransactionInterceptor" class="org.springframework.transaction.interceptor.TransactionInterceptor">
<property name="transactionManager"><ref bean="transactionManager"/></property>
<property name="transactionAttributeSource">
<value>
jupen.calcu.dpnc.DpncSB.cargarIPC=PROPAGATION_REQUIRED
jupen.calcu.dpnc.DpncSB.cargarSalario=PROPAGATION_REQUIRED
jupen.calcu.bpm.JbpmSB.createJbpmSchema=PROPAGATION_REQUIRED
jupen.calcu.bpm.JbpmSB.dropJbpmSchema=PROPAGATION_REQUIRED
jupen.calcu.bpm.JbpmSB.cleanJbpmSchema=PROPAGATION_REQUIRED
</value>
</property>
</bean>
<!-- DpncSB Service Proxy with inner DpncSB Service Implementation -->
<bean id="dpncSB" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="target">
<bean class="jupen.calcu.dpnc.DpncSBImpl">
<property name="ipcDao"><ref bean="iPCDao"/></property>
<property name="salariosDao"><ref bean="salariosDao"/></property>
</bean>
</property>
<property name="proxyInterfaces">
<value>jupen.calcu.dpnc.DpncSB</value>
</property>
<property name="interceptorNames">
<list>
<value>serviceSecurityInterceptor</value>
<value>serviceTransactionInterceptor</value>
<value>hibernateInterceptor</value>
</list>
</property>
</bean>
<!-- JbpmSB Service Proxy with inner JbpmSB Service Implementation -->
<bean id="jbpmSB" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="target">
<bean class="jupen.calcu.bpm.JbpmSBImpl">
</bean>
</property>
<property name="proxyInterfaces">
<value>jupen.calcu.bpm.JbpmSB</value>
</property>
<property name="interceptorNames">
<list>
<value>serviceSecurityInterceptor</value>
<value>serviceTransactionInterceptor</value>
<value>hibernateInterceptor</value>
</list>
</property>
</bean>
<!-- ========================= End of SERVICE DEFINITIONS ========================= -->
<!-- ================= Start of ACEGI SERVICE SECURITY DEFINITIONS ================ -->
<bean id="serviceSecurityInterceptor" class="net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor">
<property name="accessDecisionManager"><ref bean="serviceAccessDecisionManager"/></property>
<property name="objectDefinitionSource">
<value>
jupen.calcu.dpnc.DpncSB.cargarIPC=ROLE_Admin
jupen.calcu.dpnc.DpncSB.cargarSalario=ROLE_Admin
jupen.calcu.bpm.JbpmSB.createJbpmSchema=ROLE_Admin
jupen.calcu.bpm.JbpmSB.dropJbpmSchema=ROLE_Admin
jupen.calcu.bpm.JbpmSB.cleanJbpmSchema=ROLE_Admin
</value>
</property>
</bean>
<bean id="serviceAccessDecisionManager" class="net.sf.acegisecurity.vote.AffirmativeBased">
<property name="allowIfAllAbstainDecisions">
<value>false</value>
</property>
<property name="decisionVoters">
<list>
<ref local="serviceDecisionVoter"/>
</list>
</property>
</bean>
<bean id="serviceDecisionVoter" class="net.sf.acegisecurity.vote.RoleVoter"/>
<!-- ================== End of ACEGI SERVICE SECURITY DEFINITIONS ================= -->
</beans>
applicationContext-security.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<!--
Esta Configuración esta basada en lo provisto por Jens Vag de Deutschland
-->
<beans>
<!-- ServiceProperties bean definition -->
<bean id="serviceProperties" class="net.sf.acegisecurity.ui.cas.ServiceProperties">
<property name="service"><value>https://localhost:8443/JupenCalcu</value></property>
<property name="sendRenew"><value>false</value></property>
</bean>
<!-- Cas Porcessing Filter definition -->
<bean id="casProcessingFilter" class="net.sf.acegisecurity.ui.cas.CasProcessingFilter">
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
<property name="authenticationFailureUrl"><value>/</value></property>
<property name="defaultTargetUrl"><value>/</value></property>
<property name="filterProcessesUrl"><value>/login</value></property>
</bean>
<!-- Security Enforcement Filter bean Definition -->
<bean id="securityEnforcementFilter" class="net.sf.acegisecurity.intercept.web.SecurityEnforcementFilter">
<property name="filterSecurityInterceptor"><ref bean="filterInvocationInterceptor"/></property>
<property name="authenticationEntryPoint"><ref local="casProcessingFilterEntryPoint"/></property>
</bean>
<!-- Cas Processing Filter Entry Point bean definition -->
<bean id="casProcessingFilterEntryPoint" class="net.sf.acegisecurity.ui.cas.CasProcessingFilterEntryPoint">
<property name="loginUrl"><value>https://localhost:8443/cas/login</value></property>
<property name="serviceProperties"><ref local="serviceProperties"/></property>
</bean>
<!-- AuthenticationManager bean definition -->
<bean id="authenticationManager" class="net.sf.acegisecurity.providers.ProviderManager">
<property name="providers">
<list>
<ref bean="casAuthenticationProvider"/>
</list>
</property>
</bean>
<!-- CasAuthenticationProvider bean definition -->
<bean id="casAuthenticationProvider" class="net.sf.acegisecurity.providers.cas.CasAuthenticationProvider">
<property name="casAuthoritiesPopulator"><ref local="casAuthoritiesPopulator"/></property>
<property name="casProxyDecider"><ref bean="casProxyDecider"/></property>
<property name="ticketValidator"><ref bean="casProxyTicketValidator"/></property>
<property name="statelessTicketCache"><ref bean="statelessTicketCache"/></property>
<property name="key"><value>acegi</value></property>
</bean>
<!-- CasProxyTicketValidator bean definition -->
<bean id="casProxyTicketValidator" class="net.sf.acegisecurity.providers.cas.ticketvalidator.CasProxyTicketValidator">
<property name="casValidate"><value>https://localhost:8443/cas/proxyValidate</value></property>
<property name="proxyCallbackUrl"><value>https://localhost:8443/contacts-cas/casProxy/receptor</value></property>
<property name="serviceProperties"><ref bean="serviceProperties"/></property>
<!-- <property name="trustStore"><value>/some/path/to/your/lib/security/cacerts</value></property> -->
</bean>
<!-- CacheManager bean definition -->
<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
<property name="configLocation"><value>classpath:/ehcache-failsafe.xml</value></property>
</bean>
<bean id="ticketCacheBackend" class="org.springframework.cache.ehcache.EhCacheFactoryBean">
<property name="cacheManager"><ref local="cacheManager"/></property>
<property name="cacheName"><value>ticketCache</value></property>
</bean>
<bean id="statelessTicketCache" class="net.sf.acegisecurity.providers.cas.cache.EhCacheBasedTicketCache">
<property name="cache"><ref local="ticketCacheBackend"/></property>
</bean>
<bean id="casAuthoritiesPopulator" class="net.sf.acegisecurity.providers.cas.populator.DaoCasAuthoritiesPopulator">
<property name="authenticationDao"><ref bean="jdbcDaoImpl"/></property>
</bean>
<bean id="casProxyDecider" class="net.sf.acegisecurity.providers.cas.proxy.RejectProxyTickets"/>
<!-- Md5PasswordEncoder bean definition -->
<bean id="passwordEncoder" class="net.sf.acegisecurity.providers.encoding.Md5PasswordEncoder"/>
</beans>
web.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<!--
Esta Configuración esta basada en lo provisto por Jens Vag de Deutschland
-->
<beans>
<!-- ServiceProperties bean definition -->
<bean id="serviceProperties" class="net.sf.acegisecurity.ui.cas.ServiceProperties">
<property name="service"><value>https://localhost:8443/JupenCalcu</value></property>
<property name="sendRenew"><value>false</value></property>
</bean>
<!-- Cas Porcessing Filter definition -->
<bean id="casProcessingFilter" class="net.sf.acegisecurity.ui.cas.CasProcessingFilter">
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
<property name="authenticationFailureUrl"><value>/</value></property>
<property name="defaultTargetUrl"><value>/</value></property>
<property name="filterProcessesUrl"><value>/login</value></property>
</bean>
<!-- Security Enforcement Filter bean Definition -->
<bean id="securityEnforcementFilter" class="net.sf.acegisecurity.intercept.web.SecurityEnforcementFilter">
<property name="filterSecurityInterceptor"><ref bean="filterInvocationInterceptor"/></property>
<property name="authenticationEntryPoint"><ref local="casProcessingFilterEntryPoint"/></property>
</bean>
<!-- Cas Processing Filter Entry Point bean definition -->
<bean id="casProcessingFilterEntryPoint" class="net.sf.acegisecurity.ui.cas.CasProcessingFilterEntryPoint">
<property name="loginUrl"><value>https://localhost:8443/cas/login</value></property>
<property name="serviceProperties"><ref local="serviceProperties"/></property>
</bean>
<!-- AuthenticationManager bean definition -->
<bean id="authenticationManager" class="net.sf.acegisecurity.providers.ProviderManager">
<property name="providers">
<list>
<ref bean="casAuthenticationProvider"/>
</list>
</property>
</bean>
<!-- CasAuthenticationProvider bean definition -->
<bean id="casAuthenticationProvider" class="net.sf.acegisecurity.providers.cas.CasAuthenticationProvider">
<property name="casAuthoritiesPopulator"><ref local="casAuthoritiesPopulator"/></property>
<property name="casProxyDecider"><ref bean="casProxyDecider"/></property>
<property name="ticketValidator"><ref bean="casProxyTicketValidator"/></property>
<property name="statelessTicketCache"><ref bean="statelessTicketCache"/></property>
<property name="key"><value>acegi</value></property>
</bean>
<!-- CasProxyTicketValidator bean definition -->
<bean id="casProxyTicketValidator" class="net.sf.acegisecurity.providers.cas.ticketvalidator.CasProxyTicketValidator">
<property name="casValidate"><value>https://localhost:8443/cas/proxyValidate</value></property>
<property name="proxyCallbackUrl"><value>https://localhost:8443/contacts-cas/casProxy/receptor</value></property>
<property name="serviceProperties"><ref bean="serviceProperties"/></property>
<!-- <property name="trustStore"><value>/some/path/to/your/lib/security/cacerts</value></property> -->
</bean>
<!-- CacheManager bean definition -->
<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
<property name="configLocation"><value>classpath:/ehcache-failsafe.xml</value></property>
</bean>
<bean id="ticketCacheBackend" class="org.springframework.cache.ehcache.EhCacheFactoryBean">
<property name="cacheManager"><ref local="cacheManager"/></property>
<property name="cacheName"><value>ticketCache</value></property>
</bean>
<bean id="statelessTicketCache" class="net.sf.acegisecurity.providers.cas.cache.EhCacheBasedTicketCache">
<property name="cache"><ref local="ticketCacheBackend"/></property>
</bean>
<bean id="casAuthoritiesPopulator" class="net.sf.acegisecurity.providers.cas.populator.DaoCasAuthoritiesPopulator">
<property name="authenticationDao"><ref bean="jdbcDaoImpl"/></property>
</bean>
<bean id="casProxyDecider" class="net.sf.acegisecurity.providers.cas.proxy.RejectProxyTickets"/>
<!-- Md5PasswordEncoder bean definition -->
<bean id="passwordEncoder" class="net.sf.acegisecurity.providers.encoding.Md5PasswordEncoder"/>
</beans>