Java.lang.NoSuchFieldError:TRACE

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.