AnsweredAssumed Answered

CASification d'alfresco pour le SSO

Question asked by ibrahim on Jun 25, 2010
Latest reply on Oct 19, 2010 by assarrar
Bonjour la communauté,

Je reviens vers vous, cette fois pour un problème avec la configuration d'alfresco pour utiliser mon serveur CAS,
puisque j'ai pas trop compris le wiki: http://wiki.alfresco.com/wiki/Alfresco_With_mod_auth_cas , qui parle du module auth_cas, et que j'ai déjà une installation alfresco community 3.3 qui marche trés bien
Alors j'ai suivi: http://wiki.alfresco.com/wiki/Central_Authentication_Service_Configuration

C'est a dire, j'ai copier les jar
./webapps/alfresco/WEB-INF/lib/cas-client-core-3.1.3.jar
./webapps/alfresco/WEB-INF/lib/keembay-alfresco-cas.jar

sur le fichier ./webapps/alfresco/WEB-INF/web.xml j'ai ajouter ça


<!– CAS client filter –>
<filter>
     <filter-name>CAS Filter</filter-name>
     <filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class>
     <init-param>
         <param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name>
         <param-value>http://Mon_Serveur_CAs_url:8088/cas/login</param-value>
     </init-param>
     <init-param>
         <param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
         <param-value>http://Mon_Serveur_CAs_url:8088/cas/serviceValidate</param-value>
     </init-param>
     <init-param>
         <param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name>
         <param-value>Alfresco_url/alfresco/</param-value>
     </init-param>
</filter>

<filter-mapping>
     <filter-name>CAS Filter</filter-name>
     <url-pattern>/faces/*</url-pattern>
</filter-mapping>
<!– end of CAS client filter –>

Et j'ai modifier sur le même fichier ceci


   <filter>
      <filter-name>Authentication Filter</filter-name>
      <filter-class>com.keembay.alfresco.web.app.servlet.CASAuthenticationFilter</filter-class>
      <init-param>
         <param-name>cas.user.label</param-name>
         <param-value>edu.yale.its.tp.cas.client.filter.user</param-value>
      </init-param>
   </filter>

mon premier test a retourné cette erreur

13:02:59,119  WARN  [springframework.beans.GenericTypeAwarePropertyDescriptor] Invalid JavaBean property 'blockedSenders' being accessed! Ambiguous write methods found next to actually used [public void org.alfresco.email.server.EmailServer.setBlockedSenders(java.util.List)]: [public void org.alfresco.email.server.EmailServer.setBlockedSenders(java.lang.String)]
13:02:59,119  WARN  [springframework.beans.GenericTypeAwarePropertyDescriptor] Invalid JavaBean property 'allowedSenders' being accessed! Ambiguous write methods found next to actually used [public void org.alfresco.email.server.EmailServer.setAllowedSenders(java.util.List)]: [public void org.alfresco.email.server.EmailServer.setAllowedSenders(java.lang.String)]
13:02:59,142  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'email' subsystem, ID: [email, inbound] complete
13:02:59,147  INFO  [repo.usage.UserUsageTrackingComponent] Enabled - calculate missing user usages …
13:02:59,154  INFO  [repo.usage.UserUsageTrackingComponent] Found 0 users to recalculate
13:02:59,154  INFO  [repo.usage.UserUsageTrackingComponent] … calculated missing usages for 0 users
13:02:59,154  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'Synchronization' subsystem, ID: [Synchronization, default]
13:02:59,162  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:02:59,201  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'Synchronization' subsystem, ID: [Synchronization, default] complete
13:02:59,299  INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_20-b02; maximum heap size 910.250MB
13:02:59,299  INFO  [service.descriptor.DescriptorService] Alfresco started (Community): Current version 3.3.0 (2765) schema 4009 - Originally installed version 3.3.0 (2765) schema 4009
13:03:01,616  INFO  [module.vti.VtiServer] Vti server started successfully on port: 7070
13:03:10,288 User:System INFO  [extensions.webscripts.DeclarativeRegistry] Registered 341 Web Scripts (+0 failed), 576 URLs
13:03:10,288 User:System INFO  [extensions.webscripts.DeclarativeRegistry] Registered 2 Package Description Documents (+0 failed)
13:03:10,288 User:System INFO  [extensions.webscripts.DeclarativeRegistry] Registered 1 Schema Description Documents (+0 failed)
13:03:10,290 User:System INFO  [extensions.webscripts.AbstractRuntimeContainer] Initialised Repository Web Script Container (in 8459.786ms)
13:03:10,290  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
13:03:10,291  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
Jun 25, 2010 1:03:10 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Jun 25, 2010 1:03:10 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/alfresco] startup failed due to previous errors
13:03:10,639  INFO  [management.subsystems.ChildApplicationContextFactory] Stopping 'email' subsystem, ID: [email, inbound]
13:03:10,641  ERROR [management.subsystems.ChildApplicationContextFactory$ChildApplicationContext] Exception thrown from ApplicationListener handling ContextClosedEvent
org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'InboundSMTP': Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:209)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        at org.springframework.context.event.AbstractApplicationEventMulticaster.getApplicationListeners(AbstractApplicationEventMulticaster.java:132)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:86)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:294)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:296)
        at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:943)
        at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:917)
        at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ApplicationContextState.stop(ChildApplicationContextFactory.java:642)
        at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.stop(AbstractPropertyBackedBean.java:485)
        at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.destroy(AbstractPropertyBackedBean.java:357)

j'ai essayé de recompiler le keembay-alfresco-cas.jar, ca n'a rien donné !!! :(
http://forums.alfresco.com/en/viewtopic.php?f=8&t=25990&p=84437&hilit=cas+authentication+alfresco+3.3#p84437
es-que  vous avez une solution pour cette situation, MERCI

crdlt
brahim

Outcomes