Sorry,

name of the config key in Administration > Configuration is
"office.path" not "office.home".

Sebastian

2012/7/30 [email protected] <[email protected]>:
> There is a config variable in Administration > Configuration
> "office.home" in the OpenMeetings UI.
> Set that path to your value and you should be fine.
>
> Sebastian
>
> 2012/7/30 Dušan Stloukal <[email protected]>:
>> Hi guys,
>>
>> have you solved this problem? I encountred the same trouble on CentOS 6
>> 64-bit:
>>
>> # ls -la /usr/lib64/libreoffice/program/soffice.bin
>> -rwxr-xr-x 1 root root 37488 Jun 23 01:18
>> /usr/lib64/libreoffice/program/soffice.bin
>>
>> # java -Doffice.home=/usr/lib64/libreoffice/program -jar
>> /usr/local/lib/jodconverter-core-3.0-beta-4/lib/jodconverter-core-3.0-beta-4.jar
>> webmeeting.odt webmeeting.pdf
>> Exception in thread "main" java.lang.IllegalStateException: invalid
>> officeHome: it doesn't contain soffice.bin: /usr/lib64/libreoffice/program
>>         at
>> org.artofsolving.jodconverter.office.DefaultOfficeManagerConfiguration.buildOfficeManager(DefaultOfficeManagerConfiguration.java:167)
>>         at org.artofsolving.jodconverter.cli.Convert.main(Convert.java:111)
>>
>> I found the solution, look at the office.home pathe, but I don't know, where
>> is the mistake:
>>
>> # java -Doffice.home=/usr/lib64/libreoffice/ -jar
>> /usr/local/lib/jodconverter-core-3.0-beta-4/lib/jodconverter-core-3.0-beta-4.jar
>> webmeeting.odt webmeeting.pdf
>> Jul 30, 2012 9:44:37 AM
>> org.artofsolving.jodconverter.office.ProcessPoolOfficeManager <init>
>> INFO: ProcessManager implementation is LinuxProcessManager
>> Jul 30, 2012 9:44:37 AM org.artofsolving.jodconverter.office.OfficeProcess
>> start
>> INFO: starting process with acceptString
>> 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1' and profileDir
>> '/tmp/.jodconverter_socket_host-127.0.0.1_port-2002'
>> Jul 30, 2012 9:44:37 AM org.artofsolving.jodconverter.office.OfficeProcess
>> start
>> INFO: started process; pid = 32367
>> Jul 30, 2012 9:44:38 AM
>> org.artofsolving.jodconverter.office.ManagedOfficeProcess$6 attempt
>> WARNING: office process died with exit code 81; restarting it
>> Jul 30, 2012 9:44:38 AM org.artofsolving.jodconverter.office.OfficeProcess
>> start
>> INFO: starting process with acceptString
>> 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1' and profileDir
>> '/tmp/.jodconverter_socket_host-127.0.0.1_port-2002'
>> Jul 30, 2012 9:44:38 AM org.artofsolving.jodconverter.office.OfficeProcess
>> start
>> INFO: started process; pid = 32382
>> Jul 30, 2012 9:44:38 AM
>> org.artofsolving.jodconverter.office.OfficeConnection connect
>> INFO: connected: 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1'
>> Jul 30, 2012 9:44:39 AM
>> org.artofsolving.jodconverter.office.ProcessPoolOfficeManager stop
>> INFO: stopping
>> Jul 30, 2012 9:44:39 AM
>> org.artofsolving.jodconverter.office.OfficeConnection$1 disposing
>> INFO: disconnected: 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1'
>> Jul 30, 2012 9:44:39 AM
>> org.artofsolving.jodconverter.office.ManagedOfficeProcess
>> doEnsureProcessExited
>> INFO: process exited with code 0
>> Jul 30, 2012 9:44:39 AM
>> org.artofsolving.jodconverter.office.ProcessPoolOfficeManager stop
>> INFO: stopped
>>
>> D.
>>
>>
>>
>> On 07/07/2012 02:48 PM, George Kirkham wrote:
>>>
>>>
>>> Dimosthenis,
>>>
>>> I have not been able to successfully install Centos so I have no
>>> experience with OpenMeetings in Centos.  These days my preferred OS is 32
>>> bit Debian, but that is just a personal choice.
>>>
>>> What do you get on your OpenMeetings server if you run the following two
>>> commands as root  ?
>>>
>>> find / -name soffice.bin
>>>
>>> ls -al /usr/lib64/openoffice.org3/program
>>>
>>> Just wanted to check if you have Office installed OK and that the path you
>>> specified is actually correct
>>>
>>> I recommend setting the path for swftools to the path returned by the
>>> command
>>>
>>> find / -name pdf2swf
>>>
>>> Recently when trying to build swftools 9.x we had to remove -o and -L from
>>> the Make and Make.in files in the build directories, in order to get the
>>> build of swftools to complete.  (this was in Debian though).
>>>
>>> I ran the following steps and then got the below error message;
>>>
>>> ./configure >../swfconfigure.log 2>&1
>>> make >../debswfmake.log 2>&1
>>> make install >../debswfinst.log
>>>
>>> The "make install" generated the following error message and then stopped.
>>> rm -f /usr/local/share/swftools/swfs/default_viewer.swf -o -L
>>> /usr/local/share/swftools/swfs/default_viewer.swf
>>> rm: invalid option -- 'o'
>>> Try `rm --help' for more information.
>>> make[1]: *** [install] Error 1
>>> make[1]: Leaving directory `/usr/adm/swftools/swftools-0.9.2/swfs'
>>> make: *** [install] Error 2
>>>
>>> Using the below search line, I located the files swfs/Make and
>>> swfs/Make.in
>>> find . -type f -name "*.*" -print0 | xargs -0 -e grep -nH -e
>>> "default_viewer.swf"
>>>
>>> In these files were the lines;
>>>     rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L
>>> $(pkgdatadir)/swfs/default_viewer.swf
>>>     $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf
>>> $(pkgdatadir)/swfs/default_viewer.swf
>>>     rm -f $(pkgdatadir)/swfs/default_loader.swf -o -L
>>> $(pkgdatadir)/swfs/default_loader.swf
>>>     $(LN_S) $(pkgdatadir)/swfs/tessel_loader.swf
>>> $(pkgdatadir)/swfs/default_loader.swf
>>>
>>> Thanks,
>>>
>>> George Kirkham
>>>
>>> From: Dimosthenis Trichakis [mailto:[email protected]]
>>> Sent: Saturday, 7 July 2012 10:19 PM
>>> To: [email protected]
>>> Subject: Re: "invalid officeHome" error.
>>>
>>> George thank you for the reply,
>>>
>>> I have installed the openmeeting in debian without any problem but when I
>>> try to installed it in Centos5 I have problems with paths etc. If I leave
>>> empty the field "office.path" I'm getting the error "officeHome not set and
>>> could not be auto-detected" during file conversion.
>>>
>>> Also I have make a soft link to /usr/local/bin/ in pdf2swf as I found it
>>> in /usr/bin without result.
>>>
>>> I think on Monday I'm going to reinstall careful the project as I cannot
>>> understand what is wrong :-(
>>>
>>> Thanks again for all the replies,
>>>
>>> Dimosthenis
>>>
>>> On Sat, Jul 7, 2012 at 2:47 PM, George Kirkham <[email protected]
>>> <mailto:[email protected]>> wrote:
>>>
>>> Dimosthenis,
>>>
>>> From your log output, invalid officeHome: it doesn't contain soffice.bin:
>>> /usr/lib64/openoffice.org3/program”, I wonder what you have in the
>>> Configuration settings for “office.path” ?  I do not put anything in here as
>>> OpenMeetings can usually find the correct path. On my Ubuntu (32 bit)
>>> OpenMeetings server, I have libreoffice installed and the below “find” shows
>>> the path, not that I have this defined in OpenMeetings, since it finds the
>>> path itself.
>>>
>>> /# find / -name soffice.bin
>>>
>>> /usr/lib/libreoffice/program/soffice.bin
>>>
>>> root@chat:/#
>>>
>>> Does a “ls -al /usr/lib64/openoffice.org3/program/soffice.bin” show the
>>> file “soffice.bin” in this path?
>>>
>>> Just to check, if you do a find on pdf2swf, is it located in the path
>>> “/usr/local/bin/” ?
>>>
>>> # find / -name pdf2swf
>>>
>>> /usr/local/bin/pdf2swf
>>>
>>> Thanks,
>>>
>>> George Kirkham
>>>
>>> From: Dimosthenis Trichakis [mailto:[email protected]
>>> <mailto:[email protected]>]
>>> Sent: Saturday, 7 July 2012 9:16 PM
>>> To: [email protected]
>>> <mailto:[email protected]>
>>> Subject: Re: "invalid officeHome" error.
>>>
>>> I correct the directory for the converter and now I'm getting:
>>>
>>> Name: out
>>>
>>> Value:
>>>
>>> Name: exitValue
>>>
>>> Value: 1
>>>
>>> Name: command
>>>
>>> Value: [java, -Doffice.home=/usr/lib64/openoffice.org3/program/, -cp,
>>> /usr/lib/red5/webapps/openmeetings/jodconverter-core-3.0-beta-4/lib/json-20090211.jar,
>>> -cp,
>>> /usr/lib/red5/webapps/openmeetings/jodconverter-core-3.0-beta-4/lib/unoil-3.2.1.jar,
>>> -cp,
>>> /usr/lib/red5/webapps/openmeetings/jodconverter-core-3.0-beta-4/lib/juh-3.2.1.jar,
>>> -cp,
>>> /usr/lib/red5/webapps/openmeetings/jodconverter-core-3.0-beta-4/lib/commons-cli-1.1.jar,
>>> -cp,
>>> /usr/lib/red5/webapps/openmeetings/jodconverter-core-3.0-beta-4/lib/ridl-3.2.1.jar,
>>> -cp,
>>> /usr/lib/red5/webapps/openmeetings/jodconverter-core-3.0-beta-4/lib/commons-io-1.4.jar,
>>> -cp,
>>> /usr/lib/red5/webapps/openmeetings/jodconverter-core-3.0-beta-4/lib/jodconverter-core-3.0-beta-4.jar,
>>> -cp,
>>> /usr/lib/red5/webapps/openmeetings/jodconverter-core-3.0-beta-4/lib/jurt-3.2.1.jar,
>>> -jar,
>>> /usr/lib/red5/webapps/openmeetings/jodconverter-core-3.0-beta-4/lib/jodconverter-core-3.0-beta-4.jar,/usr/lib/red5/webapps/openmeetings/uploadtemp/files/adaefb3a343cd0a4bdc6e449aed7c0bf.ppt,
>>> /usr/lib/red5/webapps/openmeetings/upload/files/adaefb3a343cd0a4bdc6e449aed7c0bf/adaefb3a343cd0a4bdc6e449aed7c0bf.pdf]
>>>
>>> Name: error
>>>
>>> Value: Exception in thread "main" java.lang.IllegalStateException: invalid
>>> officeHome: it doesn't contain soffice.bin:
>>> /usr/lib64/openoffice.org3/program
>>>
>>> at
>>> org.artofsolving.jodconverter.office.DefaultOfficeManagerConfiguration.buildOfficeManager(DefaultOfficeManagerConfiguration.java:167)
>>>
>>> at org.artofsolving.jodconverter.cli.Convert.main(Convert.java:111)
>>>
>>> Name: process
>>>
>>> Value: doJodConvert
>>>
>>> Name: exitValue
>>>
>>> Value: 0
>>>
>>> Name: command
>>>
>>> Value:
>>>
>>> Name: completeName
>>>
>>> Value: adaefb3a343cd0a4bdc6e449aed7c0bf.ppt
>>>
>>> Name: error
>>>
>>> Value:
>>>
>>> Name: fileExplorerItemId
>>>
>>> Value: 14
>>>
>>> Name: process
>>>
>>> Value:
>>>
>>> Name: exitValue
>>>
>>> Value: 0
>>>
>>> Name: process
>>>
>>> Value: generateXMLDocument
>>>
>>> Name: out
>>>
>>> Value:
>>>
>>> Name: exitValue
>>>
>>> Value: 127
>>>
>>> Name: command
>>>
>>> Value: [/usr/lib/convert, -thumbnail, 80,
>>> /usr/lib/red5/webapps/openmeetings/upload/files/adaefb3a343cd0a4bdc6e449aed7c0bf/adaefb3a343cd0a4bdc6e449aed7c0bf.pdf,/usr/lib/red5/webapps/openmeetings/upload/files/adaefb3a343cd0a4bdc6e449aed7c0bf/_thumb_page-%04d.jpg]
>>>
>>> Name: error
>>>
>>> Value: /usr/lib/convert: error while loading shared libraries:
>>> libMagickCore.so.5: cannot open shared object file: No such file or
>>> directory
>>>
>>> Name: process
>>>
>>> Value: generateBatchThumbByWidth
>>>
>>> Name: out
>>>
>>> Value:
>>>
>>> Name: exitValue
>>>
>>> Value: 1
>>>
>>> Name: command
>>>
>>> Value: [/usr/bin/pdf2swf, -s, insertstop, -s, poly2bitmap, -i, -j, 85, -s,
>>> zoom=72,
>>> /usr/lib/red5/webapps/openmeetings/upload/files/adaefb3a343cd0a4bdc6e449aed7c0bf/adaefb3a343cd0a4bdc6e449aed7c0bf.pdf,/usr/lib/red5/webapps/openmeetings/upload/files/adaefb3a343cd0a4bdc6e449aed7c0bf/adaefb3a343cd0a4bdc6e449aed7c0bf.swf]
>>>
>>> Name: error
>>>
>>> Value: Error: Couldn't open file
>>> '/usr/lib/red5/webapps/openmeetings/upload/files/adaefb3a343cd0a4bdc6e449aed7c0bf/adaefb3a343cd0a4bdc6e449aed7c0bf.pdf'
>>>
>>> Name: process
>>>
>>> Value: generateSwf
>>>
>>> The library  libMagickCore.so.5 exist in the same directory:
>>>
>>> [root@comms lib]# find / -name libMagickCore.so.5
>>>
>>> /usr/lib/libMagickCore.so.5
>>>
>>> [root@comms ~]# find / -name convert
>>>
>>> /usr/lib/convert
>>>
>>> Any help please?
>>>
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.openmeetings.de
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> [email protected]



-- 
Sebastian Wagner
https://twitter.com/#!/dead_lock
http://www.openmeetings.de
http://www.webbase-design.de
http://www.wagner-sebastian.com
[email protected]

Reply via email to