You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Norman Maurer (JIRA)" <se...@james.apache.org> on 2011/06/29 19:15:28 UTC
[jira] [Commented] (JAMES-1285) Custom mailet not working
[ https://issues.apache.org/jira/browse/JAMES-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057354#comment-13057354 ]
Norman Maurer commented on JAMES-1285:
--------------------------------------
how do you start james ? via run.sh or james start ?
can you try if the problem pops up with both of them...
> Custom mailet not working
> -------------------------
>
> Key: JAMES-1285
> URL: https://issues.apache.org/jira/browse/JAMES-1285
> Project: JAMES Server
> Issue Type: Bug
> Components: Matchers/Mailets (bundled)
> Affects Versions: 3.0-M2
> Reporter: Raju Buchi
> Priority: Critical
> Labels: moved_from_2.3.2_to_3.0-M2, newbie
>
> Hello
> I have recently created a new server where I have got James 3.0-M2 running. I was able to start up James normally and send emails from it before I configured the custom mailet in mailetcontainer.xml.
> This is what I did:
> I have modified mailercontainer.xml to include custom mailerpackage and matcherpackage.
> -----------------------
> <mailetcontainer>
> <threads> 25 </threads>
> <mailetpackages>
> <mailetpackage>org.apache.james.transport.mailets</mailetpackage>
> <mailetpackage>org.apache.james.mailet.crypto.mailet</mailetpackage>
> <mailetpackage>org.apache.james.imapserver.sieve</mailetpackage>
> <mailetpackage>com.intelliun.util.james.maillet.VECallBack</mailetpackage>
> </mailetpackages>
> <matcherpackages>
> <matcherpackage>org.apache.james.transport.matchers</matcherpackage>
> <matcherpackage>org.apache.james.mailet.crypto.matchers</matcherpackage>
> <matcherpackage>org.apache.james.mailetcontainer.lib.matchers</matcherpackage>
> <matcherpackage>com.intelliun.util.james.matcher.NewsletterBounceMatcher</matcherpackage>
> </matcherpackages>
> <processor name="root">
> <mailet match="All" class="PostmasterAlias"/>
> <mailet match="RelayLimit=30" class="Null"/>
> <mailet match="NewsletterBounceMatcher=webopnp" class="VECallBack">
> <callbackurl>http://webop.mywebsite.net/~web/newsletter/trackEmailBounce.v</callbackurl>
> </mailet>
> <mailet match="SMTPAuthSuccessful" class="ToProcessor">
> <processor>transport</processor>
> </mailet>
> ---------------
> I have included the jar file in /conf/lib folder. This was used in James 2.3.2 version and worked fine.
> When I restart the server after I made these modifications, I get the following error:
> ......................
> ERROR 11:45:40,037 | james.mailetcontainer | Unable to init matcher NewsletterBounceMatcher=cpwebopnp: org.apache.mailet.MailetException: Could not load matcher (NewsletterBounceMatcher);
> nested exception is:
> java.lang.ClassNotFoundException: Requested matcher not found: NewsletterBounceMatcher. Package searched: org.apache.james.transport.matchers. org.apache.james.mailet.crypto.matchers. org.apache.james.mailetcontainer.lib.matchers. com.intelliun.util.james.matcher.NewsletterBounceMatcher.
> org.apache.mailet.MailetException: Could not load matcher (NewsletterBounceMatcher);
> nested exception is:
> java.lang.ClassNotFoundException: Requested matcher not found: NewsletterBounceMatcher. Package searched: org.apache.james.transport.matchers. org.apache.james.mailet.crypto.matchers. org.apache.james.mailetcontainer.lib.matchers. com.intelliun.util.james.matcher.NewsletterBounceMatcher.
> at org.apache.james.mailetcontainer.lib.AbstractLoader.loadFailed(AbstractLoader.java:138)
> ......................
> Can please let me know how I could resolve this?
> - Raju
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org