james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Bagnara <apa...@bago.org>
Subject Contribution from an ml post (Was: Problem with Bayesian Analysis)
Date Mon, 28 Jul 2008 08:13:03 GMT
Johannes Geppert ha scritto:
> Hello Stefano,
> 
> i add following XML to the sqlResources.xml file.
> 
>     <sql name="createHamTable" db="postgresql">
>         CREATE TABLE bayesiananalysis_ham (
>             token character varying(128) NOT NULL default '',
>             occurrences bigint NOT NULL default '0',
>             PRIMARY KEY (token)
>         )
>     </sql>
>     <sql name="createSpamTable" db="postgresql">
>         CREATE TABLE bayesiananalysis_spam (
>             token character varying(128) NOT NULL default '',
>             occurrences bigint NOT NULL default '0',
>             PRIMARY KEY (token)
>         )
>     </sql>
>     <sql name="createMessageCountsTable" db="postgresql">
>         CREATE TABLE bayesiananalysis_messagecounts (
>             hamcount bigint NOT NULL default '0',
>             spamcount bigint NOT NULL default '0'
>         )
>     </sql>

An user posted this patch to make Bayesian analysis working with 
postgresql: I asked him to post the changes if he wanted us to include 
that in the next release.

Do we need a JIRA issue and this as an attachment even for this kind of 
small stuff or we are ok with the thread intent?

Stefano

