cancel
Showing results for 
Search instead for 
Did you mean: 

Exportation group problem

flash31186
Champ in-the-making
Champ in-the-making
Hi all,

I work with alfresco 3.2, and I have a problem with export command of users or groups. (I found it here : http://wiki.alfresco.com/wiki/Export_and_Import#Export_Tool.)

For information, the alfresco-repository-3.2r2.jar and spring-2.0.8.jar were missed in this command.
After add this jars in the command, i use it like this :
org.alfresco.tools.Export -user admin -pwd -s user://alfrescoUserStore -path /sys:system/sys:authorities -verbose alfrescoUserStore-authorities

And it diplay just this error :

The following error has occured:
    org/alfresco/error/AlfrescoRuntimeException

Do you know where's my error …. or how can I display more logs ?

Thanks in advance,

Michaël
2 REPLIES 2

flash31186
Champ in-the-making
Champ in-the-making
No opinion ?

Because I have installed this application on an other server and I have recreated all the groups…
I tried to execute this instruction …. then I have the same error message …

This is the instruction that I use :

java.exe -classpath classes\alfresco\module;..\..\..\shared\classes;classes;lib\spring-2.0.8.jar;lib\abdera-core-0.4.0-incubating.jar;lib\alfresco-repository-3.2r2.jar;lib\abdera-extensions-json-0.4.0-incubating.jar;lib\abdera-i18n-0.4.0-incubating.jar;lib\abdera-parser-0.4.0-incubating.jar;lib\acegi-security-0.8.2_patched.jar;lib\activation.jar;lib\addressing-1.0.jar;lib\alfresco-core.jar;lib\alfresco-deployment.jar;lib\alfresco-jlan-embed.jar;lib\alfresco-linkvalidation.jar;lib\alfresco-mbeans.jar;lib\alfresco-remote-api.jar;lib\alfresco-repository.jar;lib\alfresco-web-client.jar;lib\alfresco-webscript-framework.jar;lib\ant.jar;lib\antlr-2.7.5H3.jar;lib\antlr-3.1b1.jar;lib\aopalliance.jar;lib\avalon-framework-4.2.0.jar;lib\axiom-api-1.2.5.jar;lib\axiom-impl-1.2.5.jar;lib\axis-1.4.jar;lib\batik-all-1.6.jar;lib\bcel.jar;lib\bcmail-jdk15-137.jar;lib\bcprov-jdk15-137.jar;lib\bliki-3.0.2.jar;lib\bsf-2.4.0.jar;lib\bsh-1.3.0.jar;lib\catalina.jar;lib\cglib-nodep-2.2_beta1.jar;lib\chiba-1.3.0.jar;lib\commons-beanutils-1.7.0.jar;lib\commons-codec-1.3.jar;lib\commons-collections-3.1.jar;lib\commons-dbcp-1.2.1.jar;lib\commons-digester-1.6.jar;lib\commons-discovery-0.2.jar;lib\commons-el.jar;lib\commons-fileupload-1.1.1.jar;lib\commons-httpclient-3.1.jar;lib\commons-io-1.1.jar;lib\commons-jxpath-1.2.jar;lib\commons-lang-2.1.jar;lib\commons-logging-1.1.jar;lib\commons-modeler.jar;lib\commons-pool-1.4.jar;lib\commons-validator.jar;lib\cxf-2.1.2.jar;lib\derby.jar;lib\dom4j-1.6.1.jar;lib\ehcache-1.4.1-patched.jar;lib\facebook_070716.jar;lib\FastInfoset-1.2.2.jar;lib\fontbox-0.1.0.jar;lib\fop-0.94.jar;lib\freemarker-2.3.13.jar;lib\geronimo-activation_1.0.2_spec-1.1.jar;lib\geronimo-activation_1.1_spec-1.0.2.jar;lib\geronimo-annotation_1.0_spec-1.1.1.jar;lib\geronimo-jaxws_2.1_spec-1.0.jar;lib\geronimo-stax-api_1.0_spec-1.0.1.jar;lib\geronimo-ws-metadata_2.0_spec-1.1.2.jar;lib\guessencoding-1.0.jar;lib\hibernate-3.2.6-patched.jar;lib\hrtlib.jar;lib\hsqldb.jar;lib\htmlparser-1.6.jar;lib\ibatis-2.3.0.677.jar;lib\icu4j_3_6_1.jar;lib\jakarta-oro-2.0.8.jar;lib\jaxb-api-2.1.jar;lib\jaxb-impl-2.1.7.jar;lib\jaxb-xjc-2.1.7.jar;lib\jaxen-1.1-beta-8.jar;lib\jaxrpc.jar;lib\jaxws-api-2.0.jar;lib\jbpm-identity-3.2.2.jar;lib\jbpm-jpdl-3.2.2.jar;lib\jcr-1.0.jar;lib\jgroups-2.6.2.jar;lib\jibx-bind.jar;lib\jibx-run.jar;lib\jid3lib-0.5.jar;lib\JMagick.jar;lib\joda-time-1.2.1.jar;lib\jooconverter-2.1.0.jar;lib\json.jar;lib\jsr107cache-1.0.jar;lib\jstl-1.1.0.jar;lib\jta.jar;lib\jug-lgpl-2.0.0.jar;lib\junit.jar;lib\jut.jar;lib\log4j-1.2.15.jar;lib\lucene-analyzers-2.1.0.jar;lib\lucene-core-2.1.0.jar;lib\lucene-snowball-2.1.0.jar;lib\mail.jar;lib\myfaces-api-1.1.5.jar;lib\myfaces-impl-1.1.5.jar;lib\mysql-connector-java-5.0.3.jar;lib\naming-factory.jar;lib\naming-resources.jar;lib\neethi-2.0.4.jar;lib\odf_utils.jar;lib\odmg-3.0.jar;lib\openoffice-juh-2.0.3.jar;lib\openoffice-jurt-2.0.3.jar;lib\openoffice-ridl-2.0.3.jar;lib\openoffice-sandbox-2.0.3.jar;lib\openoffice-unoil-2.0.3.jar;lib\opensaml-1.0.1.jar;lib\pdfbox-0.7.3.jar;lib\PDFRenderer.jar;lib\poi-3.1.jar;lib\portlet-api-lib.jar;lib\proof-june2009-1.0.0.jar;lib\quartz-1.6.0.jar;lib\resolver.jar;lib\rhino-js-1.6R7.jar;lib\saaj-api-1.3.jar;lib\saaj-impl-1.3.jar;lib\saaj.jar;lib\saxpath.jar;lib\shale-test-1.0.4.jar;lib\spring-2.0.6.jar;lib\springmodules-jbpm31.jar;lib\standard.jar;lib\stax-api-1.0.1.jar;lib\stax-utils-20060502.jar;lib\subetha-smtp.jar;lib\tm-extractors-1.0.jar;lib\tomcat-coyote.jar;lib\tomcat-util.jar;lib\truezip.jar;lib\wsdl4j-1.6.2.jar;lib\wss4j.jar;lib\wstx-asl-3.2.1.jar;lib\wstx-asl-3.2.4.jar;lib\xercesImpl-2.8.0.jar;lib\xml-apis.jar;lib\xml-resolver-1.2.jar;lib\xmlgraphics-commons-1.2.jar;lib\xmlrpc.jar;lib\XmlSchema-1.4.2.jar;lib\xmlsec-1.4.1.jar;lib\xpp3-1.1.3_8.jar;lib\xstream-1.1.3.jar;..\..\..\endorsed\serializer.jar;..\..\..\endorsed\xalan.jar org.alfresco.tools.Export -user admin -pwd ******** -s user://alfrescoUserStore -path /sys:system/sys:authorities -verbose alfrescoUserStore-authorities

Anyone can't help me ?

Michael

flash31186
Champ in-the-making
Champ in-the-making
Hi ! I did it !

I don't know why, but my command was wrong… I used this one and it works : http://forums.alfresco.com/en/viewtopic.php?f=6&t=21604.

If you have installed Alfresco with Mysql, you must shutdown Alfresco with mysql's working. Use alf_stop and a DOS window will open and waiting than alfresco's shutdown. At this moment, do not type enter. And now, launch this command with what you want and context you are.

At the end, you have a spacesStore-authorities.xml file with all group's exported (it is that I wanted).
Attention :  from version 3.1of Alfresco Community, the zones appears (http://issues.alfresco.com/jira/browse/ALF-3307).
And now, you must add all the groups like this : http://issues.alfresco.com/jira/secure/attachment/19355/example.xml
If you do not insert them, at the import, they will not be displayed in the management group console.

So, at the end of the import file, add all the groups to the zones AUTH.ALF and APP.DEFAULT like this :
      <view:reference xmlns="" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:jw="http://www.jway.lu/model/content/1.0" xmlns:lnk="http://www.alfresco.org/model/linksmodel/1.0" xmlns:sys="http://www.alfresco.org/model/system/1.0" xmlns:ver="http://www.alfresco.org/model/versionstore/1.0" xmlns:cmiscustom="http://www.alfresco.org/model/cmis/custom" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:emailserver="http://www.alfresco.org/model/emailserver/1.0" xmlns:fm="http://www.alfresco.org/model/forum/1.0"  xmlns:ia="http://www.alfresco.org/model/calendar" xmlns:rule="http://www.alfresco.org/model/rule/1.0" xmlns:wcm="http://www.alfresco.org/model/wcmmodel/1.0" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:st="http://www.alfresco.org/model/site/1.0" xmlns:usr="http://www.alfresco.org/model/user/1.0" xmlns:app="http://www.alfresco.org/model/application/1.0" xmlns:module="http://www.alfresco.org/system/modules/1.0" xmlns:d="http://www.alfresco.org/model/dictionary/1.0" xmlns:blg="http://www.alfresco.org/model/blogintegration/1.0" xmlns:alf="http://www.alfresco.org" xmlns:cmis="http://www.alfresco.org/model/cmis/1.0/cd04" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:wca="http://www.alfresco.org/model/wcmappmodel/1.0" xmlns:bpm="http://www.alfresco.org/model/bpm/1.0" xmlns:inwf="http://www.alfresco.org/model/workflow/invite/nominated/1.0" xmlns:cm="http://www.alfresco.org/model/content/1.0" xmlns:imap="http://www.alfresco.org/model/imap/1.0"  xmlns:reg="http://www.alfresco.org/system/registry/1.0" xmlns:ver2="http://www.alfresco.org/model/versionstore/2.0" xmlns:stcp="http://www.alfresco.org/model/sitecustomproperty/1.0" xmlns:ub="http://www.qualicite.be/model/content/1.0" xmlns:wcmwf="http://www.alfresco.org/model/wcmworkflow/1.0" xmlns:view="http://www.alfresco.org/view/repository/1.0" xmlns:imwf="http://www.alfresco.org/model/workflow/invite/moderated/1.0" xmlns:act="http://www.alfresco.org/model/action/1.0" xmlns:wf="http://www.alfresco.org/model/workflow/1.0" view:pathref="../${system.zones_container.childname}/cm:AUTH.ALF">
        <view:associations>
          <cm:inZone>
            <view:reference view:pathref="cm:GROUP_Groupe1" view:childName="cm:GROUP_Groupe1"/>
          </cm:inZone>
          <cm:inZone>
            <view:reference view:pathref="cm:GROUP_Groupe2" view:childName="cm:GROUP_Groupe2"/>
          </cm:inZone>
          <cm:inZone>
            <view:reference view:pathref="cm:GROUP_GroupeX" view:childName="cm:GROUP_GroupeX"/>
          </cm:inZone>
        </view:associations>
      </view:reference>
      <view:reference xmlns="" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:jw="http://www.jway.lu/model/content/1.0" xmlns:lnk="http://www.alfresco.org/model/linksmodel/1.0" xmlns:sys="http://www.alfresco.org/model/system/1.0" xmlns:ver="http://www.alfresco.org/model/versionstore/1.0" xmlns:cmiscustom="http://www.alfresco.org/model/cmis/custom" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:emailserver="http://www.alfresco.org/model/emailserver/1.0" xmlns:fm="http://www.alfresco.org/model/forum/1.0" xmlns:bp="http://www.qualicite.be/model/content/bp/1.0" xmlns:ia="http://www.alfresco.org/model/calendar" xmlns:rule="http://www.alfresco.org/model/rule/1.0" xmlns:wcm="http://www.alfresco.org/model/wcmmodel/1.0" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:st="http://www.alfresco.org/model/site/1.0" xmlns:usr="http://www.alfresco.org/model/user/1.0" xmlns:app="http://www.alfresco.org/model/application/1.0" xmlns:module="http://www.alfresco.org/system/modules/1.0" xmlns:d="http://www.alfresco.org/model/dictionary/1.0" xmlns:blg="http://www.alfresco.org/model/blogintegration/1.0" xmlns:alf="http://www.alfresco.org" xmlns:cmis="http://www.alfresco.org/model/cmis/1.0/cd04" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:wca="http://www.alfresco.org/model/wcmappmodel/1.0" xmlns:bpm="http://www.alfresco.org/model/bpm/1.0" xmlns:inwf="http://www.alfresco.org/model/workflow/invite/nominated/1.0" xmlns:co="http://www.qualicite.be/model/content/college/1.0" xmlns:cm="http://www.alfresco.org/model/content/1.0" xmlns:imap="http://www.alfresco.org/model/imap/1.0" xmlns:reg="http://www.alfresco.org/system/registry/1.0" xmlns:ver2="http://www.alfresco.org/model/versionstore/2.0" xmlns:stcp="http://www.alfresco.org/model/sitecustomproperty/1.0" xmlns:ub="http://www.qualicite.be/model/content/1.0" xmlns:wcmwf="http://www.alfresco.org/model/wcmworkflow/1.0" xmlns:view="http://www.alfresco.org/view/repository/1.0" xmlns:imwf="http://www.alfresco.org/model/workflow/invite/moderated/1.0" xmlns:act="http://www.alfresco.org/model/action/1.0" xmlns:wf="http://www.alfresco.org/model/workflow/1.0" view:pathref="../${system.zones_container.childname}/cm:APP.DEFAULT">
        <view:associations>
          <cm:inZone>
            <view:reference view:pathref="cm:GROUP_Groupe1" view:childName="cm:GROUP_Groupe1"/>
          </cm:inZone>
          <cm:inZone>
            <view:reference view:pathref="cm:GROUP_Groupe2" view:childName="cm:GROUP_Groupe2"/>
          </cm:inZone>
          <cm:inZone>
            <view:reference view:pathref="cm:GROUP_GroupeX" view:childName="cm:GROUP_GroupeX"/>
          </cm:inZone>
        </view:associations>
      </view:reference>

At the
view:pathref="../${system.zones_container.childname}/cm:AUTH.ALF"
, the "../" are to the fact that I have imported all groups from /${alfresco_user_store.system_container.childname}/sys:authorithies. Since the zones are children nodes of ${alfresco_user_store.system_container.childname}, it must the ".." to move up by one node (XPATH syntax).

After that, just import all the groups. I do that from alfresco bootstrap.

Michaël