cancel
Showing results for 
Search instead for 
Did you mean: 

Does the commandline bulk import of users script work on 2.0

alexr
Champ in-the-making
Champ in-the-making
I am considering using the commandline bulk import of user scripts as described in the Packt/Alfresco book (author Munwar Shariff) work on an out-of-the-box Alfresco 2.0 install?

The java-command (including classpaths) in this book (v1.4) is:

java -classpath classes;lib\repository.jar;lib\core.jar;lib\spring.jar;lib\jibx-run.jar;
lib\xpp3.jar;lib\commons-logging.jar;lib\ehcache-1.1.jar;
lib\dom4j-1.6.1.jar;lib\acegi-security-0.8.2.jar;lib\hibernate3.jar;
lib\quartz.jar;lib\pdfbox-0.7.2.jar;lib\poi-2.5.1.jar;lib\jooconverter.jar;
lib\jid3lib-0.5.jar;lib\freemarker.jar;lib\log4j-1.2.8.jar;
lib\cryptix-jce-provider,jar;lib\commons-codec-1.2.jar;
lib\commons-dbcp-1.2.1.jar;lib\commons-pool.jar;lib\jta.jar;lib\mail.jar;
lib\activation.jar;lib\jug.jar;lib\commons-collections-3.0.jar;
lib\cglib-nodep-2.1.jar;lib\antlr-2.7.5H3.jar;
lib\tm-extractors-4.0_patched.jar;\lib\ridl.jar;lib\juh.jar;lib\jurt.jar;
lib\sandbox.jar;lib\jut.jar;lib\lucene-1.4.3.jar;
..\..\..\common\lib\mysql-connector-java-3.1.12-bin.jar;lib\saxpath.jar;
lib\jaxen-1.1-beta-8.jar
org.alfresco.tools.Import -user admin -pwd xxxxx -store workspace://SpaceStore -path sys:system\sysSmiley Tongueeople person.xml


Where the person.xml should have a structure also described in that same book on page 89.

On some of the other posts I read that the import tool threw all kinds of errors and user was unable to login to the repository etc.
So how safe is this import-tool and do the jar-files described above still reflect a call on a Alfresco 2.0 environment?

The only alternative would be creating a program that uses webservices. However at this point the import-tool seems more convenient.

Please tell me if I can use the above java command script or tell me what the Alfresco 2.0 variant would look like.

Thanks,

Alex
1 REPLY 1

ltendi
Champ on-the-rise
Champ on-the-rise
Hi,
I wasn't able to upload the users, because what the book describes is not enougth: I believe that the upload should work if we got the updated documentation and examples about the import operation.
I was able to upload the users during the bootsrap duplicating the xml sections used for admin/guest into the
tomcat\webapps\alfresco\WEB-INF\classes\alfresco\bootstrap
system.xml and alfrescouserstore.xml.
This work once…. Then all the other update must be done manually if we are not able to mak the import tool working.

Any additional information help is welcome!
Luciano
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.