Hi,
I am trying to lookup for "ConnectionFactory" in JBoss 3.2.0 and on the line
TopicConnectionFactory factory = (TopicConnectionFactory) ctx.lookup("ConnectionFactory");
I receive the exception
Exception in thread "main" java.lang.NoSuchFieldError: DEBUG
at org.jboss.logging.Log4jLoggerPlugin.isDebugEnabled(Log4jLoggerPlugin.java:116)
at org.jboss.logging.Logger.isDebugEnabled(Logger.java:133)
at org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory.getObjectInstance(SpyConnectionFactoryObjectFactory.java:42)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:584)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at examples.log.LogReceiverClient.(LogReceiverClient.java:33)
at examples.log.LogReceiverClient.main(LogReceiverClient.java:83)
The same example works on JBoss 3.0.2.
Does anybody know what's the problem?
Thanks,
Franke
It was my fault :-)
I used different log4j in versions 3.0.2 and 3.2.0