You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by bill page <bi...@snakeriversoftware.com> on 2004/06/15 21:38:18 UTC

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="RecipientIsAny=email@x.com" 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
        billp@snakeriversofware.com


RE: deploying user matchers

Posted by bill page <bi...@snakeriversoftware.com>.
I don't think so.   I didn't under 2.1.3.  Besides, it seems to be not
finding generic matcher.  Maybe that has changed.  I emailed the zip from
work which is 2.1.3 and put it here under RC4.  Maybe some packaging has
changed in the base classes.

bp

> -----Original Message-----
> From: tobe [mailto:torbjorn.gannholm@swipnet.se]
> Sent: Tuesday, June 15, 2004 6:15 PM
> To: James Users List
> Subject: Re: deploying user matchers
>
>
> Don't you have to write "digimatcher.RecipientIsAny=..." ?
>
> /tobe
>
> bill page wrote:
>
> > 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="RecipientIsAny=email@x.com
> > <ma...@x.com>" 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
> >         billp@snakeriversofware.com
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: deploying user matchers

Posted by tobe <to...@swipnet.se>.
Don't you have to write "digimatcher.RecipientIsAny=..." ?

/tobe

bill page wrote:

> 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="RecipientIsAny=email@x.com 
> <ma...@x.com>" 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
>         billp@snakeriversofware.com
>
>  



---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org