Help finding paths

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2013 05:17 PM
Hallo
I'm developing custom content models in Alfresco Community 4.2e on Ubuntu 12.04 / Tomcat (Bitnami stack).
I'm following http://ecmarchitect.com/images/articles/alfresco-content/content-article-2ed.pdf (based upon a 4.0c) and http://wiki.alfresco.com/wiki/Data_Dictionary_Guide#Step_by_Step_Model_Definition (based upon an unknown version), but both of them are referencing non existing paths:
$TOMCAT_HOME/shared/classes/alfresco/extension (i found a similar $TOMCAT_HOME/shared/classes/extension instead) $TOMCAT_HOME/webapps/alfresco/WEB-INF/classes/alfresco/extension (nothing similar nearby)
there is no file core-services-context.xml is not in projects\repository\config\alfresco\ (windows path?), but I find a copy in $TOMCAT_HOME/webapps/alfresco/WEB-INF/classes/alfresco
Also the "System Path" page in 4.2 Community Docs (http://docs.alfresco.com/community/topic/com.alfresco.community.doc/reuse/conv-syspaths.html?path=0_...) refers to a non existing $TOMCAT_HOME/shared/classes/alfresco/extension
Bitnami doesn't mention any particular change of paths in its stack.
Is there any "path conversion" between the various versions?
Should I create the missing folders manually?
Thanks in advance
<b>UPDATE (SOLVED)</b>
All the file go under the <classpathdirectory>/alfresco folder, in particular /extension and /model within it have to be created (with adequate permissions)
Quite different from the paths in the documentation…
I'm developing custom content models in Alfresco Community 4.2e on Ubuntu 12.04 / Tomcat (Bitnami stack).
I'm following http://ecmarchitect.com/images/articles/alfresco-content/content-article-2ed.pdf (based upon a 4.0c) and http://wiki.alfresco.com/wiki/Data_Dictionary_Guide#Step_by_Step_Model_Definition (based upon an unknown version), but both of them are referencing non existing paths:
$TOMCAT_HOME/shared/classes/alfresco/extension (i found a similar $TOMCAT_HOME/shared/classes/extension instead) $TOMCAT_HOME/webapps/alfresco/WEB-INF/classes/alfresco/extension (nothing similar nearby)
there is no file core-services-context.xml is not in projects\repository\config\alfresco\ (windows path?), but I find a copy in $TOMCAT_HOME/webapps/alfresco/WEB-INF/classes/alfresco
Also the "System Path" page in 4.2 Community Docs (http://docs.alfresco.com/community/topic/com.alfresco.community.doc/reuse/conv-syspaths.html?path=0_...) refers to a non existing $TOMCAT_HOME/shared/classes/alfresco/extension
Bitnami doesn't mention any particular change of paths in its stack.
Is there any "path conversion" between the various versions?
Should I create the missing folders manually?
Thanks in advance
<b>UPDATE (SOLVED)</b>
All the file go under the <classpathdirectory>/alfresco folder, in particular /extension and /model within it have to be created (with adequate permissions)
Quite different from the paths in the documentation…

Labels:
- Labels:
-
Archive
7 REPLIES 7
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2013 10:26 PM
If you're using Tomcat,, the shared/classes directory is not enabled out of the box.
In Tomcat6/7, you need to add the following line to your conf/catalina.properties file (or modify it if it is already defined)
if there is no folder named shared under $TOMCAT_HOME then created ,and incursive create $TOMCAT_HOME/shared/classes,$TOMCAT_HOME/shared/lib,$TOMCAT_HOME/shared/classes/alfresco/extension
In Tomcat6/7, you need to add the following line to your conf/catalina.properties file (or modify it if it is already defined)
shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar
if there is no folder named shared under $TOMCAT_HOME then created ,and incursive create $TOMCAT_HOME/shared/classes,$TOMCAT_HOME/shared/lib,$TOMCAT_HOME/shared/classes/alfresco/extension

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2013 03:17 PM
Hi thank you for the reply.
Tomcat is properly configured.
The problem I'm facing is that the folders referenced in the tutorials and the wikis aren't there where tutorials point to.
Tomcat is properly configured.
The problem I'm facing is that the folders referenced in the tutorials and the wikis aren't there where tutorials point to.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2013 08:24 AM
If the folders didn't exist ,you can create them manually.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2013 11:21 AM
Thank you Kayne, actually I did so.
Why do those paths differ?
Why do those paths differ?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2013 11:42 AM
Hi,
the solution suggested by kaynezhang is correct.
As he pointed out, Tomcat by default does not use the extension folder, and you need to add it as described in the following page:
http://wiki.alfresco.com/wiki/Install_Tomcat6
I'm not saying that tomcat is not configured correctly: the default configuration is correct, but it doesn't have the shared/classes and shared/lib folders.
It is not always wrong to add folders into webapps/alfresco directly, but the shared folder is sometimes the best choice.
the solution suggested by kaynezhang is correct.
As he pointed out, Tomcat by default does not use the extension folder, and you need to add it as described in the following page:
http://wiki.alfresco.com/wiki/Install_Tomcat6
I'm not saying that tomcat is not configured correctly: the default configuration is correct, but it doesn't have the shared/classes and shared/lib folders.
It is not always wrong to add folders into webapps/alfresco directly, but the shared folder is sometimes the best choice.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2013 01:33 AM
For extensible purpose alfreso use two sets of configuration files, the out-of-box ones and our own extension configuration files which replace or override the default ones.
Our own extension configuration files will place under extension classpath, by placing our files under extension classpath we can override default configurations without modifying them.
Our own extension configuration files will place under extension classpath, by placing our files under extension classpath we can override default configurations without modifying them.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2013 01:53 AM
Thank you guys for the support.
I wish you a good time with your families for Christmas.
Cheers
I wish you a good time with your families for Christmas.
Cheers
