Hello, I've been investigating the use of James for a mail application. I'm impressed with the ease of building mailets and matchers, then I tried to deploy them :(
I've built and jared the example found at IBM's devWorks, but can't get in installed. I'd like to avoid mucking around with unpacking and packing sar files or building from source if I can, especially if we decide to develop with james. So I followed the 2nd alternative in the James documentation - installing the matchers/mailets under the lib directory. Here is what I have after interpreting the documentation (Eg: http://james.apache.org/custom_mailet_2_1.html) James is in installed at c:/myjava/james-2.1.3/ I have placed the following files in c:/myjava/james-2.1.3/lib : unavailable.jar (the devWorks example) james.jar (extracted from the james.sar) activation.jar (extracted from the james.sar) mail1_3.jar (extracted from the james.sar) I have updated config.xml and I'm satisfied that this file is fine. When I try to start James, I get an exception (see below). My only guess at this stage is that including the james.jar file in the lib directory is causing classloader issues. (I tried placing all the file in the 'other' lib directory (apps\james\SAR-INF\lib) but nothing was picked up at all. Also tried removing james.jar and the mail jars but no success, just different exceptions indicating that classes in those jars were missing). $ ./run.bat Using PHOENIX_HOME: C:\myjava\james-2.1.3 Using PHOENIX_TMPDIR: C:\myjava\james-2.1.3\temp Using JAVA_HOME: c:/myjava/j2sdk1.4.2_02 Phoenix 4.0.1 There was an uncaught exception: --------------------------------------------------------- --- Message --- org/apache/avalon/cornerstone/services/connection/AbstractHandlerFactory --- Stack Trace --- java.lang.NoClassDefFoundError: org/apache/avalon/cornerstone/services/connection/AbstractHandlerFactory at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) Any suggestions or advice as to what I might be doing wrong? Thanks in advance, Gary. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
