cancel
Showing results for 
Search instead for 
Did you mean: 

VISTA PREVIA DE .doc y .xls [SOLVED]

jficheux
Confirmed Champ
Confirmed Champ
Hola a todos,

Tengo problemas a la hora de previsualizar documentos creados con el office. No hay problemas al ver .pdf, pero si .doc y .xls.
Instalé el open office, pero aun así no funciona. Mi entorno es linux.
Espero que podais ayudarme.
Un saludo,

JESI
31 REPLIES 31

cristinamr
World-Class Innovator
World-Class Innovator
Buenas.

Al arrancar alfresco ¿no te sale un error de jodconverter?

Comentame, porque si es así el problema proviene de la configuración del mismo en el alfresco-global.propeties

Te pego mi config por si te sirve de ayuda:

ooo.exe=C:/apps/alfresco/OpenOffice.org/program/soffice
jodconverter.officeHome=C:/apps/alfresco/OpenOffice.org
jodconverter.portNumbers=8101
ooo.enabled=false
jodconverter.enabled=true
img.root=C:/apps/alfresco/tomcat/temp
img.exe=C:/apps/alfresco/ImageMagick/bin/convert
swf.exe=C:/apps/alfresco/bin/pdf2swf

Un saludo.
--
VenziaIT: helping companies since 2005! Our ECM products: AQuA & Seidoc

jficheux
Confirmed Champ
Confirmed Champ
Hola!!

Mi fichero alfresco-global.properties está vacío, no tiene nada. En cambio, el fichero que tengo yo como de configuración es custom-repository.properties:

dir.root=/alfresco/alf_data2
dir.indexes=/alfresco/indices2/lucene_indexes
dir.indexes.backup=/alfresco/indices2/backup_lucene_indexes
dir.indexes.locks=/alfresco/indices2/alf_data/lucene_indexes/locks
img.root=/usr
swf.exe=/opt/swftools/bin/pdf2swf
ooo.exe=/usr/bin/soffice

Muchisimas gracias por la respuesta.
Un saludo,

JESI

cristinamr
World-Class Innovator
World-Class Innovator
¿Qué versión de alfresco usas?
--
VenziaIT: helping companies since 2005! Our ECM products: AQuA & Seidoc

jficheux
Confirmed Champ
Confirmed Champ
Uso la versión 3.4

cristinamr
World-Class Innovator
World-Class Innovator
Una pregunta, ¿por qué tienes un custom-repository.properties en vez de un alfresco-global.properties? 

Independientemente de la respuesta (que es simple curiosidad), lo que debes hacer es configurar el jodconverter en tu repository.properties, en ese caso, prueba a ejecutarlo con lo siguiente:

jodconverter.officeHome=ruta donde tengas instalado openoffice
jodconverter.portNumbers=8101
ooo.enabled=false
jodconverter.enabled=true

Recuerda que debes tener instalado el openoffice, sino no funcionará. Si lo necesitas ojea la configuración que te pegué antes, que es como yo lo tengo configurado.

Prueba a ver.
--
VenziaIT: helping companies since 2005! Our ECM products: AQuA & Seidoc

jficheux
Confirmed Champ
Confirmed Champ
La verdad que no se porque no tengo un global.properties, soy nueva en Alfresco…..

Si la ruta donde tengo instalado el office es: "ooo.exe=/usr/bin/soffice", ¿tendría que poner esto?:

jodconverter.officeHome=/usr/bin/soffice
jodconverter.portNumbers=8101
ooo.enabled=false
jodconverter.enabled=true


Muchisimas gracias por las respuestas.
Un saludo,

JESI

jficheux
Confirmed Champ
Confirmed Champ
He puesto la configuración que te he dicho antes y sigue sin funcionar.
No me da error, pero me pone:

"No se puede mostrar el documento en vista previa.
Pulse aquí para descargarlo."

En cambio .txt y .pdf los veo sin problemas.

Muchas gracias.
Saludos

cristinamr
World-Class Innovator
World-Class Innovator
Necesito que hagas una prueba: Para tu alfresco, borra el alfresco.log, arranca de nuevo el alfresco e intenta previsualizar un documento que te falle y por último pásame ese log a ver si consigo ver qué tiene raro. También pasame el repository.properties.
--
VenziaIT: helping companies since 2005! Our ECM products: AQuA & Seidoc

