org.alfresco.repo.dictionary.TestModel

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2007 03:54 PM
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:
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.
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.
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2007 06:51 AM
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:
… 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
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
