Page 1 of 1

OpenKM 5.19 won't initialise properly

PostPosted:Thu Feb 02, 2012 2:38 pm
by rm5170
Hi guys

I'm running OpenKM 5.19. It is installed on a MS Windows 2003 server. When I initially install OpenKM and do all the necessary changes to OpenKM.cfg and run.bat, OpenKM runs without problems but with no document preview as expected. If I enter the installation path of ImageMagick convert utility and pdf2swf utility no problems. However, when I enter the installation path of openoffice 3.3 i.e. C:\\Program Files\\OpenOffice.org 3 and restart the server, it fails to initialise properly and 'hangs' at the following line:
Code: Select all
12:53:57,750 INFO  [OfficeProcess] started process; pid = 5096
I have checked and there is a process with pid 5096 for soffice.exe in Windows Task Manager.

Here is the output in a bit more detail:
Code: Select all
12:53:50,781 INFO  [RepositoryImpl] Starting repository...
12:53:50,812 INFO  [LocalFileSystem] LocalFileSystem initialized at path E:\openKM\jboss-4.2.3.GA\repository\repository
12:53:51,046 INFO  [LocalFileSystem] LocalFileSystem initialized at path E:\openKM\jboss-4.2.3.GA\repository\version
12:53:52,593 INFO  [ConnectionRecoveryManager] Database: Apache Derby / 10.5.3.0 - (802917)
12:53:52,593 INFO  [ConnectionRecoveryManager] Driver: Apache Derby Embedded JDBC Driver / 10.5.3.0 - (802917)
12:53:54,140 INFO  [RepositoryImpl] initializing workspace 'default'...
12:53:54,140 INFO  [LocalFileSystem] LocalFileSystem initialized at path E:\openKM\jboss-4.2.3.GA\repository\workspaces\default
12:53:54,328 INFO  [ConnectionRecoveryManager] Database: Apache Derby / 10.5.3.0 - (802917)
12:53:54,328 INFO  [ConnectionRecoveryManager] Driver: Apache Derby Embedded JDBC Driver / 10.5.3.0 - (802917)
12:53:55,421 INFO  [SearchIndex] Index initialized: E:\openKM\jboss-4.2.3.GA\repository/repository/index Version: 3
12:53:55,578 INFO  [SearchIndex] Index initialized: E:\openKM\jboss-4.2.3.GA\repository\workspaces\default/index Version: 3
12:53:55,593 INFO  [RepositoryImpl] workspace 'default' initialized
12:53:55,593 INFO  [RepositoryImpl] Repository started
12:53:55,609 INFO  [SimpleSecurityManager] init: using JAAS LoginModule configuration for OpenKM
12:53:55,609 INFO  [RepositoryImpl] SecurityManager = class org.apache.jackrabbit.core.security.simple.SimpleSecurityManager
12:53:56,828 INFO  [ProcessPoolOfficeManager] ProcessManager implementation is WindowsProcessManager
12:53:57,453 INFO  [OfficeProcess] starting process with acceptString 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1' and profileDir 'C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1\.jodconverter_socket_host-127.0.0.1_port-2002'
12:53:57,750 INFO  [OfficeProcess] started process; pid = 5096
Because of this, I can't access OpenKM from the browser because it can't connect.

Do you have any ideas on a solution please? Any help greatly appreciated, many thanks. :)

Russ

Re: OpenKM 5.19 won't initialise properly

PostPosted:Thu Feb 02, 2012 3:41 pm
by rm5170
Ok, so I've got past this problem now, it was a port clash.

When I checked netstat I got this:
Code: Select all
TCP    0.0.0.0:2002           0.0.0.0:0              LISTENING
TCP    0.0.0.0:2002           0.0.0.0:0              TIME_WAIT
Something else is using OpenKM's default port of 2002. So I changed it to another free port and it continues to initialise now.

The only thing still not working is the actual preview in OpenKM. It doesn't say 'Preview Unavailable' now but the Preview tabs contents is still blank.

