cancel
Showing results for 
Search instead for 
Did you mean: 

Help finding paths

lordzoster
Champ in-the-making
Champ in-the-making
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… Smiley Happy
7 REPLIES 7

kaynezhang
World-Class Innovator
World-Class Innovator
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)

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

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.

kaynezhang
World-Class Innovator
World-Class Innovator
If the folders didn't exist ,you can create them manually.

Thank you Kayne, actually I did so.
Why do those paths differ?

marco_altieri
Star Contributor
Star Contributor
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.

kaynezhang
World-Class Innovator
World-Class Innovator
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.

lordzoster
Champ in-the-making
Champ in-the-making
Thank you guys for the support.
I wish you a good time with your families for Christmas.
Cheers