cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco on Windows 2003 and Tomcat

rkoenen
Champ in-the-making
Champ in-the-making
Hey,

Since a couple of days I'm trying to get Alfresco up and running on an Windows 2003 Server together with Tomcat 6.0.16 and mySQL 5.0.27. BTW, it is Alfresco 2.9.0B. Due some reasons I have to use the .war file and having the following errors:

01:41:11,141 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation:
Execution result:
   os:         Windows 2003
   command:    imconvert "C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp\Alfresco\ImageMagickContentTransformer_init_source_58555.gif"  "C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp\Alfresco\ImageMagickContentTransformer_init_target_58556.png"
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "imconvert": CreateProcess error=2, The system cannot find the file specified
01:41:17,059 WARN  [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
01:41:26,974 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
01:41:29,427 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp\Alfresco\AlfrescoSchemaUpdate-org.hibernate.dialect.MySQLInnoDBDialect-58557.sql (Generated).
01:41:29,507 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] All executed statements written to file C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp\Alfresco\AlfrescoSchemaUpdate-All_Statements-58558.sql.
01:41:35,295 WARN  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path './alf_data'.  'dir.root' should be overridden to point to a specific folder.
01:41:35,295 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: .\alf_data
01:41:35,386 ERROR [org.alfresco.repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: Indexes not found for 1 stores.
01:41:35,386 INFO  [org.alfresco.repo.admin.ConfigurationChecker] You may set 'index.recovery.mode=FULL' if you need to rebuild the indexes.
01:41:35,386 ERROR [org.alfresco.repo.admin.ConfigurationChecker] Ensure that the 'dir.root' property is pointing to the correct data location.
01:41:35,396 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: Ensure that the 'dir.root' property is pointing to the correct data location.
   at org.alfresco.repo.admin.ConfigurationChecker.check(ConfigurationChecker.java:312)
   at org.alfresco.repo.admin.ConfigurationChecker.access$000(ConfigurationChecker.java:72)
   at org.alfresco.repo.admin.ConfigurationChecker$1.execute(ConfigurationChecker.java:178)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:236)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:185)
   at org.alfresco.repo.admin.ConfigurationChecker.onBootstrap(ConfigurationChecker.java:182)
   at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)
   at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
   at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:241)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:349)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
   at org.apache.catalina.core.StandardService.start(StandardService.java:516)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

What do I need to do to get it up and running??
Many thanks

Ruediger
3 REPLIES 3

pmonks
Star Contributor
Star Contributor
As mentioned in the error message, it's extremely important that you set the "dir.root" property to an absolute path as soon as possible.  By default this property is defined in the configuration file ${TOMCAT_HOME}/shared/classes/alfresco/extension/custom-repository.properties.

Now the CONTENT INTEGRITY ERROR implies one of two things:
  1. Your filesystem directory (the directory pointed to by the "dir.root" property) and the Alfresco database are out of sync.  Unfortunately there's no easy way to recover from this situation except to restore from backup or wipe your repository and start again.  Note that if "dir.root" is set to a relative path this is virtually guaranteed to happen eventually (hence my recommendation to set it to an absolute path as soon as possible).

  2. The Lucene indexes are out of sync and need to be rebuilt - as mentioned in the error message you can set the "index.recovery.mode" property to the value "FULL" to force Alfresco to rebuild the indexes from scratch the next time it starts up.
I would try #2 first, and if that doesn't resolve the issue I think you'll have to wipe your repository and start again (or restore from a recent backup, if you've been taking them).

Cheers,
Peter

rkoenen
Champ in-the-making
Champ in-the-making
Hey Pmonks,

Sorry for the late reply, but I had to stay in hospital the last days.
Many thanks for your hints and I tried them both as well as a new installation, but the error messages are still the same. Anything else what I can try to get it up and running?
BTW, was the syntax I tried for the path right ( D:\Data )?

Many thanks and best regards

Ruediger

peterh_nl
Champ in-the-making
Champ in-the-making
Maybe a silly response but couldn't your problem be as simple as that Alfresco can't find the file imconvert.exe in the path of your new installation??
This file is usually in the Alfresco\bin-dir together with the netbios.dlls needed for cifs. You could/should copy it to your %windir% for the system to find it ..
Maybe this helps.
Regards Peter