03-30-2012 01:13 PM
03-30-2012 03:54 PM
04-02-2012 10:03 AM
04-26-2012 01:48 PM
Share Tier web scripts cannot be run out of the content repository. Alfresco and Share are two completely separate web applications. Often they are run in two different containers or even two different physical nodes entirely.
You can, however, put repository tier web scripts in the file system. They go in $TOMCAT_HOME/webapps/alfresco/WEB-INF/classes/alfresco/extension/templates/webscripts.
It looks like you have your Share tier web scripts in $TOMCAT_HOME/shared. That's fine, but definitely not my preference. I prefer to put them in $TOMCAT_HOME/webapps/share/WEB-INF/classes/alfresco/web-extension. I only use $TOMCAT_HOME/shared for things that are server- or environment-specific (like file system or LDAP configuration). That way, I can pick up my Alfresco and Share WAR files and move them across servers or go from Dev to QA to Prod and each WAR has everything it needs and does not have to be tweaked because of the environment it happens to be deployed to.
If I haven't convinced you to not use $TOMCAT_HOME/shared, your repository tier web scripts could also go in shared under $TOMCAT_HOME/shared/classes/alfresco/extension.
With all of that said, you might want to seriously consider packaging your web scripts and other extensions as AMPs (one for the repository tier and one for the Share tier). Then you have a nice, repeatable, less error-prone way to deploy your customizations and extensions. Learn more here.
Jeff
04-26-2012 02:23 PM
04-27-2012 09:47 AM
04-27-2012 11:04 AM
04-27-2012 11:22 AM
08-10-2012 05:57 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.