posts - 431,  comments - 344,  trackbacks - 0
          Hi I am facing a problem with accessing the JBOSS.

          according to the exception it seems to me --- log related exception.

          when I call the following code

          Code:
          Hashtable env = new Hashtable();
                      env.put(Context.INITIAL_CONTEXT_FACTORY, initCtxFac);
                      env.put(Context.PROVIDER_URL, providerUrl);
                      try {
                      ctx = new InitialContext(env);
                      conFactory = (QueueConnectionFactory) ctx.lookup
                      (queueConFacLookupName);
                      -----
                      -----	


          exception details

          Code:
          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: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)	



          I use jboss-4.2.1.GA version with JDK jdk141_05 version.

          I added jboss.jar,jbossall-client.jar,jboss-client.jar,jboss-system.jar,log4j-1.2.9.jar,log4j-boot.jar in my project library.

          Strange thing is that I run this same code with all other 3/4 windows XP system. OK

          But in another system with the same configuration I got the above mentioned exception.


          Can any body help me?

          -----------------------------------------------------------------------------------------
          Quote:
          Exception in thread "main" Java.lang.NoSuchFieldError: TRACE


          You will require log4j jar of version 1.2.12 or higher in your classpath. Also, make sure that you do not 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.

          posted on 2008-04-17 19:05 周銳 閱讀(7663) 評論(6)  編輯  收藏 所屬分類: AntApacheJava
          主站蜘蛛池模板: 洛阳市| 龙岩市| 靖安县| 仙游县| 贵德县| 元谋县| 蒙自县| 巨野县| 社旗县| 贵南县| 申扎县| 西安市| 措美县| 徐闻县| 临武县| 保康县| 巢湖市| 莱西市| 太谷县| 酒泉市| 田林县| 东丰县| 财经| 隆昌县| 富锦市| 江油市| 土默特右旗| 建水县| 鄂托克前旗| 梓潼县| SHOW| 黄浦区| 开封市| 西乡县| 彩票| 忻州市| 桦川县| 蚌埠市| 郯城县| 于都县| 铜鼓县|