I spoke too soon :-) I have it up'n'running now.
Cheers,
--
Sharon Dagan
IT Architect, Software Group
IBM Israel
e: [EMAIL PROTECTED]
p: +972-3-9188776 m: +972-52-554776
Sharon
Dagan/Israel/I To: "James Users List"
BM@IBMIL <[EMAIL PROTECTED]>
cc:
11/02/2002 Subject: Re: Problems with Hello World
11:46 mailet
Please respond
to "James
Users List"
Thanks Michael for the tip - it did help.
JAMES now starts OK and my mailet get initialized but just before JAMES
calls its service() method, I get a 'java.lang.NullPointerException' at
'org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java'.
Help, again :-)
Cheers,
--
Sharon Dagan
IT Architect, Software Group
IBM Israel
e: [EMAIL PROTECTED]
p: +972-3-9188776 m: +972-52-554776
"Michael J.
Walsh" To: "James Users List"
<james-user@ne <[EMAIL PROTECTED]>
monik.com> cc:
Subject: Re: Problems with
Hello World
11/02/2002 mailet
06:31
Please respond
to "James
Users List"
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]
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]
>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>