Hitachi Vantara Pentaho Community Forums
Results 1 to 7 of 7

Thread: Pentaho SAML plugin and problem sharing reports

  1. #1
    Join Date
    Aug 2017
    Posts
    3

    Default Pentaho SAML plugin and problem sharing reports

    Hello,

    We have successfully configured and deployed the SAML pentaho plugin with Pentaho Community 7.1. We have used wso2 identity server as identity provider.

    However, we have detected a problem when trying to share a report with other SAML users. When a SAML user make a successfull login and try to share a report, Pentaho only list default local users (pat, suzy, tiffany, etc) and users that comes via SAML are never listed.

    Any help to fix this issue will be very welcomed, thanks in advance.

    Best,

    César

  2. #2
    Join Date
    Aug 2017
    Posts
    3

    Default Pentaho SAML plugin and sharing reports problem

    Hello,

    We have successfully configured and deployed the SAML pentaho plugin using Pentaho Community 7.1. We have used wso2 identity server as identity provider.

    However, we have detected an issue when trying to share a report with other SAML users. When a SAML user make a successfull login and try to share a report, Pentaho only list default local users (pat, suzy, tiffany, etc) and users that comes via SAML are never listed.

    Any help to fix this issue will be very welcomed

    Thanks in advance.

    Best,

    César

  3. #3
    Join Date
    Nov 2009
    Posts
    688

    Default

    I am also trying to configure SAML with Pentaho but no luck till now. Can you share how you did it?

  4. #4
    Join Date
    Aug 2017
    Posts
    3

    Default

    Quote Originally Posted by johanhammink View Post
    I am also trying to configure SAML with Pentaho but no luck till now. Can you share how you did it?
    Hello Johan,

    The SAML plugin instalation is documented here:

    https://help.pentaho.com/Documentati...Pentaho_Server

    have you had any particular problem following the guide?

    Regards,

    César

  5. #5
    Join Date
    Nov 2009
    Posts
    688

    Default

    Hi César,

    The problem I face is that I don't have the SAML Files discribed in step 2. I am not a client of Pentaho, using the community edition, so I can't get the files from the Pentaho support.
    I also found this site http://docplayer.net/19831592-Saml-i...-joao-l-m.html
    There they point point to the github to compile your own kar file. I am trying to do that but till now not succesful. I don't know how to use Maven so that's also a learning curve

    Regards,

    Johan

  6. #6
    Join Date
    Nov 2009
    Posts
    688

    Default

    Finally been aible to generate the kar file. Now trying to make it work

  7. #7
    Join Date
    Nov 2009
    Posts
    688

    Default

    I can't make it work. I followed the instructions but when I start the server I get this error in the localhost log file


    Error creating bean with name 'filterChainProxy' defined in file [C:\Pentaho\pentaho-SAML\pentaho-server 7.1\pentaho-server\pentaho-solutions\system\applicationContext-spring-security-saml.xml]: Cannot create inner bean 'util:list#80cb5a9' of type [org.springframework.beans.factory.config.ListFactoryBean] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'util:list#80cb5a9': Cannot create inner bean 'sec:filter-chain#3e40ba5' of type [org.springframework.security.web.DefaultSecurityFilterChain] while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sec:filter-chain#3e40ba5': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.web.DefaultSecurityFilterChain]: Constructor threw exception; nested exception is java.lang.IllegalStateException: Target of Bean was never resolved: javax.servlet.Filter
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:313)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
    at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:648)
    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:145)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
    at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1082)
    at org.springframework.web.filter.DelegatingFilterProxy.initDelegate(DelegatingFilterProxy.java:326)
    at org.springframework.web.filter.DelegatingFilterProxy.initFilterBean(DelegatingFilterProxy.java:235)
    at org.springframework.web.filter.GenericFilterBean.init(GenericFilterBean.java:199)
    at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
    at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
    at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
    at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4700)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5340)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1092)
    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1834)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'util:list#80cb5a9': Cannot create inner bean 'sec:filter-chain#3e40ba5' of type [org.springframework.security.web.DefaultSecurityFilterChain] while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sec:filter-chain#3e40ba5': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.web.DefaultSecurityFilterChain]: Constructor threw exception; nested exception is java.lang.IllegalStateException: Target of Bean was never resolved: javax.servlet.Filter
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:313)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:382)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1481)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1226)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:299)
    ... 31 more
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sec:filter-chain#3e40ba5': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.web.DefaultSecurityFilterChain]: Constructor threw exception; nested exception is java.lang.IllegalStateException: Target of Bean was never resolved: javax.servlet.Filter
    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:279)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:299)
    ... 39 more
    Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.web.DefaultSecurityFilterChain]: Constructor threw exception; nested exception is java.lang.IllegalStateException: Target of Bean was never resolved: javax.servlet.Filter
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:154)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:122)
    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:271)
    ... 44 more
    Caused by: java.lang.IllegalStateException: Target of Bean was never resolved: javax.servlet.Filter
    at org.pentaho.platform.engine.core.system.objfac.spring.BeanBuilder$1.invoke(BeanBuilder.java:157)
    at com.sun.proxy.$Proxy93.toString(Unknown Source)
    at java.lang.String.valueOf(String.java:2994)
    at java.lang.StringBuilder.append(StringBuilder.java:131)
    at java.util.AbstractCollection.toString(AbstractCollection.java:462)
    at java.lang.String.valueOf(String.java:2994)
    at java.lang.StringBuilder.append(StringBuilder.java:131)
    at org.springframework.security.web.DefaultSecurityFilterChain.<init>(DefaultSecurityFilterChain.java:43)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:142)

    This bean is defined in the applicationContext-spring-security-saml.xml. When I remove the all the saml id's (like f.e. samlAuthenticationFilterEntryPoint, samlWebSSOProcessingFilter ) the servers will start but then saml won't work

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.