james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Merve Temizer <mervet2...@gmail.com>
Subject Re: Building source
Date Tue, 31 Jul 2012 13:28:54 GMT
I added conf folder to build path now getting:

Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'jcrRepository' defined in class path resource
[context/james-mailbox-jcr-context.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class
[org.apache.jackrabbit.core.RepositoryImpl]: Constructor threw exception;
nested exception is javax.jcr.RepositoryException: Cannot instantiate
persistence manager
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:895)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 68 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not
instantiate bean class [org.apache.jackrabbit.core.RepositoryImpl]:
Constructor threw exception; nested exception is
javax.jcr.RepositoryException: Cannot instantiate persistence manager
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:108)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
... 77 more
Caused by: javax.jcr.RepositoryException: Cannot instantiate persistence
manager org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at
org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1362)
at
org.apache.jackrabbit.core.RepositoryImpl.createVersionManager(RepositoryImpl.java:503)
at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:329)
at sun.reflect.GeneratedConstructorAccessor38.newInstance(Unknown Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
... 79 more
Caused by: java.lang.IllegalStateException: this factory has already been
closed
at
org.apache.jackrabbit.core.util.db.ConnectionFactory.sanityCheck(ConnectionFactory.java:213)
at
org.apache.jackrabbit.core.util.db.ConnectionFactory.getDataSource(ConnectionFactory.java:163)
at
org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.getDataSource(BundleDbPersistenceManager.java:553)
at
org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.init(BundleDbPersistenceManager.java:521)
at
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager.init(DerbyPersistenceManager.java:250)
at
org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1353)
... 85 more
Related cause:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'imapCndLoader' defined in class path resource
[context/james-mailbox-jcr-context.xml]: Cannot resolve reference to bean
'jcrRepository' while setting bean property 'arguments' with key [0];
nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'jcrRepository' defined in class path resource
[context/james-mailbox-jcr-context.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class
[org.apache.jackrabbit.core.RepositoryImpl]: Constructor threw exception;
nested exception is javax.jcr.RepositoryException: Cannot instantiate
persistence manager
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1343)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:678)
at
org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:507)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:317)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:394)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:388)
at
org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1140)
at
org.apache.camel.spring.spi.ApplicationContextRegistry.lookupByType(ApplicationContextRegistry.java:59)
at
org.apache.camel.impl.PropertyPlaceholderDelegateRegistry.lookupByType(PropertyPlaceholderDelegateRegistry.java:61)
at
org.apache.camel.processor.DefaultChannel.getOrCreateTracer(DefaultChannel.java:208)
at
org.apache.camel.processor.DefaultChannel.initChannel(DefaultChannel.java:169)
at
org.apache.camel.model.ProcessorDefinition.wrapChannel(ProcessorDefinition.java:232)
at
org.apache.camel.model.ProcessorDefinition.createOutputsProcessor(ProcessorDefinition.java:362)
at
org.apache.camel.model.ProcessorDefinition.createOutputsProcessor(ProcessorDefinition.java:127)
at
org.apache.camel.impl.DefaultRouteContext.createProcessor(DefaultRouteContext.java:106)
at
org.apache.camel.model.ProcessorDefinition.createChildProcessor(ProcessorDefinition.java:146)
at
org.apache.camel.model.OtherwiseDefinition.createProcessor(OtherwiseDefinition.java:44)
at
org.apache.camel.model.ChoiceDefinition.createProcessor(ChoiceDefinition.java:73)
at
org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:394)
at
org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:172)
at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:770)
at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:174)
at
org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:610)
at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1514)
at
org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCamelContext.java:561)
at
org.apache.camel.builder.RouteBuilder.populateRoutes(RouteBuilder.java:310)
at
org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:238)
at
org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:552)
at
org.apache.james.mailetcontainer.camel.CamelMailetProcessor.setupRouting(CamelMailetProcessor.java:122)
at
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor.init(AbstractStateMailetProcessor.java:122)
at
org.apache.james.mailetcontainer.camel.CamelMailetProcessor.init(CamelMailetProcessor.java:110)
at
org.apache.james.mailetcontainer.camel.CamelCompositeProcessor.createMailProcessor(CamelCompositeProcessor.java:111)
at
org.apache.james.mailetcontainer.lib.AbstractStateCompositeProcessor.init(AbstractStateCompositeProcessor.java:186)
at
org.apache.james.mailetcontainer.camel.CamelCompositeProcessor.init(CamelCompositeProcessor.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
at
org.apache.james.container.spring.context.JamesServerApplicationContext.<init>(JamesServerApplicationContext.java:39)
at org.apache.james.container.spring.Main.init(Main.java:66)
at org.apache.james.container.spring.Main.main(Main.java:42)
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'jcrRepository' defined in class path resource
[context/james-mailbox-jcr-context.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class
[org.apache.jackrabbit.core.RepositoryImpl]: Constructor threw exception;
nested exception is javax.jcr.RepositoryException: Cannot instantiate
persistence manager
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:895)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 67 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not
instantiate bean class [org.apache.jackrabbit.core.RepositoryImpl]:
Constructor threw exception; nested exception is
javax.jcr.RepositoryException: Cannot instantiate persistence manager
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:108)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
... 76 more
Caused by: javax.jcr.RepositoryException: Cannot instantiate persistence
manager org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at
org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1362)
at
org.apache.jackrabbit.core.RepositoryImpl.createVersionManager(RepositoryImpl.java:503)
at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:329)
at sun.reflect.GeneratedConstructorAccessor38.newInstance(Unknown Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
... 78 more
Caused by: java.lang.IllegalStateException: this factory has already been
closed
at
org.apache.jackrabbit.core.util.db.ConnectionFactory.sanityCheck(ConnectionFactory.java:213)
at
org.apache.jackrabbit.core.util.db.ConnectionFactory.getDataSource(ConnectionFactory.java:163)
at
org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.getDataSource(BundleDbPersistenceManager.java:553)
at
org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.init(BundleDbPersistenceManager.java:521)
at
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager.init(DerbyPersistenceManager.java:250)
at
org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1353)
... 84 more
Related cause:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'imapCndLoader' defined in class path resource
[context/james-mailbox-jcr-context.xml]: Cannot resolve reference to bean
'jcrRepository' while setting bean property 'arguments' with key [0];
nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'jcrRepository' defined in class path resource
[context/james-mailbox-jcr-context.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class
[org.apache.jackrabbit.core.RepositoryImpl]: Constructor threw exception;
nested exception is javax.jcr.RepositoryException: Cannot instantiate
persistence manager
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1343)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:678)
at
org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:507)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:317)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:394)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:388)
at
org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1140)
at
org.apache.camel.spring.spi.ApplicationContextRegistry.lookupByType(ApplicationContextRegistry.java:59)
at
org.apache.camel.impl.PropertyPlaceholderDelegateRegistry.lookupByType(PropertyPlaceholderDelegateRegistry.java:61)
at
org.apache.camel.processor.DefaultChannel.getOrCreateTracer(DefaultChannel.java:218)
at
org.apache.camel.processor.DefaultChannel.initChannel(DefaultChannel.java:169)
at
org.apache.camel.model.ProcessorDefinition.wrapChannel(ProcessorDefinition.java:232)
at
org.apache.camel.model.ProcessorDefinition.createOutputsProcessor(ProcessorDefinition.java:362)
at
org.apache.camel.model.ProcessorDefinition.createOutputsProcessor(ProcessorDefinition.java:127)
at
org.apache.camel.impl.DefaultRouteContext.createProcessor(DefaultRouteContext.java:106)
at
org.apache.camel.model.ProcessorDefinition.createChildProcessor(ProcessorDefinition.java:146)
at
org.apache.camel.model.OtherwiseDefinition.createProcessor(OtherwiseDefinition.java:44)
at
org.apache.camel.model.ChoiceDefinition.createProcessor(ChoiceDefinition.java:73)
at
org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:394)
at
org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:172)
at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:770)
at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:174)
at
org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:610)
at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1514)
at
org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCamelContext.java:561)
at
org.apache.camel.builder.RouteBuilder.populateRoutes(RouteBuilder.java:310)
at
org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:238)
at
org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:552)
at
org.apache.james.mailetcontainer.camel.CamelMailetProcessor.setupRouting(CamelMailetProcessor.java:122)
at
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor.init(AbstractStateMailetProcessor.java:122)
at
org.apache.james.mailetcontainer.camel.CamelMailetProcessor.init(CamelMailetProcessor.java:110)
at
org.apache.james.mailetcontainer.camel.CamelCompositeProcessor.createMailProcessor(CamelCompositeProcessor.java:111)
at
org.apache.james.mailetcontainer.lib.AbstractStateCompositeProcessor.init(AbstractStateCompositeProcessor.java:186)
at
org.apache.james.mailetcontainer.camel.CamelCompositeProcessor.init(CamelCompositeProcessor.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
at
org.apache.james.container.spring.context.JamesServerApplicationContext.<init>(JamesServerApplicationContext.java:39)
at org.apache.james.container.spring.Main.init(Main.java:66)
at org.apache.james.container.spring.Main.main(Main.java:42)
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'jcrRepository' defined in class path resource
[context/james-mailbox-jcr-context.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class
[org.apache.jackrabbit.core.RepositoryImpl]: Constructor threw exception;
nested exception is javax.jcr.RepositoryException: Cannot instantiate
persistence manager
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:895)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 67 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not
instantiate bean class [org.apache.jackrabbit.core.RepositoryImpl]:
Constructor threw exception; nested exception is
javax.jcr.RepositoryException: Cannot instantiate persistence manager
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:108)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
... 76 more
Caused by: javax.jcr.RepositoryException: Cannot instantiate persistence
manager org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at
org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1362)
at
org.apache.jackrabbit.core.RepositoryImpl.createVersionManager(RepositoryImpl.java:503)
at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:329)
at sun.reflect.GeneratedConstructorAccessor38.newInstance(Unknown Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
... 78 more
Caused by: java.lang.IllegalStateException: this factory has already been
closed
at
org.apache.jackrabbit.core.util.db.ConnectionFactory.sanityCheck(ConnectionFactory.java:213)
at
org.apache.jackrabbit.core.util.db.ConnectionFactory.getDataSource(ConnectionFactory.java:163)
at
org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.getDataSource(BundleDbPersistenceManager.java:553)
at
org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.init(BundleDbPersistenceManager.java:521)
at
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager.init(DerbyPersistenceManager.java:250)
at
org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1353)
... 84 more
Related cause:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'imapCndLoader' defined in class path resource
[context/james-mailbox-jcr-context.xml]: Cannot resolve reference to bean
'jcrRepository' while setting bean property 'arguments' with key [0];
nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'jcrRepository' defined in class path resource
[context/james-mailbox-jcr-context.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class
[org.apache.jackrabbit.core.RepositoryImpl]: Constructor threw exception;
nested exception is javax.jcr.RepositoryException: Cannot instantiate
persistence manager
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1343)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:678)
at
org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:507)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:317)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:394)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:388)
at
org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1140)
at
org.apache.camel.spring.spi.ApplicationContextRegistry.lookupByType(ApplicationContextRegistry.java:59)
at
org.apache.camel.impl.PropertyPlaceholderDelegateRegistry.lookupByType(PropertyPlaceholderDelegateRegistry.java:61)
at
org.apache.camel.processor.DefaultChannel.getOrCreateTracer(DefaultChannel.java:208)
at
org.apache.camel.processor.DefaultChannel.initChannel(DefaultChannel.java:169)
at
org.apache.camel.model.ProcessorDefinition.wrapChannel(ProcessorDefinition.java:232)
at
org.apache.camel.model.ProcessorDefinition.createOutputsProcessor(ProcessorDefinition.java:362)
at
org.apache.camel.model.ProcessorDefinition.createOutputsProcessor(ProcessorDefinition.java:127)
at
org.apache.camel.impl.DefaultRouteContext.createProcessor(DefaultRouteContext.java:106)
at
org.apache.camel.model.ProcessorDefinition.createChildProcessor(ProcessorDefinition.java:146)
at
org.apache.camel.model.OtherwiseDefinition.createProcessor(OtherwiseDefinition.java:44)
at
org.apache.camel.model.ChoiceDefinition.createProcessor(ChoiceDefinition.java:73)
at
org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:394)
at
org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:172)
at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:770)
at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:174)
at
org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:610)
at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1514)
at
org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCamelContext.java:561)
at
org.apache.camel.builder.RouteBuilder.populateRoutes(RouteBuilder.java:310)
at
org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:238)
at
org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:552)
at
org.apache.james.mailetcontainer.camel.CamelMailetProcessor.setupRouting(CamelMailetProcessor.java:122)
at
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor.init(AbstractStateMailetProcessor.java:122)
at
org.apache.james.mailetcontainer.camel.CamelMailetProcessor.init(CamelMailetProcessor.java:110)
at
org.apache.james.mailetcontainer.camel.CamelCompositeProcessor.createMailProcessor(CamelCompositeProcessor.java:111)
at
org.apache.james.mailetcontainer.lib.AbstractStateCompositeProcessor.init(AbstractStateCompositeProcessor.java:186)
at
org.apache.james.mailetcontainer.camel.CamelCompositeProcessor.init(CamelCompositeProcessor.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
at
org.apache.james.container.spring.context.JamesServerApplicationContext.<init>(JamesServerApplicationContext.java:39)
at org.apache.james.container.spring.Main.init(Main.java:66)
at org.apache.james.container.spring.Main.main(Main.java:42)
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'jcrRepository' defined in class path resource
[context/james-mailbox-jcr-context.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class
[org.apache.jackrabbit.core.RepositoryImpl]: Constructor threw exception;
nested exception is javax.jcr.RepositoryException: Cannot instantiate
persistence manager
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:895)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 67 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not
instantiate bean class [org.apache.jackrabbit.core.RepositoryImpl]:
Constructor threw exception; nested exception is
javax.jcr.RepositoryException: Cannot instantiate persistence manager
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:108)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
... 76 more
Caused by: javax.jcr.RepositoryException: Cannot instantiate persistence
manager org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at
org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1362)
at
org.apache.jackrabbit.core.RepositoryImpl.createVersionManager(RepositoryImpl.java:503)
at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:329)
at sun.reflect.GeneratedConstructorAccessor38.newInstance(Unknown Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
... 78 more
Caused by: java.lang.IllegalStateException: this factory has already been
closed
at
org.apache.jackrabbit.core.util.db.ConnectionFactory.sanityCheck(ConnectionFactory.java:213)
at
org.apache.jackrabbit.core.util.db.ConnectionFactory.getDataSource(ConnectionFactory.java:163)
at
org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.getDataSource(BundleDbPersistenceManager.java:553)
at
org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.init(BundleDbPersistenceManager.java:521)
at
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager.init(DerbyPersistenceManager.java:250)
at
org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1353)
... 84 more
Related cause:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'imapCndLoader' defined in class path resource
[context/james-mailbox-jcr-context.xml]: Cannot resolve reference to bean
'jcrRepository' while setting bean property 'arguments' with key [0];
nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'jcrRepository' defined in class path resource
[context/james-mailbox-jcr-context.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class
[org.apache.jackrabbit.core.RepositoryImpl]: Constructor threw exception;
nested exception is javax.jcr.RepositoryException: Cannot instantiate
persistence manager
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1343)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:678)
at
org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:507)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:317)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:394)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:388)
at
org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1140)
at
org.apache.camel.spring.spi.ApplicationContextRegistry.lookupByType(ApplicationContextRegistry.java:59)
at
org.apache.camel.impl.PropertyPlaceholderDelegateRegistry.lookupByType(PropertyPlaceholderDelegateRegistry.java:61)
at
org.apache.camel.processor.DefaultChannel.getOrCreateTracer(DefaultChannel.java:218)
at
org.apache.camel.processor.DefaultChannel.initChannel(DefaultChannel.java:169)
at
org.apache.camel.model.ProcessorDefinition.wrapChannel(ProcessorDefinition.java:232)
at
org.apache.camel.model.ProcessorDefinition.createOutputsProcessor(ProcessorDefinition.java:362)
at
org.apache.camel.model.ProcessorDefinition.createOutputsProcessor(ProcessorDefinition.java:127)
at
org.apache.camel.impl.DefaultRouteContext.createProcessor(DefaultRouteContext.java:106)
at
org.apache.camel.model.ProcessorDefinition.createChildProcessor(ProcessorDefinition.java:146)
at
org.apache.camel.model.OtherwiseDefinition.createProcessor(OtherwiseDefinition.java:44)
at
org.apache.camel.model.ChoiceDefinition.createProcessor(ChoiceDefinition.java:73)
at
org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:394)
at
org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:172)
at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:770)
at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:174)
at
org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:610)
at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1514)
at
org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCamelContext.java:561)
at
org.apache.camel.builder.RouteBuilder.populateRoutes(RouteBuilder.java:310)
at
org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:238)
at
org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:552)
at
org.apache.james.mailetcontainer.camel.CamelMailetProcessor.setupRouting(CamelMailetProcessor.java:122)
at
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor.init(AbstractStateMailetProcessor.java:122)
at
org.apache.james.mailetcontainer.camel.CamelMailetProcessor.init(CamelMailetProcessor.java:110)
at
org.apache.james.mailetcontainer.camel.CamelCompositeProcessor.createMailProcessor(CamelCompositeProcessor.java:111)
at
org.apache.james.mailetcontainer.lib.AbstractStateCompositeProcessor.init(AbstractStateCompositeProcessor.java:186)
at
org.apache.james.mailetcontainer.camel.CamelCompositeProcessor.init(CamelCompositeProcessor.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
at
org.apache.james.container.spring.context.JamesServerApplicationContext.<init>(JamesServerApplicationContext.java:39)
at org.apache.james.container.spring.Main.init(Main.java:66)
at org.apache.james.container.spring.Main.main(Main.java:42)
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'jcrRepository' defined in class path resource
[context/james-mailbox-jcr-context.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class
[org.apache.jackrabbit.core.RepositoryImpl]: Constructor threw exception;
nested exception is javax.jcr.RepositoryException: Cannot instantiate
persistence manager
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:895)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 67 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not
instantiate bean class [org.apache.jackrabbit.core.RepositoryImpl]:
Constructor threw exception; nested exception is
javax.jcr.RepositoryException: Cannot instantiate persistence manager
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:108)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
... 76 more
Caused by: javax.jcr.RepositoryException: Cannot instantiate persistence
manager org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at
org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1362)
at
org.apache.jackrabbit.core.RepositoryImpl.createVersionManager(RepositoryImpl.java:503)
at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:329)
at sun.reflect.GeneratedConstructorAccessor38.newInstance(Unknown Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
... 78 more
Caused by: java.lang.IllegalStateException: this factory has already been
closed
at
org.apache.jackrabbit.core.util.db.ConnectionFactory.sanityCheck(ConnectionFactory.java:213)
at
org.apache.jackrabbit.core.util.db.ConnectionFactory.getDataSource(ConnectionFactory.java:163)
at
org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.getDataSource(BundleDbPersistenceManager.java:553)
at
org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.init(BundleDbPersistenceManager.java:521)
at
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager.init(DerbyPersistenceManager.java:250)
at
org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1353)
... 84 more
Related cause:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'imapCndLoader' defined in class path resource
[context/james-mailbox-jcr-context.xml]: Cannot resolve reference to bean
'jcrRepository' while setting bean property 'arguments' with key [0];
nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'jcrRepository' defined in class path resource
[context/james-mailbox-jcr-context.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class
[org.apache.jackrabbit.core.RepositoryImpl]: Constructor threw exception;
nested exception is javax.jcr.RepositoryException: Cannot instantiate
persistence manager
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1343)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:678)
at
org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:507)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:317)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:394)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:388)
at
org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1140)
at
org.apache.camel.spring.spi.ApplicationContextRegistry.lookupByType(ApplicationContextRegistry.java:59)
at
org.apache.camel.impl.PropertyPlaceholderDelegateRegistry.lookupByType(PropertyPlaceholderDelegateRegistry.java:61)
at
org.apache.camel.processor.DefaultChannel.getOrCreateTracer(DefaultChannel.java:208)
at
org.apache.camel.processor.DefaultChannel.initChannel(DefaultChannel.java:169)
at
org.apache.camel.model.ProcessorDefinition.wrapChannel(ProcessorDefinition.java:232)
at
org.apache.camel.model.ProcessorDefinition.wrapProcessor(ProcessorDefinition.java:214)
at
org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:401)
at
org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:172)
at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:770)
at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:174)
at
org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:610)
at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1514)
at
org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCamelContext.java:561)
at
org.apache.camel.builder.RouteBuilder.populateRoutes(RouteBuilder.java:310)
at
org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:238)
at
org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:552)
at
org.apache.james.mailetcontainer.camel.CamelMailetProcessor.setupRouting(CamelMailetProcessor.java:122)
at
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor.init(AbstractStateMailetProcessor.java:122)
at
org.apache.james.mailetcontainer.camel.CamelMailetProcessor.init(CamelMailetProcessor.java:110)
at
org.apache.james.mailetcontainer.camel.CamelCompositeProcessor.createMailProcessor(CamelCompositeProcessor.java:111)
at
org.apache.james.mailetcontainer.lib.AbstractStateCompositeProcessor.init(AbstractStateCompositeProcessor.java:186)
at
org.apache.james.mailetcontainer.camel.CamelCompositeProcessor.init(CamelCompositeProcessor.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
at
org.apache.james.container.spring.context.JamesServerApplicationContext.<init>(JamesServerApplicationContext.java:39)
at org.apache.james.container.spring.Main.init(Main.java:66)
at org.apache.james.container.spring.Main.main(Main.java:42)
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'jcrRepository' defined in class path resource
[context/james-mailbox-jcr-context.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class
[org.apache.jackrabbit.core.RepositoryImpl]: Constructor threw exception;
nested exception is javax.jcr.RepositoryException: Cannot instantiate
persistence manager
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:895)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 62 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not
instantiate bean class [org.apache.jackrabbit.core.RepositoryImpl]:
Constructor threw exception; nested exception is
javax.jcr.RepositoryException: Cannot instantiate persistence manager
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:108)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
... 71 more
Caused by: javax.jcr.RepositoryException: Cannot instantiate persistence
manager org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at
org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1362)
at
org.apache.jackrabbit.core.RepositoryImpl.createVersionManager(RepositoryImpl.java:503)
at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:329)
at sun.reflect.GeneratedConstructorAccessor38.newInstance(Unknown Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
... 73 more
Caused by: java.lang.IllegalStateException: this factory has already been
closed
at
org.apache.jackrabbit.core.util.db.ConnectionFactory.sanityCheck(ConnectionFactory.java:213)
at
org.apache.jackrabbit.core.util.db.ConnectionFactory.getDataSource(ConnectionFactory.java:163)
at
org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.getDataSource(BundleDbPersistenceManager.java:553)
at
org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.init(BundleDbPersistenceManager.java:521)
at
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager.init(DerbyPersistenceManager.java:250)
at
org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1353)
... 79 more
Related cause:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'imapCndLoader' defined in class path resource
[context/james-mailbox-jcr-context.xml]: Cannot resolve reference to bean
'jcrRepository' while setting bean property 'arguments' with key [0];
nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'jcrRepository' defined in class path resource
[context/james-mailbox-jcr-context.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class
[org.apache.jackrabbit.core.RepositoryImpl]: Constructor threw exception;
nested exception is javax.jcr.RepositoryException: Cannot instantiate
persistence manager
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1343)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:678)
at
org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:507)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:317)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:394)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:388)
at
org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1140)
at
org.apache.camel.spring.spi.ApplicationContextRegistry.lookupByType(ApplicationContextRegistry.java:59)
at
org.apache.camel.impl.PropertyPlaceholderDelegateRegistry.lookupByType(PropertyPlaceholderDelegateRegistry.java:61)
at
org.apache.camel.processor.DefaultChannel.getOrCreateTracer(DefaultChannel.java:218)
at
org.apache.camel.processor.DefaultChannel.initChannel(DefaultChannel.java:169)
at
org.apache.camel.model.ProcessorDefinition.wrapChannel(ProcessorDefinition.java:232)
at
org.apache.camel.model.ProcessorDefinition.wrapProcessor(ProcessorDefinition.java:214)
at
org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:401)
at
org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:172)
at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:770)
at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:174)
at
org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:610)
at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1514)
at
org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCamelContext.java:561)
at
org.apache.camel.builder.RouteBuilder.populateRoutes(RouteBuilder.java:310)
at
org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:238)
at
org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:552)
at
org.apache.james.mailetcontainer.camel.CamelMailetProcessor.setupRouting(CamelMailetProcessor.java:122)
at
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor.init(AbstractStateMailetProcessor.java:122)
at
org.apache.james.mailetcontainer.camel.CamelMailetProcessor.init(CamelMailetProcessor.java:110)
at
org.apache.james.mailetcontainer.camel.CamelCompositeProcessor.createMailProcessor(CamelCompositeProcessor.java:111)
at
org.apache.james.mailetcontainer.lib.AbstractStateCompositeProcessor.init(AbstractStateCompositeProcessor.java:186)
at
org.apache.james.mailetcontainer.camel.CamelCompositeProcessor.init(CamelCompositeProcessor.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
at
org.apache.james.container.spring.context.JamesServerApplicationContext.<init>(JamesServerApplicationContext.java:39)
at org.apache.james.container.spring.Main.init(Main.java:66)
at org.apache.james.container.spring.Main.main(Main.java:42)
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'jcrRepository' defined in class path resource
[context/james-mailbox-jcr-context.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class
[org.apache.jackrabbit.core.RepositoryImpl]: Constructor threw exception;
nested exception is javax.jcr.RepositoryException: Cannot instantiate
persistence manager
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:895)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 62 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not
instantiate bean class [org.apache.jackrabbit.core.RepositoryImpl]:
Constructor threw exception; nested exception is
javax.jcr.RepositoryException: Cannot instantiate persistence manager
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:108)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
... 71 more
Caused by: javax.jcr.RepositoryException: Cannot instantiate persistence
manager org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager
at
org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1362)
at
org.apache.jackrabbit.core.RepositoryImpl.createVersionManager(RepositoryImpl.java:503)
at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:329)
at sun.reflect.GeneratedConstructorAccessor38.newInstance(Unknown Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
... 73 more
Caused by: java.lang.IllegalStateException: this factory has already been
closed
at
org.apache.jackrabbit.core.util.db.ConnectionFactory.sanityCheck(ConnectionFactory.java:213)
at
org.apache.jackrabbit.core.util.db.ConnectionFactory.getDataSource(ConnectionFactory.java:163)
at
org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.getDataSource(BundleDbPersistenceManager.java:553)
at
org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.init(BundleDbPersistenceManager.java:521)
at
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager.init(DerbyPersistenceManager.java:250)
at
org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1353)
... 79 more


