[ 
https://issues.apache.org/jira/browse/JAMES-1574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14513882#comment-14513882
 ] 

Jorge Figueira edited comment on JAMES-1574 at 4/27/15 10:38 AM:
-----------------------------------------------------------------

If I add hbase.jar inside the lib i get another problem but fix the first 
problem:

org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find 
class [org.apache.james.mailbox.hbase.HBaseMailboxManager] for bean with name 
'hbase-mailboxmanager' defined in class path resource 
[META-INF/org/apache/james/spring-mailbox-hbase.xml]; nested exception is 
java.lang.ClassNotFoundException: 
org.apache.james.mailbox.hbase.HBaseMailboxManager
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1262)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:576)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1331)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:341)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:320)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:307)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:261)
        at 
org.apache.james.container.spring.bean.factorypostprocessor.ConfigurationBeanFactoryPostProcessor.postProcessBeanFactory(ConfigurationBeanFactoryPostProcessor.java:59)
        at 
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:686)
        at 
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:676)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)
        at 
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
        at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
        at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
        at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4728)
        at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5166)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:940)
        at 
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1738)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: 
org.apache.james.mailbox.hbase.HBaseMailboxManager
        at 
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1305)
        at 
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1157)
        at org.springframework.util.ClassUtils.forName(ClassUtils.java:258)
        at 
org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:417)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1283)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1254)
        ... 26 more




was (Author: jorge):
If I add hbase.jar inside the lib i get another problem:

org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find 
class [org.apache.james.mailbox.hbase.HBaseMailboxManager] for bean with name 
'hbase-mailboxmanager' defined in class path resource 
[META-INF/org/apache/james/spring-mailbox-hbase.xml]; nested exception is 
java.lang.ClassNotFoundException: 
org.apache.james.mailbox.hbase.HBaseMailboxManager
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1262)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:576)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1331)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:341)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:320)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:307)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:261)
        at 
org.apache.james.container.spring.bean.factorypostprocessor.ConfigurationBeanFactoryPostProcessor.postProcessBeanFactory(ConfigurationBeanFactoryPostProcessor.java:59)
        at 
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:686)
        at 
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:676)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)
        at 
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
        at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
        at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
        at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4728)
        at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5166)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:940)
        at 
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1738)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: 
org.apache.james.mailbox.hbase.HBaseMailboxManager
        at 
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1305)
        at 
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1157)
        at org.springframework.util.ClassUtils.forName(ClassUtils.java:258)
        at 
org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:417)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1283)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1254)
        ... 26 more



> Can´t start James Server with Hbase persistence configuration
> -------------------------------------------------------------
>
>                 Key: JAMES-1574
>                 URL: https://issues.apache.org/jira/browse/JAMES-1574
>             Project: James Server
>          Issue Type: Bug
>          Components: Spring Container
>    Affects Versions: 3.0.0-beta5
>            Reporter: Jorge Figueira
>            Priority: Blocker
>         Attachments: hbase-site.xml, mailbox.conf
>
>
> Can't start James Server with Hbase configuration.
> ERROR 13:20:08,911 | james.mailprocessor | Unable to init mailet 
> LocalDelivery: org.apache.mailet.MailetException: Could not load mailet 
> (LocalDelivery) 
> (org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
> creating bean with name 'org.apache.james.transport.mailets.LocalDelivery': 
> Unsatisfied dependency expressed through bean property 'mailboxManager': Set 
> this property value or disable dependency checking for this bean.)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to