I'm running 5.4.2 Tomcat on FreeBSD 8.2 RELEASE, though I
have tried the same steps on CentOS 5.6, with absolutely the
same problems.
I can get previews of .pdf files, thanks to pdftohtml, but
no matter what I try, I can't get previews of OpenOffice
documents, namely .ods and .odt (the only ones I've tried).
The error in the web interface is:
Preview can not be generated for this document
Blob path: default
org.nuxeo.ecm.platform.preview.api.PreviewException:
Converter any2pdf is not available
the error in the console is:
17:13:27,826 ERROR [PreviewRestlet] could not build preview
for missing blob at default
org.nuxeo.ecm.platform.preview.api.PreviewException:
Converter any2pdf is not available
at
org.nuxeo.ecm.platform.preview.adapter.base.ConverterBasedHt
mlPreviewAdapter.getPreviewBlobs(ConverterBasedHtmlPreviewAd
apter.java:169)
...
I can't see any OpenOffice-specific errors in the server
startup, apart from:
17:14:57,898 ERROR [OSGiRuntimeService] Failed to notify
components on application started
java.lang.NullPointerException
at
java.util.Arrays$ArrayList.<init>(Arrays.java:3357)
at java.util.Arrays.asList(Arrays.java:3343)
at
org.artofsolving.jodconverter.util.PlatformUtils.findOfficeH
ome(PlatformUtils.java:108)
at
org.artofsolving.jodconverter.office.OfficeUtils.getDefaultO
fficeHome(OfficeUtils.java:85)
at
org.artofsolving.jodconverter.office.DefaultOfficeManagerCon
figuration.
<init>(DefaultOfficeManagerConfiguration.java:33)
at
org.nuxeo.ecm.platform.convert.ooomanager.OOoManagerComponen
t.startOOoManager(OOoManagerComponent.java:107)
at
org.nuxeo.ecm.platform.convert.ooomanager.OOoManagerComponen
t.applicationStarted(OOoManagerComponent.java:212)
at
org.nuxeo.runtime.model.impl.RegistrationInfoImpl.notifyAppl
icationStarted(RegistrationInfoImpl.java:321)
at
org.nuxeo.runtime.osgi.OSGiRuntimeService.notifyComponentsOn
Started(OSGiRuntimeService.java:458)
at
org.nuxeo.runtime.osgi.OSGiRuntimeService.fireApplicationSta
rted(OSGiRuntimeService.java:483)
at
org.nuxeo.runtime.osgi.OSGiRuntimeService.frameworkEvent(OSG
iRuntimeService.java:493)
I've set up the nuxeo.conf with jod defaults:
jod.connection.protocol=SOCKET
jod.max.tasks.per.process=200
jod.task.execution.timeout=120000
jod.task.queue.timeout=30000
jod.office.home=/usr/local/openoffice.org-3.3.0/openoffice.o
rg3/program
jod.jpipe.lib.path=/usr/local/openoffice.org-3.3.0/openoffic
e.org/ure/lib
#jod.template.profile.dir=
I've also tried with
jod.office.home=/usr/local/openoffice.org-3.3.0/openoffice.o
rg3, like in openofficectl
On FreeBSD, soffice/soffice.bin are at:
/usr/local/openoffice.org-3.3.0/openoffice.org3/program
and the ure libraries are at:
/usr/local/openoffice.org-3.3.0/openoffice.org/ure
I can successfully start the openoffice listener, both
manually with the soffice command, and with your provided
wrapper script, openofficectl, where I've changed the
location:
OOO_HOME=/usr/local/openoffice.org-3.3.0/openoffice.org3
I've also got these directories in my PATH environment
variable:
/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/us
r/local/bin:/root/bin:/usr/local/openoffice.org-3.3.0/openof
fice.org3/program:/usr/local/openoffice.org-3.3.0/openoffice
.org/ure/bin:/usr/local/openoffice.org-3.3.0/openoffice.org/
ure/lib
However, with all this, I'm still receiving the error above,
and cannot generate a preview. I'm sure this is just a silly
issue with the wrong path or other simple setting, but as I
mentioned, this is exactly the same problem I've experienced
on CentOS, a Linux distribution, so its not just a *BSD
thing.
Ironically, the preview worked like a dream in OpenBSD in
Nuxeo versions up to and including 5.3.0. Once I upgraded
there, I experienced the same problem again.
---
Mailing list: [email protected]
Forum: http://forum.nuxeo.org/f/1/