cancel
Showing results for 
Search instead for 
Did you mean: 

Deploy Custom Model

removedquasar
Champ in-the-making
Champ in-the-making
Following your guide i created a new custom model but i don't know how deploy it on my Alfresco.

The guide say to use the build.xml file and run "ant deploy"  but i have no idea what is this file and no idea how run ant.  Smiley Surprisedops:
Can you explain me please? Thanks  :mrgreen:
11 REPLIES 11

mitpatoliya
Star Collaborator
Star Collaborator
You can manually place the files created by you under
tomcat/shared/classes/alfresco/

or tomcat/webapps/alfresco/WEB-INF/classes/alfresco/extension/

You need to have two files for content model.
model file
file to register the model.

removedquasar
Champ in-the-making
Champ in-the-making
Yes i created two file:

scModel.xml and someco-model-context.xml (the Spring configuration file).
So i have to place both in one of those directories?

mitpatoliya
Star Collaborator
Star Collaborator
Yes exactly and restart the server.
Also you need to create that web-client-config.xml file and place that as well at same location.
In that file you need to add the entry of the aspects and types which you have created to make it visible in the webclient.

removedquasar
Champ in-the-making
Champ in-the-making
I moved the 3 files on
Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\extension (the extension directory didn't exist so i created it)
but the model doesen't work.

In the file  someco-model-context.xml there is the tag <value> where (i presumed) must contain the route for the model file so i wrote this:

<value>C:/Alfresco/tomcat/webbaps/alfresco/WEB-INF/classes/extension/scModel.xml</value>

Is it correct?

mitpatoliya
Star Collaborator
Star Collaborator
No it should be
alfresco/extension/scModel.xml

removedquasar
Champ in-the-making
Champ in-the-making
I did but still no work. I thought that there was a problem in my files so i used the 3 files from your site about the someCo project.

I put the file in the directory but it's the same, doesen't work.

If i put the 3 files on C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\extension nothing happend (Alfresco start but the module is not load)
Instead if i try to put the 3 files on C:\Alfresco\tomcat\shared\classes\alfresco\extension Alfresco doesen't start, the Explorer show me an error 404 and the Share say that there is a problem with the server. I have to add something to the global properties of Alfresco?

mitpatoliya
Star Collaborator
Star Collaborator
Please post your logs where you are getting error.

removedquasar
Champ in-the-making
Champ in-the-making
Fixed ^^

I used ant and now all work correctly.
(ah there was some errors on the file web-client-config-custom).

Hi,

Can you give me more details about it. I am trying to deploy a custom model in the version 5.0.c and never can see the new type, if i do clic in the option Change Type, i cannot select my type.