Did you put the jar with your custom matcher in the proper directory?? e.g. 
with 3.0.0-beta3 you have to put it in [JAMES_HOME]/conf/lib

kr
Markus



> Am 09.01.2015 um 15:10 schrieb Benoit Tellier <btell...@linagora.com>:
> 
> Hi,
> 
> I am trying to deploy a custom mailet and a custom matcher on my running
> James server.
> 
> When adding my mailet or my matcher in the mailetcontainer.xml file, I
> have a strange error ( repeted thousand of times ). I added the
> stacktrace as an attachement for readability.
> 
> Here is how my code looks like :
> 
>    package com.linagora.openpaas.mailet;
> 
>    public class PostMailOnESN extends GenericMailet {
> 
>        public void init() throws MessagingException {
>            // ...
>        }
> 
>        public void service(Mail mail) throws MessagingException {
>            // ...
>        }
> 
>        public void destroy() {
>            // ...
>        }
>    }
> 
> I added the generated jar in conf/lib directory.
> 
> Here is the section of mailetcontainer.xml file involving this mailet :
> 
>    <mailet
> match="com.linagora.openpaas.matcher.ESNPostmasterMailMatcher=http://127.0.0.1:8080/api/messages/email/check%esn.james.minet.net";
> class="com.linagora.openpaas.mailet.PostMailOnESN">
>       <esnip>127.0.0.1</esnip>
>        <port>8080</port>
>        <api>api/james/mail</api>
>    </mailet>
> 
> Note that it works fine if I replace this mailet by :
> 
>       <mailet match="All" class="Null"/>
> 
> And That I get the same kind of stacktraces using the following non
> existing mailet and matcher :
> 
>       <mailet match="Al" class="Null"/>
> 
> Or :
> 
>       <mailet match="All" class="Nul"/>
> 
> Oh and I am running james 3.0.0-beta5, on openjdk-7-jre ( I have the
> same problem using openjdk-6-jre )
> 
> My question is :
>  - have I made something wrong ? ( I have the impression
>  - have someone deployed a custom mailet successfully on James
> 3.0.0-beta5 ? Does you have any tips ?
> 
> Thank you by advance,
> 
> Benoit
> 
> 
> <stacktrace.txt>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org


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

Reply via email to