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
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
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?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125395#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...