cancel
Showing results for 
Search instead for 
Did you mean: 

Instalación desplegandolo desde tomcat

lateralus
Champ in-the-making
Champ in-the-making
Hola buenas, tengo un problema con la instalación de alfresco. La instalación que quiero hacer es la de desplegar simplemente el alfresco.war y share.war sobre un tomcat que ponga en mi equipo.
No consigo hacer por nada del mundo que funcione, necesito una de las típicas “guías para tontos” porque ya no se ni por donde meterle mano. Os comento los pasos que he seguido haber si encontráis el fallo, o si me he saltado alguno.
Primero decir que uso un  w2003 server, por si esto es necesario para algo.

1) Bien, instalo jdk1.6.0_11, creo su correspondiente variable de entorno.
2) Instalo MySQL.
3) Descomprimo apache-tomcat-6.0.18, en mi unidad C:, y creo su correspondiente variable de entorno.
4) Descargo alfresco-labs-war-3Stable.zip, descomprimo y meto el alfresco.war y share.war en “C:\apache-tomcat-6.0.18\webapps”.
5) Descargo alfresco-labs-sample-extension-3Stable.zip.
6) Creo dentro del tomcat la estructura, “C:\apache-tomcat-6.0.18\shared\classes”
7) Meto aquí dentro el contenido de alfresco-labs-war-3Stable.zip. Aparte creo dentro de C:\apache-tomcat-6.0.18\shared\classes, las carpetas  messages y web-extension.
😎 Abro C:\apache-tomcat-6.0.18\conf\catalina.properties file.
Cambio el valor de shared.loader= por el siguiente:
shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar

Y a partir de ahora son todo dudas….
¿Qué hago para configurar la base de datos ? se me ocurrio copiar la carpeta de un instalación completa de alfresco, “\extras\databases\mysql” y ponerla dentro de tomcat y crear las bbdd de alfresco con el db_setup.bat, y crear las crea, pero no se si es un despropósito  a la inteligencia o algo parecido.

Lanzo tomcat, despliega alfresco y share, pero al entrar en “localhost:8080/alfresco” sale la página de error. En “localhost:8080/share” llega a entrar, pero al innter logearte como admin./admin, da un error.

Necesito ayuda, como mencione anteriormente “guía para tontos” porque conozco alfresco desde hace una semana y estoy empezando desde cero.
31 REPLIES 31

lateralus
Champ in-the-making
Champ in-the-making
Nada, no hay ningun usuario alfresco, ni en esta ni en la de la instalación completa.
La entrada es a ya la vi.

pjcaracuel_2349
Confirmed Champ
Confirmed Champ
Pero el esquema de alfresco lo ves en la bbdd?

lateralus
Champ in-the-making
Champ in-the-making
Si, alfresco si aparece, pero porque lo cree como puse al principio, con el db_setup.bat que aparece en la instalacion completa, que te crea toda la bbdd. Incluso hice una backup otra vez de un esquema de alfresco recien instalado, pero ya te digo, en niguna aparece el usuario alfresco.

pjcaracuel_2349
Confirmed Champ
Confirmed Champ
Vale,

Pues con el usuario root create dicho usuario alfresco/alfresco y acontinuacion dale todos los permisos para dicho esquema.

Saludos

lateralus
Champ in-the-making
Champ in-the-making
Parece que vamos por buen camino, el log se a reducido considerablemente, aunque sigue sin funcionar.

12:49:41,938 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation:
Execution result:
   os:         Windows 2003
   command:    [./ImageMagick/bin/convert, C:\apache-tomcat-6.0.18\temp\Alfresco\ImageMagickContentTransformer_init_source_7348652782407098061.gif, C:\apache-tomcat-6.0.18\temp\Alfresco\ImageMagickContentTransformer_init_target_6083409317059089727.png]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "./ImageMagick/bin/convert": CreateProcess error=2, El sistema no puede hallar el archivo especificado
12:49:44,126 INFO  [org.alfresco.config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]
12:49:48,376 ERROR [org.alfresco.repo.content.transform.RuntimeExecutableContentTransformer] Failed to start a runtime executable content transformer:
Execution result:
   os:         Windows 2003
   command:    [./bin/pdf2swf, -V]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "./bin/pdf2swf": CreateProcess error=2, El sistema no puede hallar el archivo especificado
