Uploaded image for project: 'Offre de formation'
  1. Offre de formation
  2. ODF-1225

L'application ne démarre plus suite à la migration 2.4.x -> 2.5 à cause d'une surcharge du CDMFrImportManager

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.6.5
    • 2.5.1
    • None
    • None

      Suite à la correction d' ODF-1153 dans la GlobalCDMFrImportManager
      le rôle a été changé :

          @SuppressWarnings("hiding")
          public static final String ROLE = GlobalCDMFrImportManager.class.getName();
      

      J'ai l'erreur suivante :

      Caused by: org.apache.avalon.framework.component.ComponentException: Could not find component (key [org.ametys.plugins.odfsync.cdmfr.GlobalCDMFrImportManager])
      at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:265)
      at org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:354)
      at org.ametys.runtime.plugin.component.PluginsComponentManager.lookup(PluginsComponentManager.java:72)
      

      Dans le projet j'ai dû modifier le rôle afin que l'application se lance.

                  <component class="org.ametys.plugins.enac.importODF.ENACImportManager"
                             role="org.ametys.plugins.odfsync.cdmfr.CDMFrImportManager">
                      <program-workflow-name>program</program-workflow-name>
                      <course-workflow-name>course</course-workflow-name>
                      <orgunit-workflow-name>orgunit</orgunit-workflow-name>       
                      <person-workflow-name>person</person-workflow-name>                     
                  </component>
      

      en

                  <component class="org.ametys.plugins.enac.importODF.ENACImportManager"
                             role="org.ametys.plugins.odfsync.cdmfr.GlobalCDMFrImportManager">
                      <program-workflow-name>program</program-workflow-name>
                      <course-workflow-name>course</course-workflow-name>
                      <orgunit-workflow-name>orgunit</orgunit-workflow-name>       
                      <person-workflow-name>person</person-workflow-name>                     
                  </component>
      

            Unassigned Unassigned
            lperier Laurence Perier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: