log4j.properties ERROR with nuxeo-liveedit-ooo

I use:

  • nuxeo-liveedit-ooo 2.4
  • ubuntu 13.04 (64 bits)
  • libreOffice 4.0.2.2
  • libreoffice-java-common installed

When I try to install nuxeo-liveedit-ooo I have this error (in the console where I launch libreOffice) :

log4j:ERROR Could not read configuration file [log4j.properties]. java.io.FileNotFoundException: log4j.properties (No such file or directory)

at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:137)
at java.io.FileInputStream.<init>(FileInputStream.java:96)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:372)
at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:403)
at org.nuxeo.liveedit.extension.ooo.CentralRegistrationClass.getRegistrationClasses(CentralRegistrationClass.java:98)
at org.nuxeo.liveedit.extension.ooo.CentralRegistrationClass.__writeRegistryServiceInfo(CentralRegistrationClass.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.sun.star.comp.loader.JavaLoader.writeRegistryInfo(JavaLoader.java:410)

Do you know how to workaround this error?

Thanks

0 votes

1 answers

1264 views

ANSWER



This error disappears if you extract the log4j.properties file from the main jar within the extension (open it as a zip file) and put it in the directory where you start LibreOffice from. I guess it is used by developers to get more information about errors if they need it (goes then to nuxeo-liveedit-openoffice-extension.log in your temp dir). But your error most probably comes from something else.

NB. I got that from reading https://fisheye.nuxeo.com/viewrep/desktop-integration-liveedit/nuxeo-liveedit-openoffice-extension/LiveEditOoo/src/main/java/org/nuxeo/liveedit/extension/ooo/CentralRegistrationClass.java?r=c95083645aa4bf59eadab6d061b3f1fc15cd9dff http://www.docjar.org/html/api/org/apache/log4j/PropertyConfigurator.java.html

0 votes