2 Replies Latest reply on Apr 22, 2013 12:17 PM by 0000000000

    CAS integration

    0000000000

      Hi !

       

      I am trying to integrate the CAS server to gatein but having some trouble.

      I appreciate if someone can help me out.

       

      I am following the following insteruction,

       

      https://docs.jboss.org/author/display/GTNPORTAL35/Central+Authentication+Service+%28CAS%29

       

      After I copy the jar file into the cooresponding directory in the chapter "Authentication plugin setup",

      and execute the mvn install , I get the following error

       

      java.lang.ClassNotFoundException: org.gatein.sso.cas.plugin.AuthenticationPlugin

       

      Following is the full error in the Test:

       

        testWiring(org.jasig.cas.WiringTests): Error creating bean with name 'handlerMappingC' defined in URL [file:src/main/webapp/WEB-INF/cas-servlet.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'proxyValidateController' defined in URL [file:src/main/webapp/WEB-INF/cas-servlet.xml]: Cannot resolve reference to bean 'centralAuthenticationService' while setting bean property 'centralAuthenticationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'centralAuthenticationService' defined in file [/usr/local/cas-server-3.5.2/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/applicationContext.xml]: Cannot resolve reference to bean 'authenticationManager' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager' defined in URL [file:src/main/webapp/WEB-INF/deployerConfigContext.xml]: Cannot create inner bean 'org.gatein.sso.cas.plugin.AuthenticationPlugin#d2368df' of type [org.gatein.sso.cas.plugin.AuthenticationPlugin] while setting bean property 'authenticationHandlers' with key [1]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.gatein.sso.cas.plugin.AuthenticationPlugin] for bean with name 'org.gatein.sso.cas.plugin.AuthenticationPlugin#d2368df' defined in URL [file:src/main/webapp/WEB-INF/deployerConfigContext.xml]; nested exception is java.lang.ClassNotFoundException: org.gatein.sso.cas.plugin.AuthenticationPlugin

       

      It seems that mvn command is not reading the jar files that were coppied.

       

      Should I need to set up any dependencies in the pom file?

       

      Thanks,

      Yu

        • 1. Re: CAS integration
          mposolda

          Hi Yu,

           

          could you try to build it with:

           

          mvn clean install -Dmaven.test.skip=true
          

           

           

          Another possibility is to edit deployerConfigContext.xml after performing the test, but I believe that running with maven.test.skip=true is easier path

           

          Hope this helps,

          Marek

          1 of 1 people found this helpful
          • 2. Re: CAS integration
            0000000000

            Hello Marek.

             

            Thank you for the advice I was able to pass the installation and the war files were created successfully.

            I am bit curious that the test result showed that the jar files were unable to load by the CAS. Is this all right ?

             

            Thanks,
            yu