cancel
Showing results for 
Search instead for 
Did you mean: 

Error ImageMagick

sifa
Champ in-the-making
Champ in-the-making
Hi,
I'm newbe in Alfresco. I have installed it but when I want to start Alfresco can't stop loading.

My alfresco.log file contains:

11:19:35,415 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework
11:19:43,520 INFO  [org.alfresco.config.SystemPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/hibernate-cfg.properties]
11:19:52,587 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation:
Execution result:
   os:         Linux
   command:    [./ImageMagick/bin/convert, /opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_source_6485174249057213179.gif[0], /opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_target_8704286849117120987.png]
   succeeded:  false
   exit code:  1
   out:
   err:        Cannot run program "./ImageMagick/bin/convert": java.io.IOException: error=2, No such file or directory
11:19:54,559 WARN  [org.springframework.beans.factory.support.DefaultListableBeanFactory] Encountered FactoryBean creation exception for bean 'SiteService' - couldn't check type! org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SiteService' defined in class path resource [alfresco/site-services-context.xml]: Cannot resolve reference to bean 'siteService' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'siteService' defined in class path resource [alfresco/site-services-context.xml]: Cannot resolve reference to bean 'activityService' while setting bean property 'activityService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activityService' defined in class path resource [alfresco/activities/activities-feed-context.xml]: Cannot resolve reference to bean 'postDaoService' while setting bean property 'postDaoService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'postDaoService' defined in class path resource [alfresco/activities/activities-feed-context.xml]: Cannot resolve reference to bean 'sqlMapClient' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in file [/opt/alfresco/tomcat/shared/classes/alfresco/extension/custom-activities-feed-context.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Error occurred.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/properties'.  Cause: java.lang.RuntimeException: Error loading properties.  Cause: java.io.IOException: Could not find resource alfresco/extension/custom-hibernate-dialect.properties
11:19:54,910 INFO  [org.alfresco.config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]
11:19:57,393 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed


I have install ImageMagic and setting path in custom-repository.properties (img.root=/usr/share/doc/ImageMagick-6.4.0)

any help?
Thank you.
13 REPLIES 13

dranakan
Champ on-the-rise
Champ on-the-rise
Hello,

Try in order :

1. Start MySql, can you access it ? can you create a table ? Is there a table "alfresco" ?
2. Check in alfresco the port number to access MySql, the name of user, password (check also there is no space after the user, password in the file).

Question :

You use Alfresco 3.1 (Entreprise). If you use Alfresco for tests, I suggest you to begin with Alfresco Community 3.2 (http://wiki.alfresco.com/wiki/Download_Community_Edition). Install it, and all will start easly (Under Windows, Linux I have not try yet). This Alfresco install and start a MySql instance.

Good luck

jayjayecl
Confirmed Champ
Confirmed Champ
I'll go for the lack of the mysql-connector lib

sifa
Champ in-the-making
Champ in-the-making
Hello,

Try in order :

1. Start MySql, can you access it ? can you create a table ? Is there a table "alfresco" ?
2. Check in alfresco the port number to access MySql, the name of user, password (check also there is no space after the user, password in the file).

Question :

You use Alfresco 3.1 (Entreprise). If you use Alfresco for tests, I suggest you to begin with Alfresco Community 3.2 (http://wiki.alfresco.com/wiki/Download_ … ty_Edition). Install it, and all will start easly (Under Windows, Linux I have not try yet). This Alfresco install and start a MySql instance.

Good luck

1. yes, I can access it, create table in alfresco database
2.
###############################
## Common Alfresco Properties #
###############################

#
# Sample custom content and index data location
#
dir.root=/opt/alfresco/alf_data

#
# Sample database connection properties
#
db.username=alfresco
db.password=alfresco
db.pool.initial=10
db.pool.max=100

#
# Sample external executable locations
#
#ooo.exe=/opt/openoffice/program/soffice
#ooo.user=${dir.root}/oouser
img.root=/usr
#swf.exe=/srv/alfresco/bin/pdf2swf

#
# Sample index tracking frequency
#
#index.tracking.cronExpression=0/5 * * * * ?

#
# Property to control whether schema updates are performed automatically.
# Updates must be enabled during upgrades as, apart from the static upgrade scripts,
# there are also auto-generated update scripts that will need to be executed.  After
# upgrading to a new version, this can be disabled.
#
#db.schema.update=true

#
# Derby connection
#
#db.driver=org.apache.derby.jdbc.EmbeddedDriver
#db.url=jdbc:derby:alf_data/derby_data/alfresco;create=true

#
# HSQL connection
#
#db.driver=org.hsqldb.jdbcDriver
#db.url=jdbc:hsqldb:file:alf_data/hsql_data/alfresco;ifexists=true;shutdown=true;

#
# MySQL connection (This is default and requires mysql-connector-java-5.0.3-bin.jar, which ships with the Alfresco server)
#
index.recovery.mode=FULL

#
# PostgreSQL connection (requires postgresql-8.2-504.jdbc3.jar or equivalent)
#
#db.driver=org.postgresql.Driver
#db.url=jdbc:postgresql://localhost:5432/alfresco

first time, I'm using mysql without xampp (running mysql in terminal) but now when I'm using mysql in xampp (phpmyadmin) alfresco can not connect to mysql

help me please….

dranakan
Champ on-the-rise
Champ on-the-rise
Add this :

db.driver=org.gjt.mm.mysql.Driver
db.url=jdbc:mysql://localhost:3306/alfresco

Perhaps you have to change the port…. check….