jficheux
Confirmed Champ
Confirmed Champ
Hola,

Acabo de hacer lo que me has dicho.
Aquí te paso el custom-repository.properties:

# Sample custom content and index data location
#
dir.root=/alfresco/alf_data2
dir.indexes=/alfresco/indices2/lucene_indexes
dir.indexes.backup=/alfresco/indices2/backup_lucene_indexes
dir.indexes.locks=/alfresco/indices2/alf_data/lucene_indexes/locks
img.root=/usr
swf.exe=/opt/swftools/bin/pdf2swf
ooo.exe=/usr/bin/soffice
jodconverter.officeHome=/usr/lib/openoffice
jodconverter.portNumbers=8101
ooo.enabled=false
jodconverter.enabled=true



El alfresco.log:

13:22:12,803 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework
13:22:53,303 WARN  [org.alfresco.repo.management.subsystems.LegacyConfigPostProcessor] Legacy configuration detected: adding classpath:alfresco/extension/custom-repository.properties to global-properties definition
13:22:53,428 WARN  [org.alfresco.repo.management.subsystems.LegacyConfigPostProcessor] Legacy configuration detected: adding classpath:alfresco/extension/custom-hibernate-dialect.properties to global-properties definition
13:22:53,620 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
13:22:53,624 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
13:22:53,625 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [/opt/jboss-4.2.3.GA/server/default/tmp/deploy/tmp3549262395825321642alfresco-exp.war/WEB-INF/classes/alfr...]
13:22:53,625 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [/opt/jboss-4.2.3.GA/server/default/tmp/deploy/tmp3549262395825321642alfresco-exp.war/WEB-INF/classes/alfr...]
13:22:53,625 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/extension/custom-repository.properties]
13:22:53,626 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/extension/custom-hibernate-dialect.properties]
13:22:53,852 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:22:54,169 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
13:24:13,557 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor Repository Template Processor for extension ftl
13:24:13,578 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor Repository Script Processor for extension js
13:24:34,205 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.alfresco.repo.domain.hibernate.dialect.AlfrescoOracle9Dialect.
13:24:34,277 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Bypassing schema update checks.
13:24:34,422 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
13:24:34,920 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:24:34,921 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
13:24:35,140 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
13:24:52,549 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'thirdparty' subsystem, ID: [thirdparty, default]
13:24:52,672 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:24:52,674 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
13:24:53,969 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'thirdparty' subsystem, ID: [thirdparty, default] complete
13:24:53,969 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'OOoDirect' subsystem, ID: [OOoDirect, default]
13:24:54,024 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:24:54,024 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
13:24:56,765 WARN  [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.
13:24:56,845 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'OOoDirect' subsystem, ID: [OOoDirect, default] complete
13:25:02,447 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /alfresco/alf_data2
13:25:02,911 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
13:25:04,471 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.
13:25:04,620 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 1 module(s).
13:25:04,885 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Starting module 'Oracle.for.Alfresco.3.4.a.Community' version 1.0.
13:25:05,125 WARN  [org.alfresco.repo.module.ModuleServiceImpl] A previously-installed module 'Oracle.for.Alfresco.3.2.Community' (version 1.0) is not present in your distribution.
13:25:05,144 WARN  [org.alfresco.repo.module.ModuleServiceImpl] A previously-installed module 'Oracle.for.Alfresco.3.3.Community' (version 1.0) is not present in your distribution.
13:25:05,148 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'fileServers' subsystem, ID: [fileServers, default]
13:25:05,183 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:25:05,183 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
13:25:07,602 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Authentication' subsystem, ID: [Authentication, managed, ldap1]
13:25:07,674 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:25:07,675 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
13:25:08,178 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Authentication' subsystem, ID: [Authentication, managed, ldap1] complete
13:25:08,184 WARN  [org.alfresco.fileserver] No enabled CIFS authenticator found in authentication chain. CIFS Server disabled
13:25:08,314 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'fileServers' subsystem, ID: [fileServers, default] complete
13:25:08,314 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'imap' subsystem, ID: [imap, default]
13:25:08,341 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:25:08,341 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
13:25:08,375 ERROR [org.alfresco.fileserver] [FTP] FTP Socket error : java.net.BindException: Permission denied
13:25:08,949 ERROR [org.alfresco.fileserver] java.net.BindException: Permission denied
java.net.BindException: Permission denied
   at java.net.PlainSocketImpl.socketBind(Native Method)
   at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
   at java.net.ServerSocket.bind(ServerSocket.java:319)
   at java.net.ServerSocket.<init>(ServerSocket.java:185)
   at java.net.ServerSocket.<init>(ServerSocket.java:141)
   at org.alfresco.jlan.ftp.FTPServer.run(FTPServer.java:555)
   at java.lang.Thread.run(Thread.java:619)
13:25:09,101 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'imap' subsystem, ID: [imap, default] complete
13:25:09,101 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'email' subsystem, ID: [email, outbound]
13:25:09,115 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:25:09,123 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
13:25:09,297 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'email' subsystem, ID: [email, outbound] complete
13:25:09,297 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'email' subsystem, ID: [email, inbound]
13:25:09,312 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:25:09,313 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
13:25:09,424 WARN  [org.springframework.beans.GenericTypeAwarePropertyDescriptor] Invalid JavaBean property 'blockedSenders' being accessed! Ambiguous write methods found next to actually used [public void org.alfresco.email.server.EmailServer.setBlockedSenders(java.util.List)]: [public void org.alfresco.email.server.EmailServer.setBlockedSenders(java.lang.String)]
13:25:09,425 WARN  [org.springframework.beans.GenericTypeAwarePropertyDescriptor] Invalid JavaBean property 'allowedSenders' being accessed! Ambiguous write methods found next to actually used [public void org.alfresco.email.server.EmailServer.setAllowedSenders(java.util.List)]: [public void org.alfresco.email.server.EmailServer.setAllowedSenders(java.lang.String)]
13:25:09,688 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'email' subsystem, ID: [email, inbound] complete
13:25:09,688 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'googledocs' subsystem, ID: [googledocs, default]
13:25:09,787 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:25:09,788 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
13:25:12,098 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'googledocs' subsystem, ID: [googledocs, default] complete
13:25:12,131 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] Enabled - calculate missing user usages …
13:25:12,181 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] Found 0 users to recalculate
13:25:12,181 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] … calculated missing usages for 0 users
13:25:12,181 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Synchronization' subsystem, ID: [Synchronization, default]
13:25:12,197 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:25:12,197 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
13:25:13,764 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Synchronization' subsystem, ID: [Synchronization, default] complete
13:25:15,597 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_20-b02; maximum heap size 973.250MB
13:25:15,754 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community): Current version 3.4.0 (c 3335) schema 4113 - Originally installed version 3.0.0 (Stable 1526) schema 1002
13:25:15,756 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Replication' subsystem, ID: [Replication, default]
13:25:15,771 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:25:15,771 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
13:25:15,782 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Replication' subsystem, ID: [Replication, default] complete
13:25:42,010 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 372 Web Scripts (+0 failed), 613 URLs
13:25:42,011 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 2 Package Description Documents (+0 failed)
13:25:42,011 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 1 Schema Description Documents (+0 failed)
13:25:42,030 INFO  [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Repository Web Script Container (in 23670.066ms)
13:25:42,091 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
13:25:42,154 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
13:26:10,930 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 264 Web Scripts (+0 failed), 274 URLs
13:26:10,933 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 8 Package Description Documents (+0 failed)
13:26:10,933 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 0 Schema Description Documents (+0 failed)
13:26:11,255 INFO  [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Spring Surf Container Web Script Container (in 9143.214ms)
13:26:11,324 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
13:26:11,454 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
13:26:12,216 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
13:26:12,225 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
13:26:12,693 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
13:26:12,702 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
13:27:51,354 INFO  [org.alfresco.repo.activities.post.lookup.PostLookup] Update: 1 activity posts
13:28:07,244 INFO  [org.alfresco.repo.activities.feed.FeedTaskProcessor] >>> Generated 44 activity feed entries for 1 activity posts (in 824 msecs)


Muchas gracias por todo.
Un saludo,

JESI
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.