AnsweredAssumed Answered

change to shared/classes/alfresco/web-extension/share-config-custom.xml does not do anything

Question asked by eltorio on Dec 4, 2013
Latest reply on Dec 5, 2013 by eltorio
Hi,
I'm new to Alfresco, I've installed Alfresco Community 4.2c on linux under Tomcat7
I changed tomcat/conf/catalina.properties for having shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar
When I change aspect visibility in ${catalina.base}/shared/classes/alfresco/web-extension/share-config-custom.xml with:

      <aspects>
         <!– Aspects that a user can see –>
         <visible>
        <!–   
            <aspect name="cm:generalclassifiable" />
            <aspect name="cm:complianceable" />
            <aspect name="cm:dublincore" />
            <aspect name="cm:effectivity" />
            <aspect name="cm:summarizable" />
            <aspect name="cm:versionable" />
            <aspect name="cm:templatable" />
            <aspect name="cm:emailed" />
–>
            <aspect name="emailserver:aliasable" />
            <aspect name="cm:taggable" />
            <aspect name="app:inlineeditable" />
            <aspect name="gd:googleEditable" />
            <aspect name="cm:geographic" />
            <aspect name="exif:exif" />
         </visible>

I still have all the aspect in the share UI, in fact my real problem is that I cannot add my custom test aspect <aspect name="custom:DocumentComptable" /> developped with the 2 ex sample files:
${catalina.base}/shared/classes/alfresco/extension/custom-model-context.xml
${catalina.base}/shared/classes/alfresco/extension/customModel.xml

for testing if my new xml files are read I made a intentional mistake in the xml doc, and it works I got an error on tomcat starting.
I also force adding ${catalina.base}/shared/classes in tomcat classpath by adding a setenv.sh,
my classpass reported by tomcat is


Using CATALINA_BASE:   /java/tomcat
Using CATALINA_HOME:   /java/tomcat
Using CATALINA_TMPDIR: /java/tomcat/temp
Using JRE_HOME:        /java/jdk1.7.0_11/jre
Using CLASSPATH:       /java/tomcat/shared/classes/:/java/tomcat/bin/bootstrap.jar:/java/tomcat/bin/tomcat-juli.jar


wich is correct for my installation

Thanks everyone for your help

Outcomes