Thank you Ian, I noticed that I have been copied my jar file to two "lib" directories. One is <installdir>/apps/james/SAR-INF/lib, and another is <installdir>/lib. This is my mistake. Now my custom mailet seems to work fine.
2007/12/7, Ian Lewis <[EMAIL PROTECTED]>: > Iwasa-san, > > It looks like it can't find org.apache.mailet.GenericMailet rather than your > DelayedSpool mailet class. Where did you put the jar file for your mailet > class? maybe you put it in your lib/ directory? It should go in the > apps/james/SAR-INF/lib directory. > > 2007/12/7, Iwasa Kazmi <[EMAIL PROTECTED]>: > > > > Hi, > > > > I wrote a custom mailet named "DelayedSpool". But the server failed > > to startup. > > > > ----------------------------------- > > org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException: > > Component named "spoolmanager" failed to pass through the Starting > > stage. (Reason: java.lang.NoClassDefFoundError: > > org/apache/mailet/GenericMailet). > > ..... > > java.lang.NoClassDefFoundError: org/apache/mailet/GenericMailet > > ..... > > ----------------------------------- > > > > I changed the name of the mailet class, and it goes successful. > > > > I thought that another "DelayedSpool" class exists, but it couldn't be > > found > > in the mailet-packages. > > > > <mailetpackages> > > <mailetpackage>org.apache.james.transport.mailets</mailetpackage> > > <mailetpackage>org.apache.james.transport.mailets.smime > > </mailetpackage> > > <mailetpackage>td.mailets</mailetpackage> > > </mailetpackages> > > > > Why does NoClassDefFoundError occur ? > > > > I'm using James-2.3.1 on WindowsXP. > > Thanks. > > > > -- > > Iwasa Kazmi <[EMAIL PROTECTED]> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Ian Lewis > [EMAIL PROTECTED] > http://www.ianlewis.org/ > -- Iwasa Kazmi <[EMAIL PROTECTED]> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
