• Openoffice not converting to PDF

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #12323  by odr4cir.cross
 
Hi guys,


I know this must be a recurring topic but I've been searching the forum (for days now) and none related topic helped me out so I'm writing this one to explain my own problem.
I've been struggling with setting up document preview, I've got somethings to work but I'm stuck with Openoffice not converting documents to pdf. Explanation of what happens below:

Specs:

OSX 10.6.4
iMac corei5
4Gb ram

jboss - 4.2.3.GA
OpenKM - 5.1.7
Openoffice 3.3
SWFTools 0.9.1
ImageMagick 6.7.2


What works in document preview:
- ImageMagick successfully converts images to pdf that then pdf2swf converts to swf and I can preview them correctly.
- Pdf2swf converts pdf's to swf but previously wasn't handling all pdf's correctly so I added "-s bitmap" and now it works flawlessly with any pdf I throw at it.
I know all this because I've done tests previewing images and pdf's while checking the /cache folder to see what gets converted and what doesn't.

Now the issue with Openoffice:

I think I got it configured properly because:
- When the server is launched it properly launches Openoffice process, when it shuts down also kills Openoffice process correctly
- The log below has no errors and shows Openoffice being started correctly (as far as I know)

Code: Select all
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /Users/research/jboss-4.2.3.GA/

  JAVA: /System/Library/Frameworks/JavaVM.framework/Home/bin/java

  JAVA_OPTS: -Dprogram.name=run.sh -Xms256m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=128m -Djava.awt.headless=true

  CLASSPATH: /Users/research/jboss-4.2.3.GA//bin/run.jar:/System/Library/Frameworks/JavaVM.framework/Home/lib/tools.jar

=========================================================================

