cancel
Showing results for 
Search instead for 
Did you mean: 

log4j.properties ERROR with nuxeo-liveedit-ooo

Raymond_Bourges
Champ in-the-making
Champ in-the-making

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.(FileInputStream.java:137) at java.io.FileInputStream.(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

1 REPLY 1

mdutoo
Champ on-the-rise
Champ on-the-rise

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/L... http://www.docjar.org/html/api/org/apache/log4j/PropertyConfigurator.java.html

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.