Hi
I have been trying to code my first mailet.
I have my test mailet "MyMailet" which extends GenericMailet from the the
Mailet Base lib.
I compiles fine.
I then deploy it by
- extracting the james.sars file
- adding the my mailet jar to the SAR-INT\lib directory
- zipping it again
.-replacing the james.sar file in APPS directory
- add my package to the config.xml file in the apps\James\SAR-INF\
directory
<mailetpackage>com.jezzper.mailets</mailetpackage>
- add <mailet match="All" class="MyMailet"</mailet> in the transport
section
- restart James
If I check the Phoenix log file it says:
ERROR 2009-12-15 13:46:07.015 [Phoenix.] (): Component named
"spoolmanager" failed to pass through the Starting stage. (Reason:
java.lang.NoClassDefFoundError: org/apache/mailet/base/GenericMailet).
ERROR 2009-12-15 13:46:07.015 [Phoenix.] (): There was an error running
phase "startup" for Block named "spoolmanager". (Reason: Component named
"spoolmanager" failed to pass through the Starting stage. (Reason:
java.lang.NoClassDefFoundError: org/apache/mailet/base/GenericMailet).).
Anyone has an idea what I am doing wrong
brgds jesper Kiær