15:57:15,932 INFO  [Server] Starting JBoss (MX MicroKernel)...
15:57:15,932 INFO  [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)
15:57:15,933 INFO  [Server] Home Dir: /Users/research/jboss-4.2.3.GA
15:57:15,933 INFO  [Server] Home URL: file:/Users/research/jboss-4.2.3.GA/
15:57:15,934 INFO  [Server] Patch URL: null
15:57:15,934 INFO  [Server] Server Name: default
15:57:15,934 INFO  [Server] Server Home Dir: /Users/research/jboss-4.2.3.GA/server/default
15:57:15,934 INFO  [Server] Server Home URL: file:/Users/research/jboss-4.2.3.GA/server/default/
15:57:15,934 INFO  [Server] Server Log Dir: /Users/research/jboss-4.2.3.GA/server/default/log
15:57:15,934 INFO  [Server] Server Temp Dir: /Users/research/jboss-4.2.3.GA/server/default/tmp
15:57:15,934 INFO  [Server] Root Deployment Filename: jboss-service.xml
15:57:16,112 INFO  [ServerInfo] Java version: 1.6.0_20,Apple Inc.
15:57:16,112 INFO  [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 16.3-b01-279,Apple Inc.
15:57:16,112 INFO  [ServerInfo] OS-System: Mac OS X 10.6.4,x86_64
15:57:16,364 INFO  [Server] Core system initialized
15:57:17,702 INFO  [WebService] Using RMI server codebase: http://iMac.local:8083/
15:57:17,704 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
15:57:19,782 INFO  [EJB3Deployer] Starting java:comp multiplexer
15:57:21,089 INFO  [NativeServerConfig] JBoss Web Services - Native
15:57:21,089 INFO  [NativeServerConfig] jbossws-3.0.1-native-2.0.4.GA (build=200803312044)
15:57:21,661 INFO  [Embedded] Catalina naming disabled
15:57:21,756 INFO  [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
15:57:21,791 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8081
15:57:21,791 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-0.0.0.0-8009
15:57:21,791 INFO  [Catalina] Initialization processed in 130 ms
15:57:21,791 INFO  [StandardService] Starting service jboss.web
15:57:21,792 INFO  [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
15:57:21,818 INFO  [Catalina] Server startup in 27 ms
15:57:21,881 INFO  [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
15:57:22,211 INFO  [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
15:57:22,310 INFO  [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
15:57:22,373 INFO  [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
15:57:22,766 INFO  [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
15:57:23,075 INFO  [MailService] Mail Service bound to java:/Mail
15:57:23,076 INFO  [STDOUT] DEBUG: JavaMail version 1.4ea
15:57:23,076 INFO  [STDOUT] DEBUG: java.io.FileNotFoundException: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/javamail.providers (No such file or directory)
15:57:23,077 INFO  [STDOUT] DEBUG: !anyLoaded
15:57:23,077 INFO  [STDOUT] DEBUG: not loading resource: /META-INF/javamail.providers
15:57:23,077 INFO  [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
15:57:23,077 INFO  [STDOUT] DEBUG: Tables of loaded providers
15:57:23,078 INFO  [STDOUT] DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
15:57:23,078 INFO  [STDOUT] DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
15:57:23,078 INFO  [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
15:57:23,078 INFO  [STDOUT] DEBUG: !anyLoaded
15:57:23,078 INFO  [STDOUT] DEBUG: not loading resource: /META-INF/javamail.address.map
15:57:23,078 INFO  [STDOUT] DEBUG: java.io.FileNotFoundException: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/javamail.address.map (No such file or directory)
15:57:23,079 INFO  [MailService] Mail Service bound to java:/mail/OpenKM
15:57:23,187 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
15:57:23,204 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
15:57:23,218 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
15:57:23,233 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
15:57:23,259 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
15:57:23,273 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
15:57:23,292 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
15:57:23,296 INFO  [QuartzResourceAdapter] start quartz!!!
15:57:23,350 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: main
15:57:23,363 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
15:57:23,364 INFO  [RAMJobStore] RAMJobStore initialized.
15:57:23,364 INFO  [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
15:57:23,364 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2
15:57:23,364 INFO  [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
15:57:23,683 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
15:57:23,838 INFO  [A] Bound to JNDI name: queue/A
15:57:23,839 INFO  [B] Bound to JNDI name: queue/B
15:57:23,840 INFO  [C] Bound to JNDI name: queue/C
15:57:23,840 INFO  [D] Bound to JNDI name: queue/D
15:57:23,841 INFO  [ex] Bound to JNDI name: queue/ex
15:57:23,852 INFO  [testTopic] Bound to JNDI name: topic/testTopic
15:57:23,853 INFO  [securedTopic] Bound to JNDI name: topic/securedTopic
15:57:23,854 INFO  [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
15:57:23,855 INFO  [testQueue] Bound to JNDI name: queue/testQueue
15:57:23,875 INFO  [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
15:57:23,895 INFO  [DLQ] Bound to JNDI name: queue/DLQ
15:57:23,955 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
15:57:24,237 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=OpenKMDS' to JNDI name 'java:OpenKMDS'
15:57:30,755 INFO  [DefaultEndpointRegistry] register: jboss.ws:context=OpenKM,endpoint=OKMNote
15:57:30,757 INFO  [DefaultEndpointRegistry] register: jboss.ws:context=OpenKM,endpoint=OKMWorkflow
15:57:30,757 INFO  [DefaultEndpointRegistry] register: jboss.ws:context=OpenKM,endpoint=OKMPropertyGroup
15:57:30,758 INFO  [DefaultEndpointRegistry] register: jboss.ws:context=OpenKM,endpoint=OKMFolder
15:57:30,759 INFO  [DefaultEndpointRegistry] register: jboss.ws:context=OpenKM,endpoint=OKMNotification
15:57:30,759 INFO  [DefaultEndpointRegistry] register: jboss.ws:context=OpenKM,endpoint=OKMProperty
15:57:30,760 INFO  [DefaultEndpointRegistry] register: jboss.ws:context=OpenKM,endpoint=OKMAuth
15:57:30,761 INFO  [DefaultEndpointRegistry] register: jboss.ws:context=OpenKM,endpoint=OKMMail
15:57:30,762 INFO  [DefaultEndpointRegistry] register: jboss.ws:context=OpenKM,endpoint=OKMDocument
15:57:30,762 INFO  [DefaultEndpointRegistry] register: jboss.ws:context=OpenKM,endpoint=OKMSearch
15:57:30,763 INFO  [DefaultEndpointRegistry] register: jboss.ws:context=OpenKM,endpoint=OKMTest
15:57:30,764 INFO  [DefaultEndpointRegistry] register: jboss.ws:context=OpenKM,endpoint=OKMRepository
15:57:30,764 INFO  [DefaultEndpointRegistry] register: jboss.ws:context=OpenKM,endpoint=OKMBookmark
15:57:30,807 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.RepositoryStartupServlet
15:57:30,807 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.WebdavServlet
15:57:30,807 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.WorkspaceServlet
15:57:30,807 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.DocumentServlet
15:57:30,807 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.AuthServlet
15:57:30,807 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.RepositoryServlet
15:57:30,807 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.FolderServlet
15:57:30,807 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.PropertyGroupServlet
15:57:30,808 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.DownloadServlet
15:57:30,808 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.ConverterServlet
15:57:30,808 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.DashboardServlet
15:57:30,808 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.GeneralServlet
15:57:30,808 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.NotifyServlet
15:57:30,808 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.WorkflowServlet
15:57:30,808 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.SearchServlet
15:57:30,808 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.FileUploadServlet
15:57:30,808 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.BookmarkServlet
15:57:30,808 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.MailServlet
15:57:30,808 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.ThesaurusServlet
15:57:30,808 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.PropertyServlet
15:57:30,808 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.ChatServlet
15:57:30,808 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.UserConfigServlet
15:57:30,808 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.NoteServlet
15:57:30,808 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.LanguageServlet
15:57:30,808 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.DatabaseMetadataServlet
15:57:30,808 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.KeyValueServlet
15:57:30,808 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.extension.servlet.ProposedSubscriptionServlet
15:57:30,809 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.extension.servlet.ProposedQueryServlet
15:57:30,809 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.extension.servlet.MessageServlet
15:57:30,809 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.extension.servlet.StampServlet
15:57:30,809 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.extension.servlet.StaplingServlet
15:57:30,809 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.extension.servlet.StaplingDownloadServlet
15:57:30,809 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.extension.servlet.ContactServlet
15:57:30,809 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.extension.servlet.ActivityLogServlet
15:57:30,809 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.extension.servlet.ForumServlet
15:57:30,809 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.TestServlet
15:57:30,809 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.frontend.ExecuteReportServlet
15:57:30,809 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.mobile.HandlerServlet
15:57:30,809 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.SyndicationServlet
15:57:30,809 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.StatusServlet
15:57:30,809 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.DownloadServlet
15:57:30,809 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.MimeIconServlet
15:57:30,809 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.ImageLogoServlet
15:57:30,809 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.TextToSpeechServlet
15:57:30,809 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.FlagIconServlet
15:57:30,809 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.WorkflowRegisterServlet
15:57:30,809 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.StatsGraphServlet
15:57:30,810 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.RepositoryBackupServlet
15:57:30,810 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.RepositoryCheckerServlet
15:57:30,810 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.WorkflowGraphServlet
15:57:30,810 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.RegisterWorkflowServlet
15:57:30,810 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.ReportServlet
15:57:30,810 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.CronTabServlet
15:57:30,810 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.BenchmarkServlet
15:57:30,810 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.LogCatServlet
15:57:30,810 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.RepositoryViewServlet
15:57:30,810 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.DatabaseQueryServlet
15:57:30,810 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.AuthServlet
15:57:30,810 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.PropertyGroupsServlet
15:57:30,810 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.ActivityLogServlet
15:57:30,810 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.LoggedUsersServlet
15:57:30,810 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.MailAccountServlet
15:57:30,810 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.TwitterAccountServlet
15:57:30,810 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.WorkflowServlet
15:57:30,810 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.MimeTypeServlet
15:57:30,810 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.ProfileServlet
15:57:30,810 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.UserConfigServlet
15:57:30,810 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.ActiveSessionsServlet
15:57:30,811 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.RepositorySearchServlet
15:57:30,811 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.InstallationResetServlet
15:57:30,811 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.CheckEmailServlet
15:57:30,811 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.LanguageServlet
15:57:30,811 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.ConfigServlet
15:57:30,811 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.StampServlet
15:57:30,811 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.DocumentFilterServlet
15:57:30,811 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.HibernateStatsServlet
15:57:30,811 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.admin.DataBrowserServlet
15:57:30,811 INFO  [DefaultWebAppDesciptorModifierImpl] Ignore servlet: com.openkm.servlet.TestServlet
15:57:30,835 INFO  [TomcatDeployer] deploy, ctxPath=/OpenKM, warUrl=.../tmp/deploy/tmp3297200080348022479OpenKM-exp.war/
15:57:34,587 INFO  [RepositoryImpl] Starting repository...
15:57:34,596 INFO  [LocalFileSystem] LocalFileSystem initialized at path /Users/research/jboss-4.2.3.GA/repository/repository
15:57:34,730 INFO  [LocalFileSystem] LocalFileSystem initialized at path /Users/research/jboss-4.2.3.GA/repository/version
15:57:35,617 INFO  [ConnectionRecoveryManager] Database: Apache Derby / 10.5.3.0 - (802917)
15:57:35,617 INFO  [ConnectionRecoveryManager] Driver: Apache Derby Embedded JDBC Driver / 10.5.3.0 - (802917)
15:57:36,155 INFO  [RepositoryImpl] initializing workspace 'default'...
15:57:36,155 INFO  [LocalFileSystem] LocalFileSystem initialized at path /Users/research/jboss-4.2.3.GA/repository/workspaces/default
15:57:36,180 INFO  [ConnectionRecoveryManager] Database: Apache Derby / 10.5.3.0 - (802917)
15:57:36,180 INFO  [ConnectionRecoveryManager] Driver: Apache Derby Embedded JDBC Driver / 10.5.3.0 - (802917)
15:57:36,970 INFO  [SearchIndex] Index initialized: /Users/research/jboss-4.2.3.GA/repository/repository/index Version: 3
15:57:37,123 INFO  [SearchIndex] Index initialized: /Users/research/jboss-4.2.3.GA/repository/workspaces/default/index Version: 3
15:57:37,123 INFO  [RepositoryImpl] workspace 'default' initialized
15:57:37,123 INFO  [RepositoryImpl] Repository started
15:57:37,130 INFO  [SimpleSecurityManager] init: using JAAS LoginModule configuration for OpenKM
15:57:37,134 INFO  [RepositoryImpl] SecurityManager = class org.apache.jackrabbit.core.security.simple.SimpleSecurityManager
15:57:37,359 INFO  [ProcessPoolOfficeManager] ProcessManager implementation is MacProcessManager
15:57:37,473 INFO  [OfficeProcess] starting process with acceptString 'socket,host=127.0.0.1,port=8100,tcpNoDelay=1' and profileDir '/var/folders/Z4/Z4B8qUINH88N0q+RcxtsnE+++z6/-Tmp-/.jodconverter_socket_host-127.0.0.1_port-8100'
15:57:37,570 INFO  [OfficeProcess] started process; pid = 85972
15:57:42,248 INFO  [OfficeConnection] connected: 'socket,host=127.0.0.1,port=8100,tcpNoDelay=1'
15:57:42,344 WARN  [FileLoader] Supplied path does not exist. Unable to add plugins from there.
15:57:42,345 WARN  [ExecutionUtils] Unable to read script: /Users/research/jboss-4.2.3.GA/start.bsh
15:57:42,345 WARN  [ExecutionUtils] Unable to read jar: /Users/research/jboss-4.2.3.GA/start.jar
15:57:42,370 INFO  [SimpleWebdavServlet] resource-path-prefix = '/repository'
15:57:42,370 INFO  [SimpleWebdavServlet] WWW-Authenticate header = 'Basic realm="OpenKM Webdav Server"'
15:57:45,234 INFO  [WSDLFilePublisher] WSDL published to: file:/Users/research/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMNoteService2641649752016372164.wsdl
15:57:45,251 INFO  [WSDLFilePublisher] WSDL published to: file:/Users/research/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMWorkflowService7828914619165811229.wsdl
15:57:45,256 INFO  [WSDLFilePublisher] WSDL published to: file:/Users/research/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMPropertyGroupService8807066305853223252.wsdl
15:57:45,260 INFO  [WSDLFilePublisher] WSDL published to: file:/Users/research/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMFolderService4647075560994084162.wsdl
15:57:45,272 INFO  [WSDLFilePublisher] WSDL published to: file:/Users/research/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMNotificationService2816255613717599667.wsdl
15:57:45,275 INFO  [WSDLFilePublisher] WSDL published to: file:/Users/research/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMPropertyService2500818683077931358.wsdl
15:57:45,278 INFO  [WSDLFilePublisher] WSDL published to: file:/Users/research/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMAuthService1430253386903487055.wsdl
15:57:45,282 INFO  [WSDLFilePublisher] WSDL published to: file:/Users/research/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMMailService7043771087838936906.wsdl
15:57:45,289 INFO  [WSDLFilePublisher] WSDL published to: file:/Users/research/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMDocumentService4990241139809463146.wsdl
15:57:45,294 INFO  [WSDLFilePublisher] WSDL published to: file:/Users/research/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMSearchService846542906354186999.wsdl
15:57:45,296 INFO  [WSDLFilePublisher] WSDL published to: file:/Users/research/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMTestService1331296502514548523.wsdl
15:57:45,300 INFO  [WSDLFilePublisher] WSDL published to: file:/Users/research/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMRepositoryService291613356265407057.wsdl
15:57:45,302 INFO  [WSDLFilePublisher] WSDL published to: file:/Users/research/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMBookmarkService487842221459761353.wsdl
15:57:45,445 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
15:57:45,731 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8081
15:57:45,748 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-0.0.0.0-8009
15:57:45,760 INFO  [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)] Started in 29s:824ms
As you can see below it starts Openoffice with all the options ( headless, nologo ... etc)
ps output right after launching OpenKM:
Code: Select all
bash-3.2$ ps -ef | grep 1010
 1010 83060 83059   0   0:00.11 ttys000    0:00.14 bash
 1010 85958 83060   0   0:00.00 ttys000    0:00.01 /bin/sh /Users/research/jboss-4.2.3.GA/bin/run.sh -b 0.0.0.0
 1010 85969 85958   0   0:05.62 ttys000    0:40.56 /System/Library/Frameworks/JavaVM.framework/Home/bin/java -Dprogram.name=run.sh -Xms256m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=128m -Djava.awt.headless=true -Djava.endorsed.dirs=/Users/research/jboss-4.2.3.GA//lib/endorsed -classpath /Users/research/jboss-4.2.3.GA//bin/run.jar:/System/Library/Frameworks/JavaVM.framework/Home/lib/tools.jar org.jboss.Main -b 0.0.0.0
 1010 85972 85969   0   0:00.36 ttys000    0:01.11 /Applications/OpenOffice.org.app/Contents/MacOS/soffice.bin -accept=socket,host=127.0.0.1,port=8100;urp; -env:UserInstallation=file:///var/folders/Z4/Z4B8qUINH88N0q+RcxtsnE+++z6/-Tmp-/.jodconverter_socket_host-127.0.0.1_port-8100 -headless -nocrashreport -nodefault -nofirststartwizard -nolockcheck -nologo -norestore
 1010 86201 83060   0   0:00.00 ttys000    0:00.00 bash
So, one might say so far so good. Everything looks "normal", no reason for it not to work. So let me show what happens when I try to preview word doc.

1. I get the message Document URL not provided or invalid on the web UI.
2. This gets posted on the log
Code: Select all
15:57:45,760 INFO  [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)] Started in 29s:824ms
16:21:53,030 INFO  [OfficeConnection] disconnected: 'socket,host=127.0.0.1,port=8100,tcpNoDelay=1'
16:21:53,133 WARN  [PooledOfficeManager] connection lost unexpectedly; attempting restart
16:21:53,135 INFO  [ManagedOfficeProcess] process exited with code 134
16:21:53,161 ERROR [ConverterServlet] Error in application/msword to PDF conversion
com.openkm.core.ConversionException: Error in application/msword to PDF conversion
	at com.openkm.util.DocConverter.doc2pdf(DocConverter.java:316)
	at com.openkm.servlet.frontend.ConverterServlet.service(ConverterServlet.java:136)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
	at java.lang.Thread.run(Thread.java:637)
Caused by: com.openkm.core.ConversionException: Error converting document: task failed
	at com.openkm.util.DocConverter.convert(DocConverter.java:256)
	at com.openkm.util.DocConverter.doc2pdf(DocConverter.java:313)
	... 21 more
16:21:53,916 INFO  [OfficeProcess] starting process with acceptString 'socket,host=127.0.0.1,port=8100,tcpNoDelay=1' and profileDir '/var/folders/Z4/Z4B8qUINH88N0q+RcxtsnE+++z6/-Tmp-/.jodconverter_socket_host-127.0.0.1_port-8100'
16:21:54,027 INFO  [OfficeProcess] started process; pid = 86259
16:21:55,677 WARN  [ExecutionUtils] Abnormal program termination: 1
16:21:55,677 WARN  [ExecutionUtils] STDERR: Error: Couldn't open file '/Users/research/jboss-4.2.3.GA/cache/pdf/17dbf652-9c87-4258-b3c6-0a190f285860.pdf'

16:21:55,677 ERROR [ConverterServlet] /Users/research/jboss-4.2.3.GA/cache/swf/17dbf652-9c87-4258-b3c6-0a190f285860.swf (No such file or directory)
java.io.FileNotFoundException: /Users/research/jboss-4.2.3.GA/cache/swf/17dbf652-9c87-4258-b3c6-0a190f285860.swf (No such file or directory)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:106)
	at com.openkm.servlet.frontend.ConverterServlet.service(ConverterServlet.java:168)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
	at java.lang.Thread.run(Thread.java:637)
16:21:55,737 ERROR [[ConverterServlet]] Servlet.service() for servlet ConverterServlet threw exception
com.openkm.frontend.client.OKMException: /Users/research/jboss-4.2.3.GA/cache/swf/17dbf652-9c87-4258-b3c6-0a190f285860.swf (No such file or directory)
	at com.openkm.servlet.frontend.ConverterServlet.service(ConverterServlet.java:194)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
	at java.lang.Thread.run(Thread.java:637)
16:21:58,393 INFO  [OfficeConnection] connected: 'socket,host=127.0.0.1,port=8100,tcpNoDelay=1'
3. So to my understanding it disconnects/kills/shuts down (whatever you wanna call it) the current Openoffice process but it calls another one back up.

Checking the ps output again we can see:
Code: Select all
bash-3.2$ ps -ef | grep 1010
 1010 83060 83059   0   0:00.11 ttys000    0:00.14 bash
 1010 85958 83060   0   0:00.00 ttys000    0:00.01 /bin/sh /Users/research/jboss-4.2.3.GA/bin/run.sh -b 0.0.0.0
 1010 85969 85958   0   0:07.03 ttys000    0:48.03 /System/Library/Frameworks/JavaVM.framework/Home/bin/java -Dprogram.name=run.sh -Xms256m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=128m -Djava.awt.headless=true -Djava.endorsed.dirs=/Users/research/jboss-4.2.3.GA//lib/endorsed -classpath /Users/research/jboss-4.2.3.GA//bin/run.jar:/System/Library/Frameworks/JavaVM.framework/Home/lib/tools.jar org.jboss.Main -b 0.0.0.0
 1010 86259 85969   0   0:00.32 ttys000    0:01.06 /Applications/OpenOffice.org.app/Contents/MacOS/soffice.bin -accept=socket,host=127.0.0.1,port=8100;urp; -env:UserInstallation=file:///var/folders/Z4/Z4B8qUINH88N0q+RcxtsnE+++z6/-Tmp-/.jodconverter_socket_host-127.0.0.1_port-8100 -headless -nocrashreport -nodefault -nofirststartwizard -nolockcheck -nologo -norestore
 1010 86309 83060   0   0:00.00 ttys000    0:00.00 bash
Note that the first Office process with pid 85972 is gone and a new one with pid 86259 is up.

For every office document I try to preview this happens, no preview up and a new thread of openoffice up while previous gone by disconnect. No pdf file is ever writen on /cache/pdf (nor /cache/swf for that matter).

If you have any idea how to help me I'd be glad you shared it with me, I'm up to share any more information you need to help me out or conduct any tests needed.

Thank you for your attention. :)
 #12353  by jllort
 
I suggest nightly build update at integration.openkm.com version 5.1.X to know if it solves something ( some openoffice problems are there solved ).

Tell us if it solves something, please.
 #12373  by jllort
 
Yes I suggest this build night for production, really is version 5.1.7 with patches that will be the future 5.1.8 stable ( really we've not added any feature there we're only solving bugs ). And yes, you could try with other libreoffice / openoffice version, but this could be too a memory problem or other kind of configuration problem.

first I suggest upgrade to nightly build, and if error persist then consider take a look on google if someone has similar problem on soffice / mac service ( not looking for openkm issue , look for this combination )
 #12381  by odr4cir.cross
 
Thank you jllort, I've been analyzing a bit further and I'm inclined to the memory issue, in this case lack of it to run the Openoffice process (not 100% sure about it yet though). Just to be safe how much ram would you recommend for an OpenKM installation running the docs preview and thesaurus?

I'll report back when I get the error fixed to share the information with you about what was causing it.
 #12394  by jllort
 
At least we suggest 2GB ram, one for OS and other for jboss. But if you can the best scenario is getting 2GB to jboss and other 2 for OS. Next OpenKM version will be available under tomcat, that will make running with low resources, jboss need so much.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.