I use Ubuntu 16.04, Tomcat 8, PHP 7, JavaBridge 6.2.1, Libreoffice
5.14. Below is my codings.
$ComponentContext=Java("com.sun.star.comp.helper.Bootstrap")->bootstrap(array("--nologo","--nodefault","--norestore","--nolockcheck","--headless"));
$ServiceManager=$ComponentContext->getServiceManager();
$Desktop=$ServiceManager->createInstanceWithContext("com.sun.star.frame.Desktop",$ComponentContext);
Everything is still OK...
$ComponentLoader=Java("com.sun.star.uno.UnoRuntime")->queryInterface(Java("com.sun.star.frame.XComponentLoader")->class,$Desktop);
Here I got "com.sun.star.lang.DisposedException".
I run "ps -aux" and found that soffice was still running.
tomcat8 941 0.0 0.0 206168 3372 ? Sl
10:24 0:00 /usr/lib/libreoffice/program/oosplash
--accept=pipe,name=uno6335492298840663686;urp; --nologo --nodefault
--norestore --nolockcheck --headless
tomcat8 982 0.0 0.3 923312 55924 ? Sl
10:24 0:00 /usr/lib/libreoffice/program/soffice.bin
--accept=pipe,name=uno6335492298840663686;urp; --nologo --nodefault
--norestore --nolockcheck --headless
tomcat8 983 0.0 0.0 0 0 ?
Z 10:24 0:00 [soffice.bin]
How could I find out what's wrong?
Brooke