java.lang.NoSuchFieldError: TRACE

来源:互联网 发布:数据库高级培训 编辑:程序博客网 时间:2024/05/16 01:56
java.lang.NoSuchFieldError: TRACE
at org.jboss.logging.Log4jLoggerPlugin.isTraceEnabled(Log4jLoggerPlugin.java:85)
            at org.jboss.logging.Logger.isTraceEnabled(Logger.java:122)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:622)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:589)
            at javax.naming.InitialContext.lookup(InitialContext.java:351)
            at com.cognizant.util.ServiceHelper.initQueueService(ServiceHelper.java:153)
            at com.cognizant.main.StartUp.<init>(StartUp.java:28)
            at com.cognizant.main.StartUp.main(StartUp.java:46)
解决:
You will require log4j jar of version 1.2.12 or higher in your classpath. Also, make sure that you donot maintain more than one version of jar file of log4j (or for that matter any other utility) in the classpath. So remove the log4j-1.2.9.jar and log4j-boot.jar from your client's classpath and include a log4j jar of version 1.2.12 or higher.
原创粉丝点击