> now the server starts successfully. Time will tell if the BayesianAnalysis
> work correctly.
> 
> Many Thanks for your help
> Johannes
> 
> 
> 
> Stefano Bagnara-2 wrote:
>> Johannes Geppert ha scritto:
>>> Hello Stefano,
>>>
>>> i try to use a Database (PostgreSQL 8.3), this works fine but when i
>>> enable
>>> the BayesianAnalysis
>>> now i become this Stacktrace:
>> there is a conf/sqlResources.xml files declaring queries for 
>> createHamTable, createSpamTable and createMessageCountsTable. 
>> Unfortunately this is only defined for MySQL and SqlServer.
>> If you are comfortable with XML and with PostgreSQL you can try adding 
>> the definition yourself.
>>
>> YOu simply have to add xml blocks using db="postgresql" instead of 
>> db="mysql".
>>
>> You will probably need changes to the CREATE statement according to 
>> PostgreSQL syntax).
>>
>> If you are succesfull you can then submit the changes you made so that 
>> we can include them in future releases.
>>
>> Thank you,
>> Stefano
>>
>>> Unable to init mailet BayesianAnalysis
>>> Check spool manager logs for more details.
>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException:
>>> Component named "spoolmanager" failed to pass through the Starting stage.
>>> (Reason: javax.mail.MessagingException: Exception initializing queries;                                                        
>>>   nested exception is:                                                                                                                 
>>>         java.lang.RuntimeException: Required SQL resource:
>>> 'createHamTable'
>>> was not found.).                                           
>>>         at
>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:354)                             
>>>         at
>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:226)                          
>>>         at
>>> org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:530)                    
>>>         at
>>> org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:478)                 
>>>         at
>>> org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:409)                   
>>>         at
>>> org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:180)                      
>>>         at
>>> org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260)                                           
>>>         at
>>> org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:295)                                   
>>>         at
>>> org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(DefaultKernel.java:376)                            
>>>         at
>>> org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:357)                              
>>>         at
>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542)                          
>>>         at
>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535)                          
>>>         at
>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:520)                         
>>>         at
>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:509)           
>>>         at
>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:268)                             
>>>         at
>>> org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:198)                                                           
>>>         at
>>> org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:184)                                                       
>>>         at
>>> org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145)                                                          
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                 
>>>         at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                               
>>>         at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                       
>>>         at java.lang.reflect.Method.invoke(Method.java:597)                                                                            
>>>         at org.apache.avalon.phoenix.launcher.Main.startup(Main.java:135)                                                              
>>>         at org.apache.avalon.phoenix.launcher.Main.main(Main.java:84)                                                                  
>>> Caused by: javax.mail.MessagingException: Exception initializing queries;                                                              
>>>   nested exception is:                                                                                                                 
>>>         java.lang.RuntimeException: Required SQL resource:
>>> 'createHamTable'
>>> was not found.                                             
>>>         at
>>> org.apache.james.transport.mailets.BayesianAnalysis.initDb(BayesianAnalysis.java:254)                                       
>>>         at
>>> org.apache.james.transport.mailets.BayesianAnalysis.init(BayesianAnalysis.java:225)                                         
>>>         at org.apache.mailet.GenericMailet.init(GenericMailet.java:152)                                                                
>>>         at
>>> org.apache.james.transport.JamesMailetLoader.getMailet(JamesMailetLoader.java:54)                                           
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                 
>>>         at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                               
>>>         at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                       
>>>         at java.lang.reflect.Method.invoke(Method.java:597)                                                                            
>>>         at
>>> org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invoke(BlockInvocationHandler.java:134)             
>>>         at $Proxy10.getMailet(Unknown Source)                                                                                          
>>>         at
>>> org.apache.james.transport.JamesSpoolManager.initialize(JamesSpoolManager.java:203)                                         
>>>         at
>>> org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)                                      
>>>         at
>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:200)                          
>>>         ... 22 more                                                                                                                    
>>> Caused by: java.lang.RuntimeException: Required SQL resource:
>>> 'createHamTable' was not found.                                          
>>>         at
>>> org.apache.james.util.SqlResources.getSqlString(SqlResources.java:357)                                                      
>>>         at
>>> org.apache.james.util.JDBCBayesianAnalyzer.createTable(JDBCBayesianAnalyzer.java:400)                                       
>>>         at
>>> org.apache.james.util.JDBCBayesianAnalyzer.checkTables(JDBCBayesianAnalyzer.java:373)                                       
>>>         at
>>> org.apache.james.util.JDBCBayesianAnalyzer.initSqlQueries(JDBCBayesianAnalyzer.java:360)                                    
>>>         at
>>> org.apache.james.transport.mailets.BayesianAnalysis.initDb(BayesianAnalysis.java:252)                                       
>>>         ... 34 more                                                                                                                    
>>> There was an uncaught exception:                                                                                                       
>>>
>>> Any idea who i can solve this problem?
>>>
>>> Bye
>>> Johannes
>>>
>>>
>>>
>>> Stefano Bagnara-2 wrote:
>>>> Hi Johannes,
>>>>
>>>> the BayesianAnalysis mailet only support db repository and not file 
>>>> repository.
>>>> So if you want to use it you will have to setup a db and use it.
>>>>
>>>> Stefano
>>>>
>>>> Johannes Geppert ha scritto:
>>>>> Hello Stefano,
>>>>>
>>>>> and hear is the Stacktrace:
>>>>>
>>>>> Using PHOENIX_HOME:   /opt/james-2.3.1               
>>>>> Using PHOENIX_TMPDIR: /opt/james-2.3.1/temp          
>>>>> Using JAVA_HOME:      /usr/lib64/jvm/java            
>>>>> Running Phoenix:                                     
>>>>>
>>>>> Phoenix 4.2
>>>>>
>>>>> James Mail Server 2.3.1
>>>>> Unable to init mailet BayesianAnalysis
>>>>> Check spool manager logs for more details.
>>>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException:
>>>>> Component named "spoolmanager" failed to pass through the Starting
>>>>> stage.
>>>>> (Reason: javax.mail.MessagingException: Can't get datasource;                                                                  
>>>>>   nested exception is:                                                                                                                 
>>>>>         org.apache.avalon.framework.service.ServiceException: Unable to
>>>>> provide DataSourceComponent for var/mail/ (Key='var/mail/')).  
>>>>>         at
>>>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:354)                             
>>>>>         at
>>>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:226)                          
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:530)                    
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:478)                 
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:409)                   
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:180)                      
>>>>>         at
>>>>> org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260)                                           
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:295)                                   
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(DefaultKernel.java:376)                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:357)                              
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542)                          
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535)                          
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:520)                         
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:509)           
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:268)                             
>>>>>         at
>>>>> org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:198)                                                           
>>>>>         at
>>>>> org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:184)                                                       
>>>>>         at
>>>>> org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145)                                                          
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                 
>>>>>         at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                               
>>>>>         at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                       
>>>>>         at java.lang.reflect.Method.invoke(Method.java:597)                                                                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.launcher.Main.startup(Main.java:135)                                                              
>>>>>         at org.apache.avalon.phoenix.launcher.Main.main(Main.java:84)                                                                  
>>>>> Caused by: javax.mail.MessagingException: Can't get datasource;                                                                        
>>>>>   nested exception is:                                                                                                                 
>>>>>         org.apache.avalon.framework.service.ServiceException: Unable to
>>>>> provide DataSourceComponent for var/mail/ (Key='var/mail/')    
>>>>>         at
>>>>> org.apache.james.transport.mailets.BayesianAnalysis.initDb(BayesianAnalysis.java:248)                                       
>>>>>         at
>>>>> org.apache.james.transport.mailets.BayesianAnalysis.init(BayesianAnalysis.java:225)                                         
>>>>>         at org.apache.mailet.GenericMailet.init(GenericMailet.java:152)                                                                
>>>>>         at
>>>>> org.apache.james.transport.JamesMailetLoader.getMailet(JamesMailetLoader.java:54)                                           
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                 
>>>>>         at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                               
>>>>>         at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                       
>>>>>         at java.lang.reflect.Method.invoke(Method.java:597)                                                                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invoke(BlockInvocationHandler.java:134)             
>>>>>         at $Proxy10.getMailet(Unknown Source)                                                                                          
>>>>>         at
>>>>> org.apache.james.transport.JamesSpoolManager.initialize(JamesSpoolManager.java:203)                                         
>>>>>         at
>>>>> org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)                                      
>>>>>         at
>>>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:200)                          
>>>>>         ... 22 more                                                                                                                    
>>>>> Caused by: org.apache.avalon.framework.service.ServiceException: Unable
>>>>> to
>>>>> provide DataSourceComponent for var/mail/ (Key='var/mail/') 
>>>>>         at
>>>>> org.apache.avalon.cornerstone.blocks.datasources.DefaultDataSourceSelector.select(DefaultDataSourceSelector.java:209)       
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                 
>>>>>         at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                               
>>>>>         at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                       
>>>>>         at java.lang.reflect.Method.invoke(Method.java:597)                                                                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invoke(BlockInvocationHandler.java:134)             
>>>>>         at $Proxy1.select(Unknown Source)                                                                                              
>>>>>         at
>>>>> org.apache.james.transport.mailets.BayesianAnalysis.initDb(BayesianAnalysis.java:246)                                       
>>>>>         ... 34 more                                                                                                                    
>>>>> There was an uncaught exception:                                                                                                       
>>>>> ---------------------------------------------------------                                                                              
>>>>> --- Message ---                                                                                                                        
>>>>> Failed to start application james.                                                                                                     
>>>>> --- Stack Trace ---                                                                                                                    
>>>>> org.apache.avalon.phoenix.interfaces.DeploymentException: Failed to
>>>>> start
>>>>> application james.                                           
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:379)                              
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542)                          
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535)                          
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:520)                         
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:509)           
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:268)                             
>>>>>         at
>>>>> org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:198)                                                           
>>>>>         at
>>>>> org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:184)                                                       
>>>>>         at
>>>>> org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145)                                                          
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                 
>>>>>         at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                               
>>>>>         at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                       
>>>>>         at java.lang.reflect.Method.invoke(Method.java:597)                                                                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.launcher.Main.startup(Main.java:135)                                                              
>>>>>         at org.apache.avalon.phoenix.launcher.Main.main(Main.java:84)                                                                  
>>>>> Caused by: org.apache.avalon.framework.CascadingException: Failed to
>>>>> start
>>>>> application james.                                          
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:313)                                   
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(DefaultKernel.java:376)                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:357)                              
>>>>>         ... 14 more                                                                                                                    
>>>>> Caused by: org.apache.avalon.phoenix.interfaces.ApplicationException:
>>>>> Component named "spoolmanager" failed to pass through the Starting
>>>>> stage.
>>>>> (Reason: javax.mail.MessagingException: Can't get datasource;                                                                 
>>>>>   nested exception is:                                                                                                                 
>>>>>         org.apache.avalon.framework.service.ServiceException: Unable to
>>>>> provide DataSourceComponent for var/mail/ (Key='var/mail/')).  
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:186)                      
>>>>>         at
>>>>> org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260)                                           
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:295)                                   
>>>>>         ... 16 more                                                                                                                    
>>>>> Caused by:
>>>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException:
>>>>> Component named "spoolmanager" failed to pass through the Starting
>>>>> stage.
>>>>> (Reason: javax.mail.MessagingException: Can't get datasource;                                                       
>>>>>   nested exception is:                                                                                                                 
>>>>>         org.apache.avalon.framework.service.ServiceException: Unable to
>>>>> provide DataSourceComponent for var/mail/ (Key='var/mail/')).  
>>>>>         at
>>>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:354)                             
>>>>>         at
>>>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:226)                          
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:530)                    
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:478)                 
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:409)                   
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:180)                      
>>>>>         ... 18 more                                                                                                                    
>>>>> Caused by: javax.mail.MessagingException: Can't get datasource;                                                                        
>>>>>   nested exception is:                                                                                                                 
>>>>>         org.apache.avalon.framework.service.ServiceException: Unable to
>>>>> provide DataSourceComponent for var/mail/ (Key='var/mail/')    
>>>>>         at
>>>>> org.apache.james.transport.mailets.BayesianAnalysis.initDb(BayesianAnalysis.java:248)                                       
>>>>>         at
>>>>> org.apache.james.transport.mailets.BayesianAnalysis.init(BayesianAnalysis.java:225)                                         
>>>>>         at org.apache.mailet.GenericMailet.init(GenericMailet.java:152)                                                                
>>>>>         at
>>>>> org.apache.james.transport.JamesMailetLoader.getMailet(JamesMailetLoader.java:54)                                           
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                 
>>>>>         at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                               
>>>>>         at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                       
>>>>>         at java.lang.reflect.Method.invoke(Method.java:597)                                                                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invoke(BlockInvocationHandler.java:134)             
>>>>>         at $Proxy10.getMailet(Unknown Source)                                                                                          
>>>>>         at
>>>>> org.apache.james.transport.JamesSpoolManager.initialize(JamesSpoolManager.java:203)                                         
>>>>>         at
>>>>> org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)                                      
>>>>>         at
>>>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:200)                          
>>>>>         ... 22 more                                                                                                                    
>>>>> Caused by: org.apache.avalon.framework.service.ServiceException: Unable
>>>>> to
>>>>> provide DataSourceComponent for var/mail/ (Key='var/mail/') 
>>>>>         at
>>>>> org.apache.avalon.cornerstone.blocks.datasources.DefaultDataSourceSelector.select(DefaultDataSourceSelector.java:209)       
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                 
>>>>>         at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                               
>>>>>         at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                       
>>>>>         at java.lang.reflect.Method.invoke(Method.java:597)                                                                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invoke(BlockInvocationHandler.java:134)             
>>>>>         at $Proxy1.select(Unknown Source)                                                                                              
>>>>>         at
>>>>> org.apache.james.transport.mailets.BayesianAnalysis.initDb(BayesianAnalysis.java:246)                                       
>>>>>         ... 34 more                                                                                                                    
>>>>> rethrown from                                                                                                                          
>>>>> org.apache.avalon.framework.CascadingException: Failed to start
>>>>> application
>>>>> james.                                                     
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:313)                                   
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(DefaultKernel.java:376)                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:357)                              
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542)                          
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535)                          
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:520)                         
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:509)           
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:268)                             
>>>>>         at
>>>>> org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:198)                                                           
>>>>>         at
>>>>> org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:184)                                                       
>>>>>         at
>>>>> org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145)                                                          
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                 
>>>>>         at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                               
>>>>>         at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                       
>>>>>         at java.lang.reflect.Method.invoke(Method.java:597)                                                                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.launcher.Main.startup(Main.java:135)                                                              
>>>>>         at org.apache.avalon.phoenix.launcher.Main.main(Main.java:84)                                                                  
>>>>> Caused by: org.apache.avalon.phoenix.interfaces.ApplicationException:
>>>>> Component named "spoolmanager" failed to pass through the Starting
>>>>> stage.
>>>>> (Reason: javax.mail.MessagingException: Can't get datasource;                                                                 
>>>>>   nested exception is:                                                                                                                 
>>>>>         org.apache.avalon.framework.service.ServiceException: Unable to
>>>>> provide DataSourceComponent for var/mail/ (Key='var/mail/')).  
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:186)                      
>>>>>         at
>>>>> org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260)                                           
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:295)                                   
>>>>>         ... 16 more                                                                                                                    
>>>>> Caused by:
>>>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException:
>>>>> Component named "spoolmanager" failed to pass through the Starting
>>>>> stage.
>>>>> (Reason: javax.mail.MessagingException: Can't get datasource;                                                       
>>>>>   nested exception is:                                                                                                                 
>>>>>         org.apache.avalon.framework.service.ServiceException: Unable to
>>>>> provide DataSourceComponent for var/mail/ (Key='var/mail/')).  
>>>>>         at
>>>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:354)                             
>>>>>         at
>>>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:226)                          
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:530)                    
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:478)                 
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:409)                   
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:180)                      
>>>>>         ... 18 more                                                                                                                    
>>>>> Caused by: javax.mail.MessagingException: Can't get datasource;                                                                        
>>>>>   nested exception is:                                                                                                                 
>>>>>         org.apache.avalon.framework.service.ServiceException: Unable to
>>>>> provide DataSourceComponent for var/mail/ (Key='var/mail/')    
>>>>>         at
>>>>> org.apache.james.transport.mailets.BayesianAnalysis.initDb(BayesianAnalysis.java:248)                                       
>>>>>         at
>>>>> org.apache.james.transport.mailets.BayesianAnalysis.init(BayesianAnalysis.java:225)                                         
>>>>>         at org.apache.mailet.GenericMailet.init(GenericMailet.java:152)                                                                
>>>>>         at
>>>>> org.apache.james.transport.JamesMailetLoader.getMailet(JamesMailetLoader.java:54)                                           
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                 
>>>>>         at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                               
>>>>>         at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                       
>>>>>         at java.lang.reflect.Method.invoke(Method.java:597)                                                                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invoke(BlockInvocationHandler.java:134)             
>>>>>         at $Proxy10.getMailet(Unknown Source)                                                                                          
>>>>>         at
>>>>> org.apache.james.transport.JamesSpoolManager.initialize(JamesSpoolManager.java:203)                                         
>>>>>         at
>>>>> org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)                                      
>>>>>         at
>>>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:200)                          
>>>>>         ... 22 more                                                                                                                    
>>>>> Caused by: org.apache.avalon.framework.service.ServiceException: Unable
>>>>> to
>>>>> provide DataSourceComponent for var/mail/ (Key='var/mail/') 
>>>>>         at
>>>>> org.apache.avalon.cornerstone.blocks.datasources.DefaultDataSourceSelector.select(DefaultDataSourceSelector.java:209)       
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                 
>>>>>         at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                               
>>>>>         at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                       
>>>>>         at java.lang.reflect.Method.invoke(Method.java:597)                                                                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invoke(BlockInvocationHandler.java:134)             
>>>>>         at $Proxy1.select(Unknown Source)                                                                                              
>>>>>         at
>>>>> org.apache.james.transport.mailets.BayesianAnalysis.initDb(BayesianAnalysis.java:246)                                       
>>>>>         ... 34 more                                                                                                                    
>>>>> rethrown from                                                                                                                          
>>>>> org.apache.avalon.phoenix.interfaces.ApplicationException: Component
>>>>> named
>>>>> "spoolmanager" failed to pass through the Starting stage. (Reason:
>>>>> javax.mail.MessagingException: Can't get datasource;                                                                            
>>>>>   nested exception is:                                                                                                                 
>>>>>         org.apache.avalon.framework.service.ServiceException: Unable to
>>>>> provide DataSourceComponent for var/mail/ (Key='var/mail/')).  
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:186)                      
>>>>>         at
>>>>> org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260)                                           
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:295)                                   
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(DefaultKernel.java:376)                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:357)                              
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542)                          
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535)                          
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:520)                         
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:509)           
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:268)                             
>>>>>         at
>>>>> org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:198)                                                           
>>>>>         at
>>>>> org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:184)                                                       
>>>>>         at
>>>>> org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145)                                                          
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                 
>>>>>         at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                               
>>>>>         at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                       
>>>>>         at java.lang.reflect.Method.invoke(Method.java:597)                                                                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.launcher.Main.startup(Main.java:135)                                                              
>>>>>         at org.apache.avalon.phoenix.launcher.Main.main(Main.java:84)                                                                  
>>>>> Caused by:
>>>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException:
>>>>> Component named "spoolmanager" failed to pass through the Starting
>>>>> stage.
>>>>> (Reason: javax.mail.MessagingException: Can't get datasource;                                                       
>>>>>   nested exception is:                                                                                                                 
>>>>>         org.apache.avalon.framework.service.ServiceException: Unable to
>>>>> provide DataSourceComponent for var/mail/ (Key='var/mail/')).  
>>>>>         at
>>>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:354)                             
>>>>>         at
>>>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:226)                          
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:530)                    
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:478)                 
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:409)                   
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:180)                      
>>>>>         ... 18 more                                                                                                                    
>>>>> Caused by: javax.mail.MessagingException: Can't get datasource;                                                                        
>>>>>   nested exception is:                                                                                                                 
>>>>>         org.apache.avalon.framework.service.ServiceException: Unable to
>>>>> provide DataSourceComponent for var/mail/ (Key='var/mail/')    
>>>>>         at
>>>>> org.apache.james.transport.mailets.BayesianAnalysis.initDb(BayesianAnalysis.java:248)                                       
>>>>>         at
>>>>> org.apache.james.transport.mailets.BayesianAnalysis.init(BayesianAnalysis.java:225)                                         
>>>>>         at org.apache.mailet.GenericMailet.init(GenericMailet.java:152)                                                                
>>>>>         at
>>>>> org.apache.james.transport.JamesMailetLoader.getMailet(JamesMailetLoader.java:54)                                           
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                 
>>>>>         at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                               
>>>>>         at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                       
>>>>>         at java.lang.reflect.Method.invoke(Method.java:597)                                                                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invoke(BlockInvocationHandler.java:134)             
>>>>>         at $Proxy10.getMailet(Unknown Source)                                                                                          
>>>>>         at
>>>>> org.apache.james.transport.JamesSpoolManager.initialize(JamesSpoolManager.java:203)                                         
>>>>>         at
>>>>> org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)                                      
>>>>>         at
>>>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:200)                          
>>>>>         ... 22 more                                                                                                                    
>>>>> Caused by: org.apache.avalon.framework.service.ServiceException: Unable
>>>>> to
>>>>> provide DataSourceComponent for var/mail/ (Key='var/mail/') 
>>>>>         at
>>>>> org.apache.avalon.cornerstone.blocks.datasources.DefaultDataSourceSelector.select(DefaultDataSourceSelector.java:209)       
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                 
>>>>>         at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                               
>>>>>         at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                       
>>>>>         at java.lang.reflect.Method.invoke(Method.java:597)                                                                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invoke(BlockInvocationHandler.java:134)             
>>>>>         at $Proxy1.select(Unknown Source)                                                                                              
>>>>>         at
>>>>> org.apache.james.transport.mailets.BayesianAnalysis.initDb(BayesianAnalysis.java:246)                                       
>>>>>         ... 34 more                                                                                                                    
>>>>> rethrown from                                                                                                                          
>>>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException:
>>>>> Component named "spoolmanager" failed to pass through the Starting
>>>>> stage.
>>>>> (Reason: javax.mail.MessagingException: Can't get datasource;                                                                  
>>>>>   nested exception is:                                                                                                                 
>>>>>         org.apache.avalon.framework.service.ServiceException: Unable to
>>>>> provide DataSourceComponent for var/mail/ (Key='var/mail/')).  
>>>>>         at
>>>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:354)                             
>>>>>         at
>>>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:226)                          
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:530)                    
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:478)                 
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:409)                   
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:180)                      
>>>>>         at
>>>>> org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260)                                           
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:295)                                   
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(DefaultKernel.java:376)                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:357)                              
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542)                          
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535)                          
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:520)                         
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:509)           
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:268)                             
>>>>>         at
>>>>> org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:198)                                                           
>>>>>         at
>>>>> org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:184)                                                       
>>>>>         at
>>>>> org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145)                                                          
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                 
>>>>>         at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                               
>>>>>         at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                       
>>>>>         at java.lang.reflect.Method.invoke(Method.java:597)                                                                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.launcher.Main.startup(Main.java:135)                                                              
>>>>>         at org.apache.avalon.phoenix.launcher.Main.main(Main.java:84)                                                                  
>>>>> Caused by: javax.mail.MessagingException: Can't get datasource;                                                                        
>>>>>   nested exception is:                                                                                                                 
>>>>>         org.apache.avalon.framework.service.ServiceException: Unable to
>>>>> provide DataSourceComponent for var/mail/ (Key='var/mail/')    
>>>>>         at
>>>>> org.apache.james.transport.mailets.BayesianAnalysis.initDb(BayesianAnalysis.java:248)                                       
>>>>>         at
>>>>> org.apache.james.transport.mailets.BayesianAnalysis.init(BayesianAnalysis.java:225)                                         
>>>>>         at org.apache.mailet.GenericMailet.init(GenericMailet.java:152)                                                                
>>>>>         at
>>>>> org.apache.james.transport.JamesMailetLoader.getMailet(JamesMailetLoader.java:54)                                           
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                 
>>>>>         at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                               
>>>>>         at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                       
>>>>>         at java.lang.reflect.Method.invoke(Method.java:597)                                                                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invoke(BlockInvocationHandler.java:134)             
>>>>>         at $Proxy10.getMailet(Unknown Source)                                                                                          
>>>>>         at
>>>>> org.apache.james.transport.JamesSpoolManager.initialize(JamesSpoolManager.java:203)                                         
>>>>>         at
>>>>> org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)                                      
>>>>>         at
>>>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:200)                          
>>>>>         ... 22 more                                                                                                                    
>>>>> Caused by: org.apache.avalon.framework.service.ServiceException: Unable
>>>>> to
>>>>> provide DataSourceComponent for var/mail/ (Key='var/mail/') 
>>>>>         at
>>>>> org.apache.avalon.cornerstone.blocks.datasources.DefaultDataSourceSelector.select(DefaultDataSourceSelector.java:209)       
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                 
>>>>>         at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                               
>>>>>         at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                       
>>>>>         at java.lang.reflect.Method.invoke(Method.java:597)                                                                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invoke(BlockInvocationHandler.java:134)             
>>>>>         at $Proxy1.select(Unknown Source)                                                                                              
>>>>>         at
>>>>> org.apache.james.transport.mailets.BayesianAnalysis.initDb(BayesianAnalysis.java:246)                                       
>>>>>         ... 34 more                                                                                                                    
>>>>> rethrown from                                                                                                                          
>>>>> javax.mail.MessagingException: Can't get datasource;                                                                                   
>>>>>   nested exception is:                                                                                                                 
>>>>>         org.apache.avalon.framework.service.ServiceException: Unable to
>>>>> provide DataSourceComponent for var/mail/ (Key='var/mail/')    
>>>>>         at
>>>>> org.apache.james.transport.mailets.BayesianAnalysis.initDb(BayesianAnalysis.java:248)                                       
>>>>>         at
>>>>> org.apache.james.transport.mailets.BayesianAnalysis.init(BayesianAnalysis.java:225)                                         
>>>>>         at org.apache.mailet.GenericMailet.init(GenericMailet.java:152)                                                                
>>>>>         at
>>>>> org.apache.james.transport.JamesMailetLoader.getMailet(JamesMailetLoader.java:54)                                           
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                 
>>>>>         at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                               
>>>>>         at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                       
>>>>>         at java.lang.reflect.Method.invoke(Method.java:597)                                                                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invoke(BlockInvocationHandler.java:134)             
>>>>>         at $Proxy10.getMailet(Unknown Source)                                                                                          
>>>>>         at
>>>>> org.apache.james.transport.JamesSpoolManager.initialize(JamesSpoolManager.java:203)                                         
>>>>>         at
>>>>> org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)                                      
>>>>>         at
>>>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:200)                          
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:530)                    
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:478)                 
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:409)                   
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:180)                      
>>>>>         at
>>>>> org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260)                                           
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:295)                                   
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(DefaultKernel.java:376)                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:357)                              
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542)                          
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535)                          
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:520)                         
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:509)           
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:268)                             
>>>>>         at
>>>>> org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:198)                                                           
>>>>>         at
>>>>> org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:184)                                                       
>>>>>         at
>>>>> org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145)                                                          
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                 
>>>>>         at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                               
>>>>>         at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                       
>>>>>         at java.lang.reflect.Method.invoke(Method.java:597)                                                                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.launcher.Main.startup(Main.java:135)                                                              
>>>>>         at org.apache.avalon.phoenix.launcher.Main.main(Main.java:84)                                                                  
>>>>> Caused by: org.apache.avalon.framework.service.ServiceException: Unable
>>>>> to
>>>>> provide DataSourceComponent for var/mail/ (Key='var/mail/') 
>>>>>         at
>>>>> org.apache.avalon.cornerstone.blocks.datasources.DefaultDataSourceSelector.select(DefaultDataSourceSelector.java:209)       
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                 
>>>>>         at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                               
>>>>>         at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                       
>>>>>         at java.lang.reflect.Method.invoke(Method.java:597)                                                                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invoke(BlockInvocationHandler.java:134)             
>>>>>         at $Proxy1.select(Unknown Source)                                                                                              
>>>>>         at
>>>>> org.apache.james.transport.mailets.BayesianAnalysis.initDb(BayesianAnalysis.java:246)                                       
>>>>>         ... 34 more                                                                                                                    
>>>>> rethrown from                                                                                                                          
>>>>> org.apache.avalon.framework.service.ServiceException: Unable to provide
>>>>> DataSourceComponent for var/mail/ (Key='var/mail/')            
>>>>>         at
>>>>> org.apache.avalon.cornerstone.blocks.datasources.DefaultDataSourceSelector.select(DefaultDataSourceSelector.java:209)       
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                 
>>>>>         at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                               
>>>>>         at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                       
>>>>>         at java.lang.reflect.Method.invoke(Method.java:597)                                                                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invoke(BlockInvocationHandler.java:134)             
>>>>>         at $Proxy1.select(Unknown Source)                                                                                              
>>>>>         at
>>>>> org.apache.james.transport.mailets.BayesianAnalysis.initDb(BayesianAnalysis.java:246)                                       
>>>>>         at
>>>>> org.apache.james.transport.mailets.BayesianAnalysis.init(BayesianAnalysis.java:225)                                         
>>>>>         at org.apache.mailet.GenericMailet.init(GenericMailet.java:152)                                                                
>>>>>         at
>>>>> org.apache.james.transport.JamesMailetLoader.getMailet(JamesMailetLoader.java:54)                                           
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                 
>>>>>         at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                               
>>>>>         at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                       
>>>>>         at java.lang.reflect.Method.invoke(Method.java:597)                                                                            
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.BlockInvocationHandler.invoke(BlockInvocationHandler.java:134)             
>>>>>         at $Proxy10.getMailet(Unknown Source)                                                                                          
>>>>>         at
>>>>> org.apache.james.transport.JamesSpoolManager.initialize(JamesSpoolManager.java:203)                                         
>>>>>         at
>>>>> org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)                                      
>>>>>         at
>>>>> org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:200)                          
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:530)                    
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:478)
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:409)
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:180)
>>>>>         at
>>>>> org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260)
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:295)
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(DefaultKernel.java:376)
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:357)
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542)
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535)
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:520)
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:509)
>>>>>         at
>>>>> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:268)
>>>>>         at
>>>>> org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:198)
>>>>>         at
>>>>> org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:184)
>>>>>         at
>>>>> org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145)
>>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>         at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>         at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>         at
>>>>> org.apache.avalon.phoenix.launcher.Main.startup(Main.java:135)
>>>>>         at org.apache.avalon.phoenix.launcher.Main.main(Main.java:84)
>>>>>
>>>>> ---------------------------------------------------------
>>>>> The log file may contain further details of error.
>>>>> Please check the configuration files and restart Phoenix.
>>>>> If the problem persists, contact the Avalon project.  See
>>>>> http://jakarta.apache.org/avalon for more information.
>>>>> Shutting down Phoenix.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Stefano Bagnara-2 wrote:
>>>>>> Johannes Geppert ha scritto:
>>>>>>> Hello Stefano,
>>>>>>>
>>>>>>> thank you for quick replay.
>>>>>>> You are right the james server are running on an linux machine.
>>>>>>> But in normal case the server starts up and work, only when i try to
>>>>>>> activate the BayesianAnalysis mailet
>>>>>>> the startup failed.
>>>>>> Then give us your BayesianAnalysis configuration and look for logs in 
>>>>>> the jameshome/apps/james/logs/mailet-*.log
>>>>>>
>>>>>> Stefano
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>
>>>>
>>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message