Open peetasan opened 7 years ago
Actually I had a conflict in my dependency hierarchy related to log4j under "org.apache" and "log4j" groupIds into my pom.xml. In order to solve it, what I did was remove the "org.apache" one. I excluded redundant "log4j" in both "gelf" and "slf4j-log4j12" dependencies. Anyway, be aware of your dependency hierarchy. This worked to me, hope it can provide some help to anyone. ;)
I am trying to use the lib in an old jboss setup (which uses log4j)
I am getting the following error (see full stacktrace below):
java.lang.NoSuchMethodError: org.apache.log4j.spi.LoggingEvent.getProperties()Ljava/util/Map;
First I got I got this error
java.lang.ClassNotFoundException: org.graylog2.log.GelfAppender
, but could solve this, by not including gelf jar in the build.gradle, but copying it to/usr/share/jboss-5.1.0.GA/common/lib/
.Then I got the NoSuchMethodError above. I tried
In all cases I got the above error. Any help would be appreciated.