cancel
Showing results for 
Search instead for 
Did you mean: 

org.alfresco.repo.dictionary.TestModel

mskarica
Champ in-the-making
Champ in-the-making
Hi,

I'm trying to run this command to test a customized model (per the instructions in the Dictionary Guide) without having to restart the server.

I'm doing the following:
org.alfresco.repo.dictionary.TestModel myModel.xml

I just get a command not found error.  Do I need to run this command from a specific directory?  Am I doing something wrong?

Thanks.
1 REPLY 1

janv
Employee
Employee
You need to run this as a Java Application (ie. using 'java' from the command line) with your classpath configured with all of the required dependencies. The best way to do this is to use Eclipse to run the TestModel assuming you have an SDK / dev environment setup. This will ensure that you're using the latest dependencies:

http://wiki.alfresco.com/wiki/Alfresco_SDK

As a quick workaround, you could navigate to your 'tomcat/webapps/alfresco/WEB-INF/lib' directory and run the command-line as follows:


java -cp .:../classes:alfresco-repository.jar:alfresco-core.jar:log4j-1.2.8.jar:commons-logging-1.0.4.jar:ehcache-1.3.0-patched.jar:jibx-run.jar:xpp3-1.1.3_8.jar:spring-2.0.2.jar org.alfresco.repo.dictionary.TestModel <classpath location of your model>

… although the exact dependencies will depend on your version of Alfresco .

If you're using HEAD (post 2.x) then another alternative is use the Dynamic Models feature to develop and test your model, since this does not require a server restart.

http://forums.alfresco.com/viewtopic.php?t=8675

Thanks,
Jan
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.