Hi,

I had the same problem with James on RedHat 8, could
not make the recompiled SAR file to work. I tried the
second approach as described at the Apache website,
and it worked. 

So here it is:
1. Copy your Jar file into lib directory of James.
2. Copy Javamail, activation to the the same folder. U
might see some error messages that 'some' class is not
found. If so then copy the jar to lib folder.
3. In the apps/james/SAR-INF/config.xml file register
your mailet/matcher folder name under <mailetpackages>
node. You only need to mention the folder name in jar.

Now you will find the mailet is working.

Best regards,
Shakil

--- [EMAIL PROTECTED] wrote:
> Hi,
> 
> I've just developed a simple mailet stub which just
> does System.out.println() for now.  I can't get it
> to work, because James doesn't seem to be able to
> find my implementation class.
> 
> I've built a jar of my class, copied it into the
> source distribution, rebuild the sar, copied the sar
> to a directory containing the non source
> distribution of james, and then changed the
> configuration file config.xml to have my package
> name as mailetpackage and added the mailet into the
> transport bit with the following XML:
> 
> <mailet match="All" class="XmlMailProcessorMailet"/>
> 
> What have I missed?  Do I need to do anything else? 
> The error is 
> 
> C:\james-2.1\bin>run
> Using PHOENIX_HOME:   C:\james-2.1
> Using PHOENIX_TMPDIR: C:\james-2.1\temp
> Using JAVA_HOME:      c:\jdk1.3.1
> 
> Phoenix 4.0.1
> 
> James 2.1
> Unable to init mailet XmlMailProcessorMailet
> Check spool manager logs for more details.
> org.apache.mailet.MailetException: Could not load
> mailet (XmlMailProcessorMailet);
>   nested exception is:
>         java.lang.NullPointerException
>         at
>
org.apache.james.transport.MailetLoader.getMailet(MailetLoader.java
> :100)
>         at
>
org.apache.james.transport.JamesSpoolManager.initialize(JamesSpoolM
> anager.java:213)
>         at 
> 
> Platform is Windows NT.
> 
> thanks,
> 
> Tim.
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to