Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 11.1.1
    • Fix Version/s: 11.1.2
    • Component/s: Framework
    • Labels:
      None

      Description

      OpenOLAT cannot start because the mail module need to know the position of bcroot before this one is set. It need extra wire configuration in Spring configuration to make sure that the Module and the folder config are initialised in the right order.

      2016-11-30 05:04:58,578 [localhost-startStop-1] ERROR ContextLoader  - Context initialization failed
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mailBoxExtension': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.olat.core.util.mail.MailManager org.olat.core.util.mail.MailBoxExtension.mailManager; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mailManager' defined in file [/opt/openolat/webapp/ROOT/WEB-INF/classes/org/olat/core/util/mail/manager/MailManagerImpl.class]: Invocation of init method failed; nested exception is org.olat.core.logging.AssertException: Cannot create directory of LocalFolderImpl with reason (exists= ): false && created= false) path: /var/lib/tomcat8/bcroot/mail
              at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:298)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1148)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:636)
              at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:938)
              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
              at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)
              at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
              at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4832)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5256)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
              at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
              at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.olat.core.util.mail.MailManager org.olat.core.util.mail.MailBoxExtension.mailManager; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mailManager' defined in file [/opt/openolat/webapp/ROOT/WEB-INF/classes/org/olat/core/util/mail/manager/MailManagerImpl.class]: Invocation of init method failed; nested exception is org.olat.core.logging.AssertException: Cannot create directory of LocalFolderImpl with reason (exists= ): false && created= false) path: /var/lib/tomcat8/bcroot/mail
              at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:531)
              at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
              at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:295)
              ... 22 more
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mailManager' defined in file [/opt/openolat/webapp/ROOT/WEB-INF/classes/org/olat/core/util/mail/manager/MailManagerImpl.class]: Invocation of init method failed; nested exception is org.olat.core.logging.AssertException: Cannot create directory of LocalFolderImpl with reason (exists= ): false && created= false) path: /var/lib/tomcat8/bcroot/mail
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1514)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:921)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:864)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:779)
              at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:503)
              ... 24 more
      Caused by: org.olat.core.logging.AssertException: Cannot create directory of LocalFolderImpl with reason (exists= ): false && created= false) path: /var/lib/tomcat8/bcroot/mail
              at org.olat.core.util.vfs.LocalFolderImpl.<init>(LocalFolderImpl.java:81)
              at org.olat.core.util.vfs.LocalFolderImpl.<init>(LocalFolderImpl.java:70)
              at org.olat.core.util.mail.MailModule.getRootForAttachments(MailModule.java:178)
              at org.olat.core.util.mail.manager.MailManagerImpl.afterPropertiesSet(MailManagerImpl.java:151)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1573)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1511)
              ... 34 more
      Caused by: java.lang.Exception: assertionstackgenerator
              at org.olat.core.logging.AssertException.<init>(AssertException.java:53)
              ... 40 more
      

        Attachments

          Activity

            People

            • Assignee:
              srosse Stéphane Rossé
              Reporter:
              okant Oliver Kant
              Tester:
              Oliver Kant
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: