Custom Component in 3.3g [Solved]
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2010 03:14 PM
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.
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.
Labels:
- Labels:
-
Archive
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2010 04:14 PM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2010 05:02 PM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2010 05:38 PM
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 ?
\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 ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2010 05:51 PM
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
Thanks,
Mike
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2010 06:27 PM
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.
You rock.
I must have done something the first time in an incorrect order as it did not work, but it is working now.
