On Nov 5, 2008, at 2:50 PM, ericp56 wrote:

That's already included in my classpath via openejb-core-3.0.jar (in Geronimo
server).

Not sure I follow. The embeddable EJB container functionality for unit testing doesn't use the Geronimo server. Also Geronimo doesn't use commons-dbcp as it has it's own connection management code.

You could try something like this in your test case to see what is in our classpath, assuming the Eclipse classloader is a subclass of URLClassLoader (good chance of that).

ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
      System.out.println("classLoader" + classLoader);
System.out.println("classLoader.class" + classLoader.getClass().getName());
      if (classLoader instanceof URLClassLoader) {
          URLClassLoader urlClassLoader = (URLClassLoader) classLoader;
          URL[] urls = urlClassLoader.getURLs();
          for (URL url : urls) {
              System.out.println("url = " + url.toExternalForm());
          }
      }

-David

Reply via email to