1 Reply Latest reply on Apr 19, 2003 11:11 AM by franke

    NoSuchFieldError while looking up

    franke Newbie

      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