Sharon,

You'll probably have your question answered by others, but I had the 
same problem starting out with James.

Last I looked, Mailets can\not be installed by dropping them in the lib 
path.  I had to dig through the archives after spinning my wheels for 
several hours with the same problem you ran into...  James cannot find 
your mailet's class file and thus James craps out... Painful, as it must 
sound you have to compile your mailet, and add it to james block archive 
(james-root/dist/apps/james/blocks/james.bar.)  You might even go as far 
as adding your new james.bar to the james.sar (james-
root/dist/apps/james.sar) so that the sar can be unpacked when first 
run, and thus the james path created under james-root/dist/apps.

The best way to do all this is use Jakarta-Ant to help automate the 
process.  This is what I did.  Oh, and use NetBeans.  :-)  I love their 
Ant integration.

Cheers,

-Michael


On Sunday, February 10, 2002, at 02:16 PM, Sharon Dagan wrote:

> Hi all,
>
> I've just installed JAMES v2.0a2 - I have it up and running.
> I've written a 'Hello World' mailet, JARed it and placed it into '<JAMES
> HOME>/lib'.
>
> My mailet looks like this:
>
>   package com.ibm.il.snd.wts.mailets;
>   public class HelloWorld extends GenericMailet {
>     public void service(Mail mail) throws MessagingException {
>     }
>   }
>
> I've added the following to '<JAMES HOME>/apps/james/conf/config.xml':
>
>   ...
>   <mailetpackage>com.ibm.il.snd.wts.mailets</mailetpackage>
>
>   ...
>
>   <mailet match="[EMAIL PROTECTED]" class
> ="HelloWorld">
>   </mailet>
>
>
> Now JAMES starts but wont initialize the POP/SMPT/whatever listeners.
> The logs are clean and indicate that 'HelloWorld' has been initialized.
> If I replace 'HelloWorld' with 'Null' JAMES starts OK.
> Same thing happens with JAMES v2.0a1.
>
> Any ideas?
>
> Cheers,
> --
> Sharon Dagan
> IT Architect, Software Group
> IBM Israel
>
> e: [EMAIL PROTECTED]
> p: +972-3-9188776 m: +972-52-554776
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:james-user-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:james-user-
> [EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to