Here is an excerpt from the startup output now:
Code: Select all
15:21:10,766 INFO  [RepositoryImpl] Starting repository...
15:21:10,781 INFO  [LocalFileSystem] LocalFileSystem initialized at path E:\openKM\jboss-4.2.3.GA\repository\repository
15:21:11,409 INFO  [LocalFileSystem] LocalFileSystem initialized at path E:\openKM\jboss-4.2.3.GA\repository\version
15:21:12,256 INFO  [ConnectionRecoveryManager] Database: Apache Derby / 10.5.3.0 - (802917)
15:21:12,256 INFO  [ConnectionRecoveryManager] Driver: Apache Derby Embedded JDBC Driver / 10.5.3.0 - (802917)
15:21:13,369 INFO  [RepositoryImpl] initializing workspace 'default'...
15:21:13,369 INFO  [LocalFileSystem] LocalFileSystem initialized at path E:\openKM\jboss-4.2.3.GA\repository\workspaces\default
15:21:13,385 INFO  [ConnectionRecoveryManager] Database: Apache Derby / 10.5.3.0 - (802917)
15:21:13,385 INFO  [ConnectionRecoveryManager] Driver: Apache Derby Embedded JDBC Driver / 10.5.3.0 - (802917)
15:21:14,059 INFO  [SearchIndex] Index initialized: E:\openKM\jboss-4.2.3.GA\repository/repository/index Version: 3
15:21:14,530 INFO  [SearchIndex] Index initialized: E:\openKM\jboss-4.2.3.GA\repository\workspaces\default/index Version: 3
15:21:14,530 INFO  [RepositoryImpl] workspace 'default' initialized
15:21:14,530 INFO  [RepositoryImpl] Repository started
15:21:14,545 INFO  [SimpleSecurityManager] init: using JAAS LoginModule configuration for OpenKM
15:21:14,561 INFO  [RepositoryImpl] SecurityManager = class org.apache.jackrabbit.core.security.simple.SimpleSecurityManager
15:21:15,157 INFO  [ProcessPoolOfficeManager] ProcessManager implementation is WindowsProcessManager
15:21:15,486 INFO  [OfficeProcess] starting process with acceptString 'socket,host=127.0.0.1,port=2009,tcpNoDelay=1' and profileDir 'C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1\.jodconverter_socket_host-127.0.0.1_port-2009'
15:21:15,784 INFO  [OfficeProcess] started process; pid = 4984
15:21:17,133 INFO  [OfficeConnection] connected: 'socket,host=127.0.0.1,port=2009,tcpNoDelay=1'
15:21:17,258 WARN  [FileLoader] Supplied path does not exist. Unable to add plugins from there.
15:21:17,258 WARN  [ExecutionUtils] Unable to read script: E:\openKM\jboss-4.2.3.GA\start.bsh
15:21:17,258 WARN  [ExecutionUtils] Unable to read jar: E:\openKM\jboss-4.2.3.GA\start.jar
15:21:21,132 INFO  [WSDLFilePublisher] WSDL published to: file:/E:/openKM/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMNoteService5009937922951344365.wsdl
15:21:21,147 INFO  [WSDLFilePublisher] WSDL published to: file:/E:/openKM/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMWorkflowService5510867626592539270.wsdl
15:21:21,163 INFO  [WSDLFilePublisher] WSDL published to: file:/E:/openKM/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMPropertyGroupService9187527234108131467.wsdl
15:21:21,163 INFO  [WSDLFilePublisher] WSDL published to: file:/E:/openKM/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMFolderService4576969187589944749.wsdl
15:21:21,179 INFO  [WSDLFilePublisher] WSDL published to: file:/E:/openKM/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMNotificationService3796038635619430571.wsdl
15:21:21,179 INFO  [WSDLFilePublisher] WSDL published to: file:/E:/openKM/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMPropertyService5660618204961728075.wsdl
15:21:21,194 INFO  [WSDLFilePublisher] WSDL published to: file:/E:/openKM/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMAuthService2167643745460892252.wsdl
15:21:21,210 INFO  [WSDLFilePublisher] WSDL published to: file:/E:/openKM/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMMailService4697780074827504347.wsdl
15:21:21,210 INFO  [WSDLFilePublisher] WSDL published to: file:/E:/openKM/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMDocumentService1349868570549392837.wsdl
15:21:21,226 INFO  [WSDLFilePublisher] WSDL published to: file:/E:/openKM/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMSearchService3572090817548855192.wsdl
15:21:21,226 INFO  [WSDLFilePublisher] WSDL published to: file:/E:/openKM/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMTestService7806808589138721884.wsdl
15:21:21,226 INFO  [WSDLFilePublisher] WSDL published to: file:/E:/openKM/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMRepositoryService1444819130732323822.wsdl
15:21:21,242 INFO  [WSDLFilePublisher] WSDL published to: file:/E:/openKM/jboss-4.2.3.GA/server/default/data/wsdl/OpenKM.war/OKMBookmarkService2352957582416985407.wsdl
15:21:21,477 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
15:21:21,665 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
15:21:21,696 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-0.0.0.0-8009
15:21:21,712 INFO  [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)] Started in 51s:736ms
This warning line would seem to indicate that a file is not being loaded:
Code: Select all
15:21:17,258 WARN  [FileLoader] Supplied path does not exist. Unable to add plug
ins from there.
MS Word Document to PDF conversion using the toolbar button works fine.

Any ideas?

Thanks again.

Russ

Re: OpenKM 5.19 won't initialise properly

PostPosted:Fri Feb 03, 2012 11:05 am
by abin
Hello,

Could you please share your Configuration for following on windows OS

system.ocr = ???

system.ghostscript.ps2pdf= ???

system.swftools.pdf2swf = ???

system.imagemagick.convert= ???

Thanks

Abin

Re: OpenKM 5.19 won't initialise properly

PostPosted:Sun Feb 05, 2012 10:00 am
by jllort
From version 5.1 OpenKM.cfg only take effects firs time you starting jboss, others must change your parameters directly in administrator tab.

Ensure your system.swftools.pdf2swf and your system.openoffice.path is correct.

first try previewing a pdf ( only pds2swf is needed ) then try converting a .odt or .doc ( you need office right configured ).
Ensure you browser is able to reproduce flash ( macromedia flash must be installed or the panel will appearing empty to you ).