<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Wrong log4j.xml used in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/wrong-log4j-xml-used/m-p/316635#M3636</link>
    <description>&lt;P&gt;You are right I didn't realize there were 2 JVM involved here.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2013 21:17:15 GMT</pubDate>
    <dc:creator>Julien_Eluard</dc:creator>
    <dc:date>2013-03-25T21:17:15Z</dc:date>
    <item>
      <title>Wrong log4j.xml used</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/wrong-log4j-xml-used/m-p/316629#M3630</link>
      <description>&lt;P&gt;It appears log4j loads the log4j.xml embedded in nuxeo-launcher.jar as opposed to the one in lib/. Is this the intended behavior? It makes lib/log4j.xml essentially useless.
A workaround is to use -Dlog4j.configuration to directly reference lib/log4j.xml.&lt;/P&gt;
&lt;P&gt;You can easily check this by adding -Dlog4j.debug as property to the launching JVM (in nuxeoctl).&lt;/P&gt;
&lt;P&gt;(this is with latest published 5.7-SNAPSHOT).&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2013 03:54:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/wrong-log4j-xml-used/m-p/316629#M3630</guid>
      <dc:creator>Julien_Eluard</dc:creator>
      <dc:date>2013-03-25T03:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong log4j.xml used</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/wrong-log4j-xml-used/m-p/316630#M3631</link>
      <description>&lt;P&gt;It works for me, using a snapshot from Friday I get&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2013 13:42:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/wrong-log4j-xml-used/m-p/316630#M3631</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2013-03-25T13:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong log4j.xml used</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/wrong-log4j-xml-used/m-p/316631#M3632</link>
      <description>&lt;P&gt;Weird. I'm using the nuxeo-cap.zip distribution [here][1]. Then I launch nuxeo with either nuxeoctl console or nuxeoctl start. I get&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2013 14:24:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/wrong-log4j-xml-used/m-p/316631#M3632</guid>
      <dc:creator>Julien_Eluard</dc:creator>
      <dc:date>2013-03-25T14:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong log4j.xml used</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/wrong-log4j-xml-used/m-p/316632#M3633</link>
      <description>&lt;P&gt;The nuxeo-launcher's log4j is used and must not be removed.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2013 14:40:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/wrong-log4j-xml-used/m-p/316632#M3633</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2013-03-25T14:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong log4j.xml used</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/wrong-log4j-xml-used/m-p/316633#M3634</link>
      <description>&lt;P&gt;Yes not sure why I get a different ClassLoader.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2013 16:00:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/wrong-log4j-xml-used/m-p/316633#M3634</guid>
      <dc:creator>Julien_Eluard</dc:creator>
      <dc:date>2013-03-25T16:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong log4j.xml used</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/wrong-log4j-xml-used/m-p/316634#M3635</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Are you sure you have an issue?&lt;BR /&gt; /&amp;gt;
Instead of editing nuxeoctl, please add the following to nuxeo.conf: &lt;CODE&gt;JAVA_OPTS=$JAVA_OPTS -Dlog4j.debug&lt;/CODE&gt;. Then run &lt;CODE&gt;./bin/nuxeoctl console&lt;/CODE&gt; in order to see the server's Log4J initialization.&lt;/P&gt;
&lt;P&gt;I activated log4j.debug on the Launcher (in nuxeoctl script) and on Nuxeo (in nuxeo.conf):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;log4j: Trying to find [log4j.xml] using context classloader sun.misc.Launcher$AppClassLoader@24ee5d13.
log4j: Using URL [jar:file:/home/julien/.../nuxeo-cap-5.7-SNAPSHOT-tomcat/tmp/nuxeo-launcher-22833.jar!/log4j.xml] for automatic log4j configuration.
Detected Tomcat server.
(...)
Configuration files generated.
log4j: Trying to find [log4j.xml] using context classloader org.apache.catalina.loader.StandardClassLoader@79e4620e
log4j: Using URL [file:/home/julien/.../nuxeo-cap-5.7-SNAPSHOT-tomcat/lib/log4j.xml] for automatic log4j configuration.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It uses the right log4j configuration for each.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2013 19:44:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/wrong-log4j-xml-used/m-p/316634#M3635</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2013-03-25T19:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong log4j.xml used</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/wrong-log4j-xml-used/m-p/316635#M3636</link>
      <description>&lt;P&gt;You are right I didn't realize there were 2 JVM involved here.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2013 21:17:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/wrong-log4j-xml-used/m-p/316635#M3636</guid>
      <dc:creator>Julien_Eluard</dc:creator>
      <dc:date>2013-03-25T21:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong log4j.xml used</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/wrong-log4j-xml-used/m-p/316636#M3637</link>
      <description>&lt;P&gt;Most people don't need to change Launcher logging and there are [debug options ('-d' and '-dc')][1] which allow to debug the Launcher without having to edit the log4j configuration. Also, I planned to allow dynamic log4j customization from an embedded Nuxeo Shell ('nuxeoctl shell')...&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2013 12:15:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/wrong-log4j-xml-used/m-p/316636#M3637</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2013-03-26T12:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong log4j.xml used</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/wrong-log4j-xml-used/m-p/316637#M3638</link>
      <description>&lt;P&gt;Makes sense! '-d' definitively does the trick.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2013 12:19:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/wrong-log4j-xml-used/m-p/316637#M3638</guid>
      <dc:creator>Julien_Eluard</dc:creator>
      <dc:date>2013-03-26T12:19:58Z</dc:date>
    </item>
  </channel>
</rss>

