Hi I am in need of urgent help.
I am using JBoss Application Server 7.1.1 and trying to send and receive message using JMS queue.
This is how I create the Context:
|Hashtable env = new Hashtable();|
|ic = new InitialContext(env);|
|catch (Exception ex)|
This is the error : javax.naming.NamingException: Failed to create remoting connection [Root exception is java.lang.NoSuchFieldError: TRACE]
is thrown when i use new InitialContext.
Basically I have tested the above code and it works in a standalone eclipse project I have created. The challenge now is that I am trying to merge this code into another project, which uses log4j-1.2.9.jar for its logging. So i think the JBoss logger and the other project's log4j is clashing.
I do not want any log from JBoss, I am only concerned on receiving message from my JBoss App Server. I have tried turning OFF logging using JBoss Application Server, Profile, Core Logging.
Help is needed. Thanks in advance.
Solved the issue. Turns out the log4j-1.2.9.jar does not support TRACE. Upgraded to 1.2.15 downloaded from Maven Repository and works perfect.