Hello,
we're trying to get rid of the hard-coded dependency for log4j that you had in smartGWT but according to your release documentation for 5.0 have gotten rid of, enabling us to run with slf4j instead.
This is what i have done:
1. added "-DiscUseSlf4j=true" "-DiscUseLog4jConfig=false" to my system startup file (catalina.sh in Tomcat)
2. Removed log4j.jar from my war lib.
I get the following error on startup:
[code]
SEVERE: Servlet [Init] in web application [/myapp] threw load() exception
java.lang.VerifyError: (class: com/isomorphic/log/Logger, method: <clinit> signature: ()V) Incompatible argument to function
at com.isomorphic.base.Init.<clinit>(Init.java:68)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
[code]
Have i missed something? Pointers much appreciated.
EDIT: i tried adding and removing the jar, and it indeed seems that you still require log4j to be on the classpath. I also found your logging page, where you write that you use log4j internally.
This is very unfortunate for us, because in Hibernate 4, they moved from slf4j to jbosslogging, which will set up logging bridge according to a hard-coded priority which is 1. log4j and 2. slf4j. This basically means that because you need log4j, i cant get proper logging when i upgrade to hibernate 4 (well, there's a system parameter i'll have to try and work out everywhere...).
we're trying to get rid of the hard-coded dependency for log4j that you had in smartGWT but according to your release documentation for 5.0 have gotten rid of, enabling us to run with slf4j instead.
This is what i have done:
1. added "-DiscUseSlf4j=true" "-DiscUseLog4jConfig=false" to my system startup file (catalina.sh in Tomcat)
2. Removed log4j.jar from my war lib.
I get the following error on startup:
[code]
SEVERE: Servlet [Init] in web application [/myapp] threw load() exception
java.lang.VerifyError: (class: com/isomorphic/log/Logger, method: <clinit> signature: ()V) Incompatible argument to function
at com.isomorphic.base.Init.<clinit>(Init.java:68)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
[code]
Have i missed something? Pointers much appreciated.
EDIT: i tried adding and removing the jar, and it indeed seems that you still require log4j to be on the classpath. I also found your logging page, where you write that you use log4j internally.
This is very unfortunate for us, because in Hibernate 4, they moved from slf4j to jbosslogging, which will set up logging bridge according to a hard-coded priority which is 1. log4j and 2. slf4j. This basically means that because you need log4j, i cant get proper logging when i upgrade to hibernate 4 (well, there's a system parameter i'll have to try and work out everywhere...).
Comment