cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Component in 3.3g [Solved]

michaelc
Champ on-the-rise
Champ on-the-rise
I was working the book Alfresco 3 Enterprise content management Chapter 11 Page 474
where it defines configuring custom components. I followed it exact and I don't find the custom components.

Has the architecture changed from 3.0 to 3.3 to the point where this won't work ?
many of the directories it refers to do not exist
an example would be
tomcat/shared/classes/alfresco/web-extension/site-data/presets.
5 REPLIES 5

mikeh
Star Contributor
Star Contributor
The shared/classes/alfresco/web-extension folder is for your own customisations so you don't have to edit anything within the share webapp directly (the latter would get lost should the share.war file ever get redeployed). It's expected that it would be empty (or not even exist) by default.

Note you also need to make sure Tomcat 6 is including the folder structure in it's classpath. Check the notes here: http://wiki.alfresco.com/wiki/Install_Tomcat6

Thanks,
Mike

michaelc
Champ on-the-rise
Champ on-the-rise
Ok, I checked catalina.properties  it does have the line as follows.
    shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar

Now I made changes to files in
    \Alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\site-data\components 
    trying another minor tweek I Need.

these change should have been made to copies in
    \Alfresco\tomcat\shared\classes\alfresco\web-extension\site-data\components

   would that be correct ?

  Sorry I am a little slow here.

michaelc
Champ on-the-rise
Champ on-the-rise
So the elements I had modified that were working in
      \Alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\dashlets

   I moved to
     \Alfresco\tomcat\shared\classes\alfresco\web-extension\site-webscripts\org\alfresco\components\dashlets

    this did not work, so do I have the path incorrect or does that say there is an issue with the tomcat properties ?

mikeh
Star Contributor
Star Contributor
Yes, that's correct. Make sure you've restart Tomcat after creating the /shared/classes folder, otherwise it won't get picked up. Then reset webscripts at http://{server}/share/service/index to get the changes picked up.

Thanks,
Mike

michaelc
Champ on-the-rise
Champ on-the-rise
That helped a lot !!!
You rock.

  I must have done something the first time in an incorrect order as it did not work, but it is working now.