According to log file [1], it looks like james using another config.xml. For
example ;
12/05/08 21:26:42 INFO spoolmanager: Matcher All instantiated.
12/05/08 21:26:42 INFO spoolmanager: Mailet PostmasterAlias instantiated.
12/05/08 21:26:42 INFO spoolmanager: Matcher RelayLimit=30 instantiated.
12/05/08 21:26:42 INFO spoolmanager: Mailet Null instantiated.
12/05/08 21:26:42 INFO spoolmanager: Matcher
HasMailAttributeWithValue=org.apache.james.infected, true instantiated
There is a strange behaviour. I commented out PostmasterAlias in the
config.xml. If everything goes well, log file should like this :
12/05/08 21:26:42 INFO spoolmanager: Matcher testMatcher instantiated.
12/05/08 21:26:42 INFO spoolmanager: Mailet testMailet instantiated.
12/05/08 21:26:42 INFO spoolmanager: Matcher RelayLimit=30 instantiated.
12/05/08 21:26:42 INFO spoolmanager: Mailet Null instantiated.
12/05/08 21:26:42 INFO spoolmanager: Matcher
HasMailAttributeWithValue=org.apache.james.infected
My james folder :
/home/slack/works/james_2/james-2.3.1/
sar file :
/home/slack/works/james_2/james-2.3.1/apps/james.sar
james.sar includes /SAR-INF/config.xml :
<processor name="root">
<mailet match="testMatcher" class="testMailet" />
<!-- <mailet match="All" class="PostmasterAlias"/>
<mailet match="All" class="MailetTest"/>
-->
<!-- Important check to avoid looping -->
<mailet match="RelayLimit=30" class="Null"/>
--------------------------------------------------------------------------------------------------------
Actually, the log file that i wrote above, are created as debug mode (edited
in environment.xml)
Now, still i can not run my custom mailet and matchers.
Any further idea?
Thanks,
2008/5/12 Stefano Bagnara <[EMAIL PROTECTED]>:
> Okan Cetin ha scritto:
>
> > Matcher and Mailets are packaged as a jar and i am putting them in
> > SAR-INF/lib/ . In this folder there are many jar files that can be
> > loaded.
> > I will look at the detailed log, thanks.
> >
>
> This is ok. Make sure you restart james after any change in the SAR-INF
> folder (config is read on startup only, classpath is created at startup).
>
> Stefano
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
~
otomatik oluşturuldu:
http://ocetin.net/log