12:49:55,110 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
12:49:56,595 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
12:49:57,954 WARN  [org.alfresco.repo.node.index.FullIndexRecoveryComponent] The indexes are not synchronized with the database.
12:49:58,048 WARN  [org.alfresco.repo.node.index.AVMFullIndexRecoveryComponent]     Index for avm store sitestore is out of date
12:49:58,501 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.
12:49:58,516 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: .\alf_data
12:49:58,548 ERROR [org.alfresco.repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: Indexes not found for 7 stores.
12:49:58,548 INFO  [org.alfresco.repo.admin.ConfigurationChecker] You may set 'index.recovery.mode=FULL' if you need to rebuild the indexes.
12:49:58,548 ERROR [org.alfresco.repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: System content not found in content store.
12:49:58,548 ERROR [org.alfresco.repo.admin.ConfigurationChecker] Ensure that the 'dir.root' property is pointing to the correct data location.
12:49:58,548 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:320)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:246)
   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:246)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:355)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
   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:4342)
   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:830)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
   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)
12:50:05,032 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework

pjcaracuel_2349
Confirmed Champ
Confirmed Champ
Si eso parece,

12:49:58,548 ERROR [org.alfresco.repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: System content not found in content store.
12:49:58,548 ERROR [org.alfresco.repo.admin.ConfigurationChecker] Ensure that the 'dir.root' property is pointing to the correct data location.

Comprueba que la ruta que has puesto en custom-repository.properties existe y esta bien.
#
# Sample custom content and index data location
#
dir.root=C:/Alfresco/alf_data
dir.indexes=C:/Alfresco/alf_data/lucene-indexes

Saludos

lateralus
Champ in-the-making
Champ in-the-making
Así lo tengo, el dir.indexes no venia, lo he tenido que poner ahora mismo;

# Sample custom content and index data location
#
dir.root=C:\apache-tomcat-6.0.18\bin\alf_data
dir.indexes=C:\apache-tomcat-6.0.18\bin\alf_data\lucene-indexes

pjcaracuel_2349
Confirmed Champ
Confirmed Champ
Si sigue sin funcionar porque no pones la barra del 7 en lugar de la que tienes puesta.?

lateralus
Champ in-the-making
Champ in-the-making
Sigue off…

13:19:01,235 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation:
Execution result:
   os:         Windows 2003
   command:    [./ImageMagick/bin/convert, C:\apache-tomcat-6.0.18\temp\Alfresco\ImageMagickContentTransformer_init_source_2679258390670567985.gif, C:\apache-tomcat-6.0.18\temp\Alfresco\ImageMagickContentTransformer_init_target_7061013798319769691.png]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "./ImageMagick/bin/convert": CreateProcess error=2, El sistema no puede hallar el archivo especificado
13:19:03,454 INFO  [org.alfresco.config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]
13:19:07,141 ERROR [org.alfresco.repo.content.transform.RuntimeExecutableContentTransformer] Failed to start a runtime executable content transformer:
Execution result:
   os:         Windows 2003
   command:    [./bin/pdf2swf, -V]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "./bin/pdf2swf": CreateProcess error=2, El sistema no puede hallar el archivo especificado
13:19:13,126 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
13:19:14,360 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
13:19:15,376 WARN  [org.alfresco.repo.node.index.FullIndexRecoveryComponent] The indexes are not synchronized with the database.
13:19:15,454 WARN  [org.alfresco.repo.node.index.AVMFullIndexRecoveryComponent]     Index for avm store sitestore is out of date
13:19:15,829 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.
13:19:15,829 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: .\alf_data
13:19:15,860 ERROR [org.alfresco.repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: Indexes not found for 7 stores.
13:19:15,860 INFO  [org.alfresco.repo.admin.ConfigurationChecker] You may set 'index.recovery.mode=FULL' if you need to rebuild the indexes.
13:19:15,860 ERROR [org.alfresco.repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: System content not found in content store.
13:19:15,876 ERROR [org.alfresco.repo.admin.ConfigurationChecker] Ensure that the 'dir.root' property is pointing to the correct data location.
13:19:15,876 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.

pjcaracuel_2349
Confirmed Champ
Confirmed Champ
oki, borra la carpeta de indices y vuelve a arrrancar inicializandolos, para ello en custom-repository.properties añade la siguiente linea:
#Indexacion
index.recovery.mode=FULL