1 Reply Latest reply on Sep 8, 2004 10:19 AM by hbothmer

    NullPointerException when calling new InitialContext()

    hbothmer Newbie

      Hi all!

      I am trying the following:

      A scheduled job is supposed to call a Stateless Session Bean. Sounds easy ! And in fact I had no problem getting it to work.

      But now strange things happen: I haven't change the code of the schedulable class. Now, when I call

      InitialContext initialContext = new InitialContext( jndiSettings );


      i get a NullPointerException. (
      at org.jboss.mx.loading.UnifiedClassLoader.findResources(UnifiedClassLoader.java:374))

      I have not the slightest idea what is going on. I have made sure that the Beans are there and working by calling them from remote and from other beans.

      Any idea?

      thanks,
      Holger