Danny Angus wrote:
> As far as creating a new different type I think it should only be as hard
> as,
> a) writing the damned thing, it should implement
> o.a.j.servicesMailRepository
> b) setting it up in config:
> <repository class="com.foo.MboxRepository">
> <protocols>
> <protocol>mbox</protocol>
> </protocols>
> <types>
> <type>MAIL</type>
> </types>
> </repository>
> c) setting up mailets to use it via config
I'm trying to do that but I encountered two problems:
1) if a protocol name unknown to java.net.URL is used (for example
"mbox") a MalformedURLException gets thrown @
org.apache.avalon.cornerstone.blocks.masterstore.RepositoryManager.se
lect(RepositoryManager.java:137)
2) so I used "http" as a protocol identifier to get past that but I get
stuck anyway like this:
org.apache.avalon.framework.component.ComponentException: Cannot find or
init repository: null
at
org.apache.avalon.cornerstone.blocks.masterstore.RepositoryManager.se
lect(RepositoryManager.java:205)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.avalon.phoenix.components.application.BlockInvocationHandl
er.invoke(BlockInvocationHandler.java:92)
at $Proxy1.select(Unknown Source)
at
org.apache.james.mailrepository.AvalonXMLMailRepository.initialize(Av
alonXMLMailRepository.java:130)
(remainder of exception dump snipped)
where AvalonXMLMailRepository is the name of my repository class that is
basically a clone of the original AvalonMailRepository.
The config I'm using is this:
<repository
class="org.apache.james.mailrepository.AvalonXMLMailRepository">
<protocols>
<protocol>http</protocol>
</protocols>
<types>
<type>MAIL</type>
</types>
</repository>
Now I'll try to debug that but of course any hint would be greatly
appreciated, thanks ciao
ste
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>