Forum


Replies: 9   Views: 13371
Javaldx failed when trying to run openoffice in headless mode
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by dev@kizeo.com  · 09-04-2013 - 15:12

I want to use the conversion plugin to convert into PDF.

I tried to follow the tutorial but I can not run OpenOffice in headless mode.
I use the compiled version of OpenOffice bundled with PHPDOCX 3.2.

I had to change rights on several files to allow them to be executed but now when I execute :
$ lib/openoffice/openoffice.org3/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard
I have the following problem :
[Java framework] Error in function createSettingsDocument (elements.cxx).
javaldx failed!

I verified that the good JRE is installed on the server.
I think it is still a problem of rights.

Please, can someone help me ?

Regards

Posted by admin  · 11-04-2013 - 12:13

Hello,

After you start OpenOffice in headless mode please check if you can run advanced/Transform.php example and run:

$ ps aux | grep openoffice

and post your output.

To test it ignore that warning.

Regards.

Posted by dev@kizeo.com  · 11-04-2013 - 12:13

Hello,

I start OpenOffice in headless mode with
$ lib/openoffice/openoffice.org3/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard

I have the following errors :
[Java framework] Error in function createSettingsDocument (elements.cxx).
javaldx failed!
xxx/phpdocx/lib/openoffice/openoffice.org3/program/soffice.bin: error while loading shared libraries: libuno_sal.so.3: cannot open shared object file: No such file or directory

Next, I run :
$ ps aux | grep openoffice
And I have the following result :
yyy 30880 0.0 0.0 7592 812 pts/0 S+ 10:25 0:00 grep openoffice

Thank you for your help.

Regards

Posted by admin  · 11-04-2013 - 12:13

Hello,

Please paste your OS and the output of this command:

$ uname -a

Regards.

Posted by dev@kizeo.com  · 15-04-2013 - 12:23

Hello,

Our OS is Linux (Debian).

The result of the command $ uname -a is :
Linux vmKizeo 2.6.99-2011 #1 SMP Fri Jan 27 15:08:37 CET 2012 x86_64 GNU/Linux

Regards

Posted by jorgelj  · 16-04-2013 - 09:33

Hello,



As you're using Debian x86_64 and the included version of OpenOffice is for 32 bits, you can use this version installing ia32-libs and uno-libs3 packages or install your own version of OpenOffice. Please note that if you're missing of a shared library you can find in which package is included on this page: http://packages.debian.org



This info is the same you can find on page http://www.phpdocx.com/help/conversion-plugin-docx-to-pdf



Regards.


Posted by dev@kizeo.com  · 16-04-2013 - 11:23

Hello,

ia32-libs was already installed and now uno32-libs is also installed but I still have the same problem when I execute :
$ lib/openoffice/openoffice.org3/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard

Regards

Posted by jorgelj  · 16-04-2013 - 14:03

Hello,



After you installed libuno_sal.so.3 library do you get the same error that the system can't find the library?.



Regards.


Posted by dev@kizeo.com  · 17-04-2013 - 16:38

Hello,

I re-started my installation of PHPDOCX from the beginning and the execution of OpenOffice in headless mode was successful.
I had another problem. When I executed my PHP script in a command shell I had the following error :
error while loading shared libraries: libgthread-2.0.so.0: cannot open shared object file: No such file or directory

I solved this problem by installing the package ia32-libs-gtk

And now it works.

Thank you for your help.

Regards