cancel
Showing results for 
Search instead for 
Did you mean: 

troubles adding custom aspects

aznk
Champ in-the-making
Champ in-the-making
Hi,
I tried adding some custom aspects by only modifying xml files (especially web-client-config-custom.xml) and it worked well. Then I added some other custom aspects by packaging java and xml (also web-client-config-custom.xml along with other model and context files) files into a jar. It also worked well.
But when I try to modify again the original web-client-config-custom.xml file, located in alfresco/extension, it seems like no modifications are taken into account in the web interface, is it because I included web-client-config-custom.xml in the jars files ?
2 REPLIES 2

aznk
Champ in-the-making
Champ in-the-making
I guess the web-client-config-custom.xml packaged within the jar files interfere with the web-client-config-custom.xml located in alfresco/extension.
So in other words is it better to package web-client-config-custom.xml within the jar files or modify the original one directly ? Knowing that the sdk already includes this file and needs it to build with the ant script build.xml…

aznk
Champ in-the-making
Champ in-the-making
I found the answer to my question here :
http://wiki.alfresco.com/wiki/Packaging_And_Deploying_Extensions
"Limitations

As the web-client-config-custom.xml and custom webclient.properties files are looked up via the classpath you can only have one version. If you have multiple JAR files each with a web-client-config-custom.xml the ClassLoader will load the first one it finds, which in turn, will result in unpredictable behaviour. Furthermore, you can not guarantee which file will be found first.

It's therefore recommended that you only have one extension package containing all your customisations.

This limitation will be resolved in a future release. "