*If* you are adding your own mailet or matcher, just put your jar in the <james>/apps/james/SAR-INF/lib directory of your server, without any change to james.sar. This (possible from james-2.2.0+) because adding your own matcher/mailet is considered a kind of (sofisticated) configuration setup.

If instead you are *extending/modifying James* (like doing your variation of the JDBCMailRepository class), IMHO the best approach is - as you said yourself - "to work from the source code and build James from scratch for development".

Vincenzo

John Neale wrote:

Thanks Steve. I added the jar to the existing james.sar file using winzip. My preference would be not to do this as I would prefer to be able to take a standard install and add to it.
I guess instead I'll need to work from the source code and build James from 
scratch for development instead.

Cheers,

John

-----Original Message-----
From: Steve Short [mailto:[EMAIL PROTECTED] Sent: 05 July 2005 19:32
To: James Users List
Subject: RE: Writing a new mail repository

You should be able to get this to work by putting your classes into a jar file and adding this jar to the SAR-INF/lib folder within the james.sar file.
Steve

-----Original Message-----
From: John Neale [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 05, 2005 11:21 AM
To: [email protected]
Subject: Writing a new mail repository

Hi,

I have just started using James and I have a bit of a newbie question.

I want to write variation to JDBCMailRepository class but I keep getting classloader issues. If I have my new classes in a jar file and put them in the ext directory and then configure the config.xml to use them I get class not found errors on my class.

If I put my jar file in the lib directory I get class not found errors for MailRepository. So it's finding my new class but not in the same classloader as the classes in the james.jar.

Is there a way to do this or do I need to build James from scratch rather than "plug-in" my new classes to a distribution?


thanks,

John



This email transmission is confidential and intended solely for the person or organisation to whom it is addressed. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of INSL. If you have received this message in error, do not open any attachments but please notify the INSL Service Desk on +44 (0)870 241 1703, and delete this message from your system. This email has been scanned for inappropriate content by SpheriQ, the intelligent message security solution from INSL.



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






This email transmission is confidential and intended solely for the person or 
organisation to whom it is addressed. If you are not the intended recipient, be 
advised that you have received this email in error and that any use, 
dissemination, forwarding, printing, or copying of this email is strictly 
prohibited. Any views expressed in this message are those of the individual 
sender, except where the sender specifically states them to be the views of 
INSL. If you have received this message in error, do not open any attachments 
but please notify the INSL Service Desk on +44 (0)870 241 1703, and delete this 
message from your system. This email has been scanned for inappropriate content 
by SpheriQ, the intelligent message security solution from INSL.

------------------------------------------------------------------------

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


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

Reply via email to