[jboss-user] [Beginners Corner] - Problem with JBoss4.2.0GA&JDK6

cornfield do-not-reply at jboss.com
Tue May 15 05:52:53 EDT 2007


Hi guys:
    
    I update Jboss from 4.0.5GA to 4.2.0GA today,My program runing ok with jboss4.0.5GA&JDK6,but in jboss4.2.0GA&JDK6, jboss running ok,but my program shows error when login:
     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:620)
  | 	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
  | 	at javax.naming.InitialContext.lookup(InitialContext.java:392)
  | 	at org.columba.core.gui.util.SystemDB.getSessionBeanHome(SystemDB.java:81)
  | 	at org.columba.core.gui.util.LoginDialog$6$1.run(LoginDialog.java:222)
  | 	at java.lang.Thread.run(Thread.java:619)

I found the method org.jboss.logging.Log4jLoggerPlugin.isTraceEnabled is diffrent between jboss4.0.5GA  and jboss4.2.0GA.
org.jboss.logging.Log4jLoggerPlugin.isTraceEnabled  in JBoss4.0.5GA:
 public boolean isTraceEnabled()
  |     {
  |         if(!log.isEnabledFor(XLevel.TRACE))
  |             return false;
  |         else
  |             return XLevel.TRACE.isGreaterOrEqual(log.getEffectiveLevel());
  |     }
  | 

 org.jboss.logging.Log4jLoggerPlugin.isTraceEnabled  in JBoss4.2.0GA:
   
  |  public boolean isTraceEnabled()
  |    {      
  |       Level l = Level.TRACE;
  |       if (log.isEnabledFor(l) == false)
  |          return false;
  |       return l.isGreaterOrEqual(log.getEffectiveLevel());
  |    }
  |  

Has anyone met problem like this? How can I config it? Please help me! Thanks!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045734#4045734

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045734



More information about the jboss-user mailing list