> I am using JAMES 2.2.0 and have experienced problems I > attribute to classloader oddness.
You can start looking to the mailet "Loader": org.apache.james.transport.Loader Your mailets are loaded from that loader. And here is a suggestion: ------------------- Many Java tools internally use Class.forName(String).newInstance() to instantiate some part of its internal functionality. This works if the class's Jar is mounted at the top-level system classloader. In the case of many Avalon containers, the Jar in question will actually be mounted in a classloader at some other point in a tree of classloaders. Thus Class.forName() will fail with ClassNotFoundException if running in a container. A better thing to do would be to use this.getClass().getClassLoader().loadClass(String). This means that the class will always be loaded from classloader that hosts the rest of the classes for the tool. It can run at any point in a tree of classloaders without problem. ------------------- Stefano --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
