You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
removing the log4j jar supplied with jboss,
adding the log4j version that has this method (1.2.17),
removing log4j entirely from inside jboss, as IIUC it should come from the gelf jar itself.
In all cases I got the above error. Any help would be appreciated.
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.
The text was updated successfully, but these errors were encountered: