Noel - I've spent literally hours searching through the list archives and trying to get this to work, but no luck yet. These are the steps I've taken to try and get my simple "MailetTest" mailet to work. (NOTE this is on Win32).

1. Compile MailetTest.java to MailetTest.class
2. Create jar file:
jar cvf MailetTest.jar MailetTest.class

3. Copy MailetTest.jar to <jamesdir>/build/lib
4. Rebuild james. NOTE: At this point, the james.sar file DOES contain the MailetTest.jar file within.

5. Run James to create config xml files. Stop James.
6. Edit config.xml to add MailetTest:
<mailet match="All" class="MailetTest"></mailet>

7. Run James again.

Program dies with uncaught exception. From the output trace:
Caused by: org.apache.mailet.MailetException: Could not load mailet (MailetTest)
;
nested exception is:
java.lang.IllegalAccessException: Class org.apache.james.transport.Maile
tLoader can not access a member of class MailetTest with modifiers ""


What am I missing??

-Dave

From: "Noel J. Bergman" <[EMAIL PROTECTED]>
Reply-To: "James Users List" <[EMAIL PROTECTED]>
To: "James Users List" <[EMAIL PROTECTED]>
Subject: RE: Turning off James email storage
Date: Wed, 25 Dec 2002 21:54:06 -0500
MIME-Version: 1.0
Received: from exchange.sun.com ([192.18.33.10]) by mc7-f39.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 25 Dec 2002 18:54:08 -0800
Received: (qmail 24367 invoked by uid 97); 26 Dec 2002 02:55:20 -0000
Received: (qmail 24355 invoked by uid 98); 26 Dec 2002 02:55:20 -0000
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Subscribe: <mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Post: <mailto:[EMAIL PROTECTED]>
List-Id: "James Users List" <james-user.jakarta.apache.org>
Delivered-To: mailing list [EMAIL PROTECTED]
X-Antivirus: nagoya (v4218 created Aug 14 2002)
Message-ID: <[EMAIL PROTECTED]>
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
In-Reply-To: <[EMAIL PROTECTED]>
Importance: Normal
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 26 Dec 2002 02:54:08.0438 (UTC) FILETIME=[0F71DD60:01C2AC8A]

Dave,

1. James doesn't recognize any configuration items for a Mailet. Each
mailet handles that, and yes, you need to setState(Mail.GHOST).

2. Any references to a .bar file are obsolete (as would be any code still
using it). Phoenix uses a .sar file now. Your best bet, for now, would be
to add the code to the correct path within the .sar file, which is just a
JAR.

--- Noel


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

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail&xAPID=42&PS=47575&PI=7324&DI=7474&SU= http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_addphotos_3mf


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

Reply via email to