Robert Burrell Donkin wrote:
On Thu, Dec 4, 2008 at 9:06 AM, Megha Agarval <[EMAIL PROTECTED]> wrote:
Hi,

I am running the spring deployment version of James. The IMAP service starts
on the required port but while accessing the mailbox I get the following
exception:

java.lang.ClassNotFoundException:
org.apache.james.mailboxmanager.repository.MailboxManagerMailRepository

In the config file I am using the following in the mailboxmanager block:

<factory
class="org.apache.james.mailboxmanager.torque.TorqueMailboxManagerFactory">

Any ideas how to fix this ?

if you're using an old assembly configuration (rather than vanilla
trunk) you need to update it. this is the current block:

  <!-- IMAP server -->
  <block name="imapserver" class="org.apache.james.imapserver.ImapServer">
    <provide name="localusersrepository"
role="org.apache.james.api.user.UsersRepository"/>
    <provide name="sockets"
             
role="org.apache.avalon.cornerstone.services.sockets.SocketManager"/>
    <provide name="connections"
             role="org.apache.james.socket.JamesConnectionManager"/>
    <provide name="thread-manager"
             role="org.apache.avalon.cornerstone.services.threads.ThreadManager"
/>
    <provide name="dnsserver"
role="org.apache.james.api.dnsservice.DNSService"/>
    <provide name="James" role="org.apache.james.services.MailServer"/>
    <provide name="filesystem" role="org.apache.james.services.FileSystem" />
  </block>

- robert

Hi Robert,

I have the same configuration in assmbly.xml as you said.

Here is what I have in config.xml related to imap:

In James Block:

 <inboxRepository>
         <repository destinationURL="mailboxmanager://#mail/"
             postfix=".INBOX" translateDelimiters="true" type="MAIL" />
 </inboxRepository>


In Mailboxmanager block:

<mailboxmanager>
   <namespaces>
      <usernamespace name="#mail" delimiter="."/>
   </namespaces>

<factory
class="org.apache.james.mailboxmanager.torque.TorqueMailboxManagerFactory">

<configFile>file://conf/mailboxManagerSqlResources.xml</configFile>

<torque-properties>

    <property name="torque.database.default" value="mailboxmanager"/>

<property name="torque.database.mailboxmanager.adapter" value="derby"/>

    <property name="torque.dsfactory.mailboxmanager.factory"
value="org.apache.torque.dsfactory.SharedPoolDataSourceFactory"/>

    <property name="torque.dsfactory.mailboxmanager.connection.driver"
value="org.apache.derby.jdbc.EmbeddedDriver"/>

    <property name="torque.dsfactory.mailboxmanager.connection.url"
value="jdbc:derby:../apps/james/var/mailboxmanager-derbydb;create=true"/>

    <property name="torque.dsfactory.mailboxmanager.connection.user"
            value="app"/>

    <property name="torque.dsfactory.mailboxmanager.connection.password"
                           value="app"/>

    <property name="torque.dsfactory.mailboxmanager.pool.maxActive"
                           value="100"/>

</torque-properties>

</factory>

</mailboxmanager>

In ImapServer Block:

<imapserver enabled="true">
<!-- port 993 is the well-known/IANA registered port for IMAPs ie over SSL/TLS --> <!-- port 143 is the well-known/IANA registered port for Standard IMAP4 -->
      <port>10143</port>
      <handler>
       <!-- RFC 3501 requires a minimum timeout of 30 minutes -->
       <connectiontimeout>1800000</connectiontimeout>
       <streamdump enabled="true" directory="../apps/james/streamdump" />
      </handler>
</imapserver>

Is this the right config ?

Regards,
Megha



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