Hello,

Is there particular way that JAR files need to be created in order for James
to understand them?  That is to say, is there a particular format for the
manifest file in the JAR?

I just recreated a jar file with no manifest file (since there is no "main"
method).  I received the following error.


java.lang.NoClassDefFoundError: MatchAvailMppMsg (wrong name:
com/privacyinc/myprivacypolicy/mppswitch/mailets/MatchAvailMppMsg)

This is different from the last several errors:

java.lang.ClassNotFoundException: Requested matcher not found:
MatchAvailMppMsg.
looked in [, org.apache.james.transport.matchers.,
com.privacyinc.myprivacypolicy.mppswitch.mailets.]

Any thoughts?

Thanks,

Hut
----- Original Message -----
From: "Vincenzo Gianferrari Pini" <[EMAIL PROTECTED]>
To: "James Users List" <[EMAIL PROTECTED]>
Sent: Friday, June 20, 2003 10:23 AM
Subject: RE: Class Not Found Error in Phoenix Log


Don't put your jars in the
c:\james-2.2.0a6\work\james-1056119283384\SAR-INF\lib, only in
c:\james-2.2.0a6\apps\james\SAR-INF\lib; but it shouldn't hurt I think.

For the rest it seems allright to me, unless there is some typo (an
"invisible elefant" we call it) :-)

Vincenzo

> -----Original Message-----
> From: Hut Carspecken [mailto:[EMAIL PROTECTED]
> Sent: venerd́ 20 giugno 2003 16.46
> To: James Users List
> Subject: Class Not Found Error in Phoenix Log
>
>
> Good Morning Everyone,
>
> I am trying ot incorporate a custom mailet in James 2.2.0a6, but
> I get the following error in the Phoenix log:
>
>
> org.apache.mailet.MailetException: Could not load matcher
> (MatchAvailMppMsg);
> nested exception is:
> java.lang.ClassNotFoundException: Requested matcher not found:
> MatchAvailMppMsg.
> looked in [, org.apache.james.transport.matchers.,
> com.privacyinc.myprivacypolicy.mppswitch.mailets.]
>
>
> My matcher and mailet are: MatchAvailMppMsg and ProcessMppMsg.
> Both are in my MppSwitch.jar.  Now, I have placed the
> MppSwitch.jar file into the following directory:
>
> c:\james-2.2.0a6\apps\james\SAR-INF\lib
>
> as well as in the directory:
>
> c:\james-2.2.0a6\work\james-1056119283384\SAR-INF\lib
>
> In the config.xml file, I have placed the following code:
>
>
> <mailetpackages>
>
> <mailetpackage>org.apache.james.transport.mailets</mailetpackage>
>
> <mailetpackage>com.privacyinc.myprivacypolicy.mppswitch.mailets</m
> ailetpackage>
>
> </mailetpackages>
>
> <matcherpackages>
>
> <matcherpackage>org.apache.james.transport.matchers</matcherpackage>
>
> <matcherpackage>com.privacyinc.myprivacypolicy.mppswitch.mailets</
> matcherpackage>
>
> </matcherpackages>
>
>
>
> In addition, I placed a corresponding <mailet></mailet> tag.
>
> Does anyone have idea why James can not see the Matcher in question?
>
>
>
> Thanks!
>
> Hut
>
>
>
>


---------------------------------------------------------------------
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