2012/7/31 Merve Temizer <mervet2009@gmail.com>

> Where can i see exclusions?
>
> On container-spring:
>
> Project RightClick -> Properties -> Build Path -> Source
>
> every node has statement : "Excluded: None"
>
> I am on 3beta1.
>
>
> 2012/7/31 Eric Charles <eric@apache.org>
>
>> Click F5 and check if the exclusions of your eclipse project build path
>> are removed. CTRL-B if the automatic build is not activated to rebuild.
>>
>> Eric
>>
>>
>> On 07/31/2012 01:54 PM, Merve Temizer wrote:
>>
>>> How should i use it,
>>>
>>> In root directory contains root pom.xml
>>>
>>> i ran:
>>>
>>> ./remove-m2eclipse-exclusions.**sh
>>>
>>> got no error, no output.
>>>
>>> Try to run Main.java (in container-spring) same error
>>>
>>> mvn clean compile install
>>>
>>> Try to run Main.java same error.
>>>
>>> Thanks in advance.
>>>
>>> 2012/7/31 Eric Charles <eric@apache.org>
>>>
>>>  remove-m2eclipse-exclusions.sh ?
>>>>
>>>> https://github.com/aos-io/aos-****sdk/blob/master/sh/remove-**<https://github.com/aos-io/aos-**sdk/blob/master/sh/remove-**>
>>>> m2eclipse-exclusions.sh<https:**//github.com/aos-io/aos-sdk/**
>>>> blob/master/sh/remove-**m2eclipse-exclusions.sh<https://github.com/aos-io/aos-sdk/blob/master/sh/remove-m2eclipse-exclusions.sh>
>>>> >
>>>>
>>>>
>>>> Thx, Eric
>>>>
>>>>
>>>> On 07/31/2012 12:17 PM, Merve Temizer wrote:
>>>>
>>>>  I am using eclipse checked out everything, did all the configuration in
>>>>> here http://james.apache.org/****server/3/dev-build.html<http://james.apache.org/**server/3/dev-build.html>
>>>>> <http:/**/james.apache.org/server/3/**dev-build.html<http://james.apache.org/server/3/dev-build.html>
>>>>> >
>>>>>
>>>>>
>>>>> I used to have running server until yesterday but again i could not
>>>>> make
>>>>> it
>>>>> run
>>>>>
>>>>> The error is
>>>>>
>>>>> Exception in thread "main"
>>>>> org.springframework.beans.****factory.****
>>>>> BeanDefinitionStoreException:
>>>>>
>>>>> IOException
>>>>> parsing XML document from class path resource
>>>>> [context/james-server-context.****xml]; nested exception is
>>>>> java.io.FileNotFoundException: class path resource
>>>>> [context/james-server-context.****xml] cannot be opened because it
>>>>> does not
>>>>> exist
>>>>> at
>>>>> org.springframework.beans.****factory.xml.****
>>>>> XmlBeanDefinitionReader.**
>>>>> loadBeanDefinitions(****XmlBeanDefinitionReader.java:****341)
>>>>> at
>>>>> org.springframework.beans.****factory.xml.****
>>>>> XmlBeanDefinitionReader.**
>>>>> loadBeanDefinitions(****XmlBeanDefinitionReader.java:****302)
>>>>> at
>>>>> org.springframework.beans.****factory.support.**
>>>>> AbstractBeanDefinitionReader.****loadBeanDefinitions(**
>>>>> AbstractBeanDefinitionReader.****java:143)
>>>>> at
>>>>> org.springframework.beans.****factory.support.**
>>>>> AbstractBeanDefinitionReader.****loadBeanDefinitions(**
>>>>> AbstractBeanDefinitionReader.****java:178)
>>>>> at
>>>>> org.springframework.beans.****factory.support.**
>>>>> AbstractBeanDefinitionReader.****loadBeanDefinitions(**
>>>>> AbstractBeanDefinitionReader.****java:149)
>>>>> at
>>>>> org.springframework.beans.****factory.support.**
>>>>> AbstractBeanDefinitionReader.****loadBeanDefinitions(**
>>>>> AbstractBeanDefinitionReader.****java:212)
>>>>> at
>>>>> org.springframework.context.****support.****
>>>>> AbstractXmlApplicationContext.****
>>>>> loadBeanDefinitions(****AbstractXmlApplicationContext.****java:126)
>>>>> at
>>>>> org.springframework.context.****support.****
>>>>> AbstractXmlApplicationContext.****
>>>>> loadBeanDefinitions(****AbstractXmlApplicationContext.****java:92)
>>>>> at
>>>>> org.springframework.context.****support.****
>>>>> AbstractRefreshableApplication****
>>>>> Context.refreshBeanFactory(****AbstractRefreshableApplication****
>>>>> Context.java:130)
>>>>> at
>>>>> org.springframework.context.****support.****
>>>>> AbstractApplicationContext.**
>>>>> obtainFreshBeanFactory(****AbstractApplicationContext.****java:467)
>>>>> at
>>>>> org.springframework.context.****support.****
>>>>> AbstractApplicationContext.**
>>>>> refresh(****AbstractApplicationContext.****java:397)
>>>>> at
>>>>> org.springframework.context.****support.****
>>>>> ClassPathXmlApplicationContext****
>>>>> .<init>(****ClassPathXmlApplicationContext****.java:139)
>>>>> at
>>>>> org.springframework.context.****support.****
>>>>> ClassPathXmlApplicationContext****
>>>>> .<init>(****ClassPathXmlApplicationContext****.java:93)
>>>>> at
>>>>> org.apache.james.container.****spring.context.**
>>>>> JamesServerApplicationContext.****<init>(****
>>>>> JamesServerApplicationContext.****
>>>>> java:39)
>>>>> at org.apache.james.container.****spring.Main.init(Main.java:66)
>>>>> at org.apache.james.container.****spring.Main.main(Main.java:42)
>>>>>
>>>>> Caused by: java.io.FileNotFoundException: class path resource
>>>>> [context/james-server-context.****xml] cannot be opened because it
>>>>> does not
>>>>> exist
>>>>> at
>>>>> org.springframework.core.io.****ClassPathResource.****
>>>>> getInputStream(**
>>>>> ClassPathResource.java:158)
>>>>> at
>>>>> org.springframework.beans.****factory.xml.****
>>>>> XmlBeanDefinitionReader.**
>>>>> loadBeanDefinitions(****XmlBeanDefinitionReader.java:****328)
>>>>> ... 15 more
>>>>>
>>>>>
>>>>>
>>>> --
>>>> eric | http://about.echarles.net | @echarles
>>>>
>>>>
>>>> ------------------------------****----------------------------**
>>>> --**---------
>>>> To unsubscribe, e-mail: server-dev-unsubscribe@james.****apache.org<
>>>> server-dev-**unsubscribe@james.apache.org<server-dev-unsubscribe@james.apache.org>
>>>> >
>>>> For additional commands, e-mail: server-dev-help@james.apache.****org<
>>>> server-dev-help@james.**apache.org <server-dev-help@james.apache.org>>
>>>>
>>>>
>>>>
>>>
>>
>> --
>> eric | http://about.echarles.net | @echarles
>>
>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: server-dev-unsubscribe@james.**apache.org<server-dev-unsubscribe@james.apache.org>
>> For additional commands, e-mail: server-dev-help@james.apache.**org<server-dev-help@james.apache.org>
>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message