DocViewer 用 LibreOffice 不能自动启动服务
用OpenOffice可以在Tomcat下面temp生成一个.jodconverter_socket_host-127.0.0.1_port-8100的目录,
而LibreOffice不可以。每次还是在手动去启动。(OpenOffice可以通过tomcat的监听器程序启动)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
都没有找到 libreOffice 3.4版的安装程序了。
LibreOffice 更换 3.4版本试试,可能是jar的驱动链接不对,LibreOffice之后的接口更改比较大
=====准备启动服务....
2012-12-19 14:02:40 org.artofsolving.jodconverter.office.ProcessPoolOfficeManager <init>
信息: ProcessManager implementation is PureJavaProcessManager
2012-12-19 14:02:40 org.artofsolving.jodconverter.office.OfficeProcess start
信息: starting process with acceptString 'socket,host=127.0.0.1,port=8100,tcpNoDelay=1' and profileDir 'C:apache-tomcat
-7.0.22temp.jodconverter_socket_host-127.0.0.1_port-8100'
2012-12-19 14:02:40 org.artofsolving.jodconverter.office.OfficeProcess start
信息: started process
org.artofsolving.jodconverter.office.OfficeException: failed to start and connect
at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWait(ManagedOfficeProcess.java:64)
at org.artofsolving.jodconverter.office.PooledOfficeManager.start(PooledOfficeManager.java:101)
at org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.start(ProcessPoolOfficeManager.java:62)
at com.hkcts.crm.lore.utils.convert.office.OfficeConverter.startService(OfficeConverter.java:183)
at com.hkcts.crm.lore.DocViewer.initialize(DocViewer.java:185)
at com.hkcts.crm.lore.DocViewerServiceListener.contextInitialized(DocViewerServiceListener.java:21)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.util.concurrent.ExecutionException: org.artofsolving.jodconverter.office.OfficeException: could not esta
blish connection
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
at java.util.concurrent.FutureTask.get(FutureTask.java:83)
at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWait(ManagedOfficeProcess.java:62)
... 13 more
Caused by: org.artofsolving.jodconverter.office.OfficeException: could not establish connection
at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProcessAndConnect(ManagedOfficeProcess.java:
142)
at org.artofsolving.jodconverter.office.ManagedOfficeProcess.access$000(ManagedOfficeProcess.java:31)
at org.artofsolving.jodconverter.office.ManagedOfficeProcess$1.run(ManagedOfficeProcess.java:58)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
... 5 more
Caused by: org.artofsolving.jodconverter.office.OfficeException: office process died with exit code -1073741515
at org.artofsolving.jodconverter.office.ManagedOfficeProcess$6.attempt(ManagedOfficeProcess.java:136)
at org.artofsolving.jodconverter.office.Retryable.execute(Retryable.java:40)
at org.artofsolving.jodconverter.office.Retryable.execute(Retryable.java:30)
at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProcessAndConnect(ManagedOfficeProcess.java:
120)
... 8 more
[ERROR] [2012-12-19 14:02:41,578] [Thread-2] [com.hkcts.crm.lore.utils.convert.office.OfficeConverter.startService(187)]
| office转换服务启动失败!详细信息:org.artofsolving.jodconverter.office.OfficeException: failed to start and connect
docviewer.converter.office.home=D:/Installation/OpenOffice.org3.4
docviewer.converter.office.home=D:/Installation/LibreOffice3.6
前面的可以。后面的那不行
没有啊。我的路径是这样的:D:/Installation/LibreOffice3.6
不能自动启动服务肯定是报错了呀,看看配置中是否有特殊字符和空格。