Note that there are some explanatory texts on larger screens.

plurals
  1. POLog4j2 and Flume on Jetty Server
    primarykey
    data
    text
    <p>I am trying to do centralised logging of a distributed system using Log4J2 and Flume-ng. One of the servers in the system runs Jetty which I am using to do web services (servlets) for the system. When I include the Maven dependencies for Log4J2 an Flume-ng in this project it breaks Jetty and it will not start up/bind properly. If I remove the dependency in the list below (log4j-flume-ng) then Jetty will run as normal giving me the following output:</p> <pre><code>2012-10-08 16:36:33.457::INFO: Logging to STDERR via org.mortbay.log.StdErrLog 2012-10-08 16:36:34.285 INFO net.spy.memcached.MemcachedConnection: Added {QA sa=gs-adhoc1-test.jrs-software.co.uk/10.1.1.161:11211, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue 2012-10-08 16:36:34.290 INFO net.spy.memcached.MemcachedConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl@31ac05 2012-10-08 16:36:34.272::INFO: jetty-7.0.0.pre5 2012-10-08 16:36:34.322::INFO: Started SelectChannelConnector@0.0.0.0:5000 </code></pre> <p>But with that dependency in, it come up as (just the Memcached output):</p> <pre><code>2012-10-08 16:36:34.285 INFO net.spy.memcached.MemcachedConnection: Added {QA sa=gs-adhoc1-test.jrs-software.co.uk/10.1.1.161:11211, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue 2012-10-08 16:36:34.290 INFO net.spy.memcached.MemcachedConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl@31ac05 </code></pre> <p>The dependencys in Maven POM are as follows:</p> <pre><code>&lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;io.netty&lt;/groupId&gt; &lt;artifactId&gt;netty&lt;/artifactId&gt; &lt;version&gt;3.5.4.Final&lt;/version&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt; &lt;artifactId&gt;jetty&lt;/artifactId&gt; &lt;version&gt;7.0.0.pre5&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;javax.servlet&lt;/groupId&gt; &lt;artifactId&gt;servlet-api&lt;/artifactId&gt; &lt;version&gt;3.0-alpha-1&lt;/version&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;net.sf.json-lib&lt;/groupId&gt; &lt;artifactId&gt;json-lib&lt;/artifactId&gt; &lt;version&gt;2.3&lt;/version&gt; &lt;classifier&gt;jdk15&lt;/classifier&gt; &lt;exclusions&gt; &lt;exclusion&gt; &lt;groupId&gt;commons-logging&lt;/groupId&gt; &lt;artifactId&gt;commons-logging&lt;/artifactId&gt; &lt;/exclusion&gt; &lt;/exclusions&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;net.sf.ezmorph&lt;/groupId&gt; &lt;artifactId&gt;ezmorph&lt;/artifactId&gt; &lt;version&gt;1.0.6&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;couchdb4j&lt;/groupId&gt; &lt;artifactId&gt;couchdb4j&lt;/artifactId&gt; &lt;version&gt;0.5.0-i386-1&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.json&lt;/groupId&gt; &lt;artifactId&gt;json&lt;/artifactId&gt; &lt;version&gt;20090211&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;com.google.code.simple-spring-memcached&lt;/groupId&gt; &lt;artifactId&gt;spymemcached&lt;/artifactId&gt; &lt;version&gt;2.8.1&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt; &lt;artifactId&gt;log4j-api&lt;/artifactId&gt; &lt;version&gt;2.0-beta1&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt; &lt;artifactId&gt;log4j-core&lt;/artifactId&gt; &lt;version&gt;2.0-beta1&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt; &lt;artifactId&gt;log4j-flume-ng&lt;/artifactId&gt; &lt;version&gt;2.0-alpha2&lt;/version&gt; &lt;/dependency&gt; &lt;/dependencies&gt; </code></pre> <p>I don't know how to begin solving this. I have managed to get Flume working with my other servers no problem but it appears that Jetty will have none of it. Can someone offer any advice to get this working?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload