qw0907
快跑蜗牛哥
2016-08-26 05:39
采纳率: 100%
浏览 1.1k
已采纳

pentaho5.x cas单点登录问题《求助》

按照网上的例子
pentaho5 CAS 单点登录
配置 cas单点登陆,log 提示如下

 2016-08-26 13:31:15,593 ERROR [org.apache.jackrabbit.core.DefaultSecurityManager] Failed to instantiate AccessManager (org.apache.jackrabbit.core.security.DefaultAccessManager)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ICacheManager' defined in file [E:\biserver\pentaho-solutions\system\pentahoObjects.spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.pentaho.platform.plugin.services.cache.CacheManager]: Constructor threw exception; nested exception is java.lang.NullPointerException
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.springframework.beans.factory.support.AbstractAutowireCapab

注释掉
pentahoObjects.spring.xml
中的

后,能正常启动 pentaho bi server,
cas 登陆成功后,不会自动跳转到 pentaho 页面,停在那,请问还要设置哪里?

 <bean id="serviceProperties" class="org.springframework.security.ui.cas.ServiceProperties" autowire="default" dependency-check="default" lazy-init="default">
<property name="service" value="http://localhost:8080/pentaho/j_spring_cas_security_check"/>
<property name="sendRenew" value="false"/>
</bean>

<bean id="exceptionTranslationFilter"  class="org.springframework.security.ui.ExceptionTranslationFilter" autowire="default" dependency-check="default" lazy-init="default">
<property name="authenticationEntryPoint">
<ref local="casProcessingFilterEntryPoint"/>
</property>
<property name="accessDeniedHandler">
<bean class="org.springframework.security.ui.AccessDeniedHandlerImpl" />
</property>
</bean>

<bean id="casSingleSignOutFilter" class="org.jasig.cas.client.session.SingleSignOutFilter">
</bean>
<bean id="casSingleSignOutHttpSessionListener" class="org.jasig.cas.client.session.SingleSignOutHttpSessionListener">
</bean>

<bean id="casProcessingFilterEntryPoint" class="org.springframework.security.ui.cas.CasProcessingFilterEntryPoint" autowire="default" dependency-check="default" lazy-init="default">
<property name="loginUrl" value="http://192.168.130.256:8787/sso/login?sysname=CAS%20TEST/login"/>
<property name="serviceProperties">
<ref local="serviceProperties"/>
</property>
</bean>
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • xinhao_
    你们都是坏人 2018-02-24 03:18
    已采纳

    单点登录原理与简单实现
    https://www.cnblogs.com/ywlaker/p/6113927.html

    点赞 评论
  • qw0907
    快跑蜗牛哥 2016-08-29 00:08

    有大神知道么??求助!!

    点赞 评论

相关推荐