Exception in thread "main" 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:660)
At Org.jnp.interfaces.NamingContext.lookup (namingcontext.java:627)
At Javax.naming.InitialContext.lookup (initialcontext.java:351)
At Jp.fukuoka.pref.kiban.common.util.ServiceLocator.getEjbHome (servicelocator.java:124)
At Jp.fukuoka.pref.kiban.common.batch.OnlineSequencer.next (onlinesequencer.java:48)
At Jp.fukuoka.pref.kiban.common.api.ProcessRequestMessageAccessor.setProcessRequestMessage ( processrequestmessageaccessor.java:74)
At Jp.fukuoka.pref.kiban.sample.common.batch.MyDelayedOnBatchRequester.request (Mydelayedonbatchrequester.java : 38)
At Jp.fukuoka.pref.kiban.sample.common.batch.MyDelayedOnBatchRequester.main (mydelayedonbatchrequester.java:53)
The exception occurs because the log4j version that is imported in the project is inconsistent with the log4j version under JBoss Client (JBoss version > imported version of the project)
Workaround: Replace the log4j under JBoss with the LOG4J package in the project, noting that both the EJB and the EJB client need to be replaced, replacing an equally problematic one.
This article from Csdn Blog, reproduced please indicate the source: http://blog.csdn.net/renminyan/archive/2009/05/05/4150645.aspx
Java.lang.NoSuchFieldError:TRACE