Bill,

You need access to the class GenericMailet, which can be found in mailet_1_0.jar.

If you're baking your own sar file, you should add mailet_1_0.jar to it. This has 
changed with the 2.2.0 release. I think the mailet classes used to be packaged in the 
james.jar file.

Cheers,

        Hes.


________________________________________
From: bill page [mailto:[EMAIL PROTECTED] 
Sent: dinsdag 15 juni 2004 21:38
To: James Users List (E-mail)
Subject: deploying user matchers

At the office I am running the production 2.1.3 release.ÂÂ I have written a couple 
simple matchers. The description of deployment is a little confusing to me, but I 
was able to deploy them by putting them in a zip file (digimatcher.zip) and and 
putting that in the ..James-2.1.3\lib directory
Â
The changes to my config are:
ÂÂÂÂÂÂÂÂ <matcherpackage>digimatcher</matcherpackage>
Â
Â
ÂÂÂÂÂÂÂÂ <mailet match="[EMAIL PROTECTED]" class="ToProcessor">
ÂÂÂÂÂÂÂÂÂÂÂ <processor>myblackhole</processor>
ÂÂÂÂÂÂÂÂ </mailet>
All that works fine. 
Â
Â
At home I'm running RC4. I copied the above into my current config and put the zip 
into the home\lib directory. I'm getting an exception that it can not load the 
matcher:
Â
java.lang.NoClassDefFoundError: org/apache/mailet/GenericMatcher).).
org.apache.excalibur.containerkit.lifecycle.LifecycleException: Component named 
"spoolmanager" failed to pass 
Â
Has deployment changed in 2.2? Any ideas what I'm doing wrong? If I comment out 
the matcher (but leave the <mailetpackages> entry) the config works fine. 
Â
Â
ÂÂÂÂÂÂÂ Bill Page 
ÂÂÂÂÂÂÂ [EMAIL PROTECTED] 
Â

Reply via email to