cancel
Showing results for 
Search instead for 
Did you mean: 

lfresco-global.properties vs repository.properties

jjscampos
Champ in-the-making
Champ in-the-making
I did a manual installation of alfresco on webserver already with tomcat6 and mysql.
I already have access alfresco and share and perform basic operation with both.

What is the diference between the conf file alfresco-global.properties (/usr/local/tomcat6/shared/classes/alfresco-global.
properties) and repository.properties (/usr/local/tomcat6/webapps/alfresco/WEB-INF/classes/alfresco/repository.properties).
As much as I could test the configurations worked on repository.properties and nothing been logged if alfresco-global.properties deleted.
4 REPLIES 4

mrogers
Star Contributor
Star Contributor
You should think of everything in the WAR file as read only.  Most importantly that will allow you to replace everything during an upgrade or a restore.   However its also a good idea to keep "your" files separate from "alfresco's" files.

The "repository.properties" file can be thought of as the "default values", and since it's is within the war file that is read-only.  

The home for your property values is alfresco-global.properties.

jjscampos
Champ in-the-making
Champ in-the-making
So alfresco-global.properties will always override existent entries on repository.properties.

OK.
Thanks.

mrogers
Star Contributor
Star Contributor

jjscampos
Champ in-the-making
Champ in-the-making
Sorry again, but problebly I'm doing something wrong.

I override the follow entries on alfresco-global.properties

# External locations
#————-
ooo.exe=soffice
ooo.enabled=false
ooo.user=${dir.root}/oouser

#jodconverter.officeHome=./OpenOffice.org
#jodconverter.portNumbers=8101
#jodconverter.enabled=true

# ImageMagick
img.root=/usr
#img.dyn=${img.root}/lib
#img.exe=${img.root}/bin/convert

# pdf2swf
swf.exe=/usr/local/bin/pdf2swf
This should override the ones on repository.properties as documentation sugest.
But I found this on the log file [catalina.out], witch concern to imagemagick and swftools

Jun 8, 2011 1:34:21 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor alfresco.xml
Jun 8, 2011 1:34:25 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
13:34:32,685  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
13:34:32,719  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
13:34:32,738  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [/usr/local/tomcat6/webapps/alfresco/WEB-INF/classes/alfresco/module/tests/alfresco-global.properties]
13:34:32,741  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [/usr/local/tomcat6/webapps/alfresco/WEB-INF/classes/alfresco/module/test/alfresco-global.properties]
13:34:32,827  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:34:32,916  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
13:34:32,959  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
13:34:50,603  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered template processor Repository Template Processor for extension ftl
13:34:50,605  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered script processor Repository Script Processor for extension js
13:34:56,163  INFO  [domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
13:34:56,602  INFO  [domain.schema.SchemaBootstrap] No changes were made to the schema.
13:34:56,698  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
13:34:56,752  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
13:34:56,752  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:34:56,753  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
13:34:56,771  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
13:34:58,919  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'thirdparty' subsystem, ID: [thirdparty, default]
13:34:58,954  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
13:34:58,955  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:34:58,955  INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
13:34:59,000  ERROR [content.transform.RuntimeExecutableContentTransformerWorker] Failed to start a runtime executable content transformer:
Execution result:
   os:         Linux
   command:    [./bin/pdf2swf, -V]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "./bin/pdf2swf": java.io.IOException: error=2, No such file or directory
13:34:59,079  ERROR [transform.magick.AbstractImageMagickContentTransformerWorker] ImageMagickContentTransformerWorker not available: 05080000 Failed to perform ImageMagick transformation:
Execution result:
   os:         Linux
   command:    [./ImageMagick/bin/convert, /usr/local/tomcat6/temp/Alfresco/ImageMagickContentTransformerWorker_init_source_6181334241741611562.gif[0], /usr/local/tomcat6/temp/Alfresco/ImageMagickContentTransformerWorker_init_target_2123258723303483602.png]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "./ImageMagick/bin/convert": java.io.IOException: error=2, No such file or directory
13:34:59,083  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'thirdparty' subsystem, ID: [thirdparty, default] complete


But this specific configuration works as expected if I change the tools paths on the repository.properties file.
Can you help me understand what I'm doing wrong?
Is the alfresco-global.properties in the right location? I assume so.
It's a matter of permissons? the file permission is 644. Owned by root like all others

Thanks in advance.
Getting started

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.