james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Merve Temizer <mervet2...@gmail.com>
Subject Re: ClassNotFoundException on Custom Mailet
Date Tue, 24 Jul 2012 13:24:56 GMT
Where can i find svn url of beta5?

There is

http://svn.apache.org/repos/asf/james/server/tags/james-server-3.0-beta1/

I tried

 http://svn.apache.org/repos/asf/james/server/tags/james-server-3.0-beta5/<http://svn.apache.org/repos/asf/james/server/tags/james-server-3.0-beta1/>


does not exist.

2012/7/24 Eric Charles <eric@apache.org>

> Hi,
>
> Not sure on how it was behaving on beta1 (we changed the jar/mailet
> loading since then).
>
> I you only have your mailet as custom code, the simplest is to download a
> nightly snapshot and use it.
> https://repository.apache.org/**content/repositories/**
> snapshots/org/apache/james/**apache-james/3.0-beta5-**SNAPSHOT/<https://repository.apache.org/content/repositories/snapshots/org/apache/james/apache-james/3.0-beta5-SNAPSHOT/>
>
> If you have custom code (james internals), you'd better synchronize, but
> except some pain (huge code, project, configuration... changes).
>
> Thx, Eric
>
>
>
> On 07/24/2012 02:34 PM, Merve Temizer wrote:
>
>> i have 3 beta 1.
>> Should i checkout entire project and again import it?
>> I have a lot of configurations in it, can i "synchronize with repository"
>> and get updates?
>> Can it be enough?
>> Thanks in advance for fast responses.
>>
>> 2012/7/24 Eric Charles <eric@apache.org>
>>
>>  Hi,
>>>
>>> We had a bug on jar loading and on documentation.
>>> You don't have to specify mailetpackage and you have to use the full
>>> class
>>> name.
>>>
>>> The jar in conf/lib will only work with latest snapshots.
>>>
>>> Thx, Eric
>>>
>>>
>>> On 07/24/2012 12:47 PM, Merve Temizer wrote:
>>>
>>>  Lines from my mailetcontainer.xml
>>>>
>>>>
>>>> <mailetcontainer enableJmx="true">
>>>>
>>>> <mailetpackages>
>>>>         <mailetpackage>kobu.omikuji.****Omikuji</mailetpackage>
>>>> <mailetpackage>org.apache.****james.transport.mailets</****
>>>> mailetpackage>
>>>>       <mailetpackage>org.apache.****james.transport.mailets.smime<****
>>>>
>>>> /mailetpackage>
>>>>       </mailetpackages>
>>>>
>>>> ....
>>>>
>>>> <processor state="transport" enableJmx="true">
>>>> ...
>>>>         <mailet match="RecipientIs=omikuji@****localhost"
>>>>    class="kobu.omikuji.Omikuji" >
>>>>               <jinja>omikuji@localhost</****jinja>
>>>>
>>>>         </mailet>
>>>> ...
>>>> </processor>
>>>>
>>>> ...
>>>> </mailetcontainer>
>>>>
>>>>
>>>> i added Omukuji.class into a jar and import it into james/conf/lib
>>>>
>>>> i tried many other configuration like
>>>>
>>>> <mailetpackage>kobu.omikuji</****mailetpackage>
>>>>
>>>>    <mailet match="RecipientIs=omikuji@****localhost"  class="Omikuji"
>
>>>>
>>>> than it says "i could not found org.apache.james.transport.**
>>>>
>>>> mailets.Omukuji"
>>>>
>>>> thanks for any suggestion
>>>>
>>>>
>>>>
>>> --
>>> eric | http://about.echarles.net | @echarles
>>>
>>>
>>>
>>> ------------------------------****----------------------------**
>>> --**---------
>>> To unsubscribe, e-mail: server-dev-unsubscribe@james.****apache.org<
>>> server-dev-**unsubscribe@james.apache.org<server-dev-unsubscribe@james.apache.org>
>>> >
>>> For additional commands, e-mail: server-dev-help@james.apache.****org<
>>> server-dev-help@james.**apache.org <server-dev-help@james.apache.org>>
>>>
>>>
>>>
>>
>
> --
> eric | http://about.echarles.net | @echarles
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.**apache.org<server-dev-unsubscribe@james.apache.org>
> For additional commands, e-mail: server-dev-help@james.apache.**org<server-dev-help@james.apache.org>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message