Hi Paulo, I think it whould be enough to put the jars in /path/to/james/apps/james/SAR-INF/lib/ directory ( You need to create the lib after james was started once)
bye Norman Am Dienstag, den 31.07.2007, 17:29 +0100 schrieb Paulo Sergio: > Thanks for the fast answer.. it is working now ! > i'm now trying to add a web service client to imap function (this web > service will be the repository). > the problem are the jars needed to the web service, should the jars be > inside the function jar or should they be placed and imported from the stage > directory? > > Cheers, > Paulo Fernandes > > On 7/31/07, Robert Burrell Donkin <[EMAIL PROTECTED] > wrote: > > > > On 7/31/07, Paulo Sergio <[EMAIL PROTECTED] > wrote: > > > Hi all, > > > > hi paulo > > > > > I'm trying to build james server only with Imap support i've already > > removed > > > pop3, nntp, fetchmail and smtp (i will use also a remote repository). > > > I've removed the entries related with the removed items from > > > james-assembly.xml, i also update james-comnfig.xml accordingly, but i'm > > > having some problems witch seem to be related with the old imap-function > > > > > module. > > > The james-assembly.xml file contains a imap related block (imapserver) > > this > > > block refers to the old imap function module ( <block name="imapserver" > > > class="org.apache.james.imapserver.ImapServer " > ) , i already try to > > > change it to the new experimental function ( <block name="imapserver" > > > class="org.apache.james.experimental.imapserver.ImapServer" > ) but then > > i > > > have problems with the localuserrepository block: > > > > > > Message --- > > > Unknown dependency named "org.apache.james.services.UsersRepository" > > with > > > key "org.apache.james.services.UsersRepository " declared for Component > > > imapserver. > > > --- Stack Trace --- > > > org.apache.avalon.phoenix.interfaces.DeploymentException: Unknown > > dependency > > > named "org.apache.james.services.UsersRepository " with key " > > > org.apache.james.services.UsersRepository" declared for Component > > > imapserver. > > > > > > Is this related with the missing dependency to UsersRepository on > > > experimental imap xinfo file? should i add the dependency ? > > > > the dependency is now indirect (used by the processor sub-component) > > > > i use this in my james-config.xml > > > > <!-- Experimental IMAP support > > > > Don't forget to activate mailboxmanager inboxRepository in the > > James block, if you want to receive mail in your IMAP mailbox > > --> > > <imap-connections> > > <!-- RFC 3501 requires a minimum timeout of 30 minutes --> > > <idle-timeout>1800000</idle-timeout> > > <max-connections>100</max-connections> > > <!-- > > <max-connections-per-ip>0</max-connections-per-ip> > > --> > > </imap-connections> > > > > <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>143</port> > > <handler> > > <!-- RFC 3501 requires a minimum timeout of 30 minutes --> > > <connectiontimeout>1800000</connectiontimeout> > > <streamdump enabled="true" directory="../apps/james/streamdump" /> > > </handler> > > <encoder-factory > > class='org.apache.james.experimental.imapserver.DefaultImapDecoder'/> > > <decoder-factory > > class=' > > org.apache.james.imapserver.codec.encode.main.DefaultImapEncoderFactory'/> > > <processor-factory > > class='org.apache.james.imapserver.phoenix.PhoenixImapProcessorFactory'/> > > </imapserver> > > > > and this in the assembly.xml > > > > <!-- IMAP Server --> > > <block name="imap-connections" > > class="org.apache.james.util.connection.SimpleConnectionManager" > > > > > <provide name="thread-manager" > > role=" > > org.apache.avalon.cornerstone.services.threads.ThreadManager " > > /> > > </block> > > > > <block name="imapserver" > > class="org.apache.james.experimental.imapserver.ImapServer" > > > <provide name="sockets" > > role=" > > org.apache.avalon.cornerstone.services.sockets.SocketManager"/> > > <provide name="imap-connections" > > role="org.apache.james.services.JamesConnectionManager"/> > > <provide name="James" role=" org.apache.james.services.MailServer"/> > > <provide name="thread-manager" > > role=" > > org.apache.avalon.cornerstone.services.threads.ThreadManager" > > /> > > <provide name="dnsserver" role=" org.apache.james.services.DNSServer > > "/> > > <provide name='imap-decoder' > > role='org.apache.james.imapserver.codec.decode.ImapDecoderFactory'/> > > <provide name='imap-encoder' > > role='org.apache.james.imapserver.codec.encode.ImapEncoderFactory'/> > > <provide name='imap-processor' > > role='org.apache.james.api.imap.process.ImapProcessorFactory'/> > > </block> > > > > <block name='imap-decoder' > > class='org.apache.james.experimental.imapserver.DefaultImapDecoderFactory > > '/> > > <block name='imap-encoder' > > class=' > > org.apache.james.imapserver.codec.encode.main.DefaultImapEncoderFactory'/> > > <block name='imap-processor' > > class='org.apache.james.imapserver.phoenix.PhoenixImapProcessorFactory'> > > <provide name="mailboxmanager" > > role=" > > org.apache.james.mailboxmanager.manager.MailboxManagerProvider" > > /> > > <provide name="localusersrepository" > > role="org.apache.james.services.UsersRepository"/> > > </block> > > > > see if this works for you > > > > - robert > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > !DSPAM:1,46af637e240375066393516! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
