cancel
Showing results for 
Search instead for 
Did you mean: 

Cant find bootstrap for exampleModel.xml using TestModel

brianmp
Champ in-the-making
Champ in-the-making
Hi

I am having some trouble getting exampleModel.xml verified by the TestModel program. The files work fine in Alfresco, but i plan to use the TestModel program to verify my custom made models, so i would like to know what i am doing wrong.

I have not changed the example files, except renaming 'example-model-context.xml.sample' to 'example-model-context.xml'.

I hope someone can help, this is driving me nuts…

Regards
Brian


Command:
java -cp .;C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\lib\*;C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\*;" org.alfresco.repo.dictionary.TestModel C:\Alfresco\tomcat\shared\classes\alfresco\extension\exampleModel.xml


Output:
Testing dictionary model definitions…
alfresco/model/dictionaryModel.xml
alfresco/model/systemModel.xml
org/alfresco/repo/security/authentication/userModel.xml
alfresco/model/contentModel.xml
alfresco/model/wcmModel.xml
alfresco/model/applicationModel.xml
alfresco/model/bpmModel.xml
C:\Alfresco\tomcat\shared\classes\alfresco\extension\exampleModel.xml
Found an invalid model…
Could not find bootstrap model C:\Alfresco\tomcat\shared\classes\alfresco\extension\exampleModel.xml
6 REPLIES 6

brianmp
Champ in-the-making
Champ in-the-making
If you had not guessed it, i am new to Alfresco…

…and i am using the trial version of Enterprise Network - v2.1.1 (193)

If more information is needed, feel free to ask.

janv
Employee
Employee
This should be a classpath location:

alfresco/extension/exampleModel.xml

instead of:

C:\Alfresco\tomcat\shared\classes\alfresco\extension\exampleModel.xml

See also:

http://wiki.alfresco.com/wiki/Data_Dictionary_Guide#Step_5:_Testing_the_Model_definition

Regards,
Jan

brianmp
Champ in-the-making
Champ in-the-making
Hi Jan

Thanks for your answer. Unfortunately that makes no difference, the result is exactly the same.

When i run the .bat file i created, a 'alfresco.log' file is created in the same folder. But its empty, so not much help there…

Any other suggestions on what could be wrong?

Regards
Brian

janv
Employee
Employee
Although I haven't tried this myself, it looks as if you also need to add the following to your classpath list:

C:\Alfresco\tomcat\shared\classes

If this still doesn't work, please let me know and I'll dig out a Windows machine (with Java 6 for the lib\* classpath wildcard) and try it out myself.

Thanks,
Jan

brianmp
Champ in-the-making
Champ in-the-making
It works, thank you very much…

I first tried adding 'C:\Alfresco\tomcat\shared\classes\*', as i thought you had forgotten the '\*' part. That didnt work…

It needs to be 'C:\Alfresco\tomcat\shared\classes'. 'C:\Alfresco\tomcat\shared\classes\' wil also not work (in case anyone else is having the same problem).

Again, thank you for your help.

Regards
Brian

norgan
Champ in-the-making
Champ in-the-making
Hi,
I am ashamed to admit, I fail as well 😞

I use eclipse and start TestModel via "Run as" configuration.

location of my model
<classpath>alfresco/extension/model/mymodel.xml

My console output
Testing dictionary model definitions…
alfresco/model/dictionaryModel.xml
alfresco/model/systemModel.xml
org/alfresco/repo/security/authentication/userModel.xml
alfresco/model/contentModel.xml
alfresco/model/wcmModel.xml
alfresco/model/applicationModel.xml
alfresco/model/bpmModel.xml
alfresco/extension/model/mymodel.xml
Found an invalid model…
08160000 Could not find bootstrap model alfresco/extension/model/mymodel.xml

Any suggestions ? Thanks in advance

Norgan