Greetings,

I finally got some free time to play with James today.  Downloaded the 2.1 binary, 
configured James as a relay for my local LAN clients, and it fired it up.  So far, so 
good.

Wrote a Mailet and a Matcher.  The Matcher looks for certain CC addresses and the 
Mailet adds a Reply-To header.  Compiled them and stuffed them in a JAR.

Added the <mailet> tag to the root processors.  Add the package names to the 
<mailetpackages> and <matcherpackages>.

Now here's where it goes south:

According to the docks, I need to copy my JAR file into the james-2.1/lib directory.  
It also says that I have to unpack the james.sar file and drop in copies of james.jar 
and mail_1_2.jar into the same directory.

- If I copy james.jar and/or mail_1_2.jar into the james-2.1/lib directory, Phoenix 
throws an NoClassDefFound error and won't start.  It says that there may be more info 
in the log, but there is nothing in the phoenix.log about the problem.

- If I remove the james.jar and mail_1_2.jar files from james-2.1/lib AND comment out 
my new <mailet> tag, James starts right up again.

- If I leave out the james.jar and mail_1_2.jar files and try to put my <mailet> tag 
back in, James throws a ton of errors, starting with a LifecycleException: Component 
named "spoolmanager" failed to pass through the initialization stage. (Reason: 
java.lang.NoClassDefFoundError)

Question: Am I putting the correct JARs in the correct place?

Question: Could there be some problem with my Matcher or Mailet?  If I were throwing 
Errors on init(), how would that manifest itself?

At this point I'm a bit baffled as to what to do.  I can't seem to find a combination 
of jars and tags that lets me load my mailet classes.  I've reread the docs about half 
a dozen times.  So either I'm misreading something, or the answer isn't in there.

Help, tips, and suggestions welcome.

James

______________________________________________________
James Bucanek       <mailto:[EMAIL PROTECTED]>

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

Reply via email to