Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: Integrating Pentaho BI 7 CE with CAS

  1. #1

    Question Integrating Pentaho BI 7 CE with CAS

    The instructions in the doc were followed:
    https://help.pentaho.com/Documentati...curity/060/000

    But at start allways get a SEVERE problem:

    Code:
    14:29:28,880 ERROR [ContextLoader] Context initialization failedorg.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from relative location [applicationContext-spring-security-cas.xml]
    Offending resource: file [/var/opt/pentaho70/pentaho-server/pentaho-solutions/system/pentaho-spring-beans.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [/var/opt/pentaho70/pentaho-server/pentaho-solutions/system/applicationContext-spring-security-cas.xml]; nested exception is java.lang.RuntimeException: Cannot find class for publish type: INTERFACES specified on publish of bean id: casAuthenticationProvider.memoryUserDetailsService
            at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)
            at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
            at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)
            at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:259)
            at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:184)
            at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:169)
            at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:142)
            at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:94)
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508)
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:392)
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
            at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
            at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)
            at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
            at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
            at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
            at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
            at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:612)
            at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:513)
            at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)
            at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)
            at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4853)
            at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
            at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
            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:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at java.lang.Thread.run(Thread.java:745)
    Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [/var/opt/pentaho70/pentaho-server/pentaho-solutions/system/applicationContext-spring-security-cas.xml]; nested exception is java.lang.RuntimeException: Cannot find class for publish type: INTERFACES specified on publish of bean id: casAuthenticationProvider.memoryUserDetailsService
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:414)
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
            at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:243)
            ... 32 more
    Caused by: java.lang.RuntimeException: Cannot find class for publish type: INTERFACES specified on publish of bean id: casAuthenticationProvider.memoryUserDetailsService
            at org.pentaho.platform.engine.core.system.objfac.spring.BeanPublishParser.decorate(BeanPublishParser.java:142)
            at org.springframework.beans.factory.xml.NamespaceHandlerSupport.decorate(NamespaceHandlerSupport.java:99)
            at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.decorateIfRequired(BeanDefinitionParserDelegate.java:1448)
            at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.decorateBeanDefinitionIfRequired(BeanDefinitionParserDelegate.java:1435)
            at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.decorateBeanDefinitionIfRequired(BeanDefinitionParserDelegate.java:1415)
            at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.processBeanDefinition(DefaultBeanDefinitionDocumentReader.java:301)
            at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:190)
            at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:169)
            at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:142)
            at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:94)
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508)
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:392)
            ... 35 more
    Caused by: java.lang.ClassNotFoundException: org.springframework.security.cas.authentication.CasAuthenticationProvider
            at org.pentaho.platform.engine.core.system.objfac.spring.BeanPublishParser.findClass(BeanPublishParser.java:163)
            at org.pentaho.platform.engine.core.system.objfac.spring.BeanPublishParser.decorate(BeanPublishParser.java:101)
            ... 46 more
    12-Jan-2017 14:29:28.889 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
    12-Jan-2017 14:29:35.112 INFO [localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [6,221] milliseconds.
    12-Jan-2017 14:29:35.113 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/pentaho] startup failed due to previous errors
    Same issue was reported in StackOverflow:

    http://stackoverflow.com/questions/4...ition-with-cas

    Any ideas?

    Thanks...

  2. #2

    Default

    I was able to avoid that error by using a different library of spring-security-cas-client.

    I'm using version 3.0.8 instead of 2.0.5 as the documentation because the classes used in application-Context-spring-security-cas.xml was referencing version 3.0.x.

    After that I didn't get the errror but pentaho doesn't redirect to CAS server and I get a new error:

    Code:
    16-Jan-2017 15:09:46.558 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [pentaho] created a ThreadLocal with key of type [java.lang.InheritableThreadLocal] (value [java.lang.InheritableThreadLocal@218e39af]) and a value of type [org.springframework.security.core.context.SecurityContextImpl] (value [org.springframework.security.core.context.SecurityContextImpl@2b468485: Authentication: org.springframework.security.authentication.UsernamePasswordAuthenticationToken@2b468485: Principal: b653234b-34f4-4bff-ba21-01c1b884241f; Credentials: [PROTECTED]; Authenticated: false; Details: null; Not granted any authorities]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
    Someone can tell me what version exactly I must use.

  3. #3

    Default

    I finally make it work with this instructions:
    Using: http://repo1.maven.org/maven2/org/sp....8.RELEASE.jar
    Into the file pentaho-spring-beans.xml comment out the lines:

    Code:
      <import resource="applicationContext-spring-security-superuser.xml"/>
    <import resource="applicationContext-pentaho-security-superuser.xml"/>
    <import resource="applicationContext-spring-security-memory.xml" />
    <import resource="applicationContext-pentaho-security-memory.xml" />
    <import resource="applicationContext-spring-security-ldap.xml" />
    <import resource="applicationContext-pentaho-security-ldap.xml" />
    <import resource="applicationContext-pentaho-security-jdbc.xml" />
    <import resource="applicationContext-spring-security-jdbc.xml" />
    I dind't do the item 5 and 8 of Pentaho documentation.

    Because pentaho 7.0 is using jackrabbit by default.
    Last edited by sancho; 01-17-2017 at 10:38 AM. Reason: SOLVED

  4. #4
    Join Date
    Dec 2017
    Posts
    2

    Default

    Hi,
    Are you configuring successful?

    Can you give me all files configure?
    I'v been to error after login Pentaho:

    Sorry, something went wrong.
    Please try again or contact
    your system administrator.
    I used to the Pentaho 7.1 and SQL Server

    Thanks a lot.
    Sorry, my english not good.

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.