2 Replies Latest reply on Apr 7, 2009 3:31 PM by Uli Zaus

    Initializing log4j in standalone EJB client

    Uli Zaus Newbie

      I'm accessing an EJB 3 business interface on jboss from a standalone client by

      Properties props = new Properties();
      props.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
      props.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming.client");
      props.setProperty(Context.PROVIDER_URL, "jnp://localhost:1099");
      Context ctx = new InitialContext(props);
      
      Test test = (Test) ctx.lookup("TestBean/remote");

      This works, but the lookup produces the warning:

      log4j: WARN No appenders could be found for logger (org.jnp.interfaces.TimedSocketFactory)
      log4j: WARN Please initialze the log4j system properly

      Has anybody an idea what I have to do in order to get rid of these warnings ?

      Any help is appreciated. Thanks.

      Ralph