Olá! Estou configurando meu docker-compose.yml com os seguites parametros para programar uma limpeza da pasta dos conteúdos órfãos, no entanto tenho o seguinte erro ao subir o container do REPO após configurar estes parametros no servico do repositorio...
-Dsystem.content.orphanCleanup.cronExpression='0 0 4 * * ?'
-Dsystem.content.orphanProtectDays=14
Erro:
05/09/2021 19:17:402021-09-05 22:17:40,295 WARN [context.support.XmlWebApplicationContext] [localhost-startStop-1] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schedulerAccessor' defined in class path resource [alfresco/scheduled-jobs-context.xml]: Cannot resolve reference to bean 'contentStoreCleanerTrigger' while setting bean property 'triggers' with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentStoreCleanerTrigger' defined in class path resource [alfresco/scheduled-jobs-context.xml]: Invocation of init method failed; nested exception is java.text.ParseException: Illegal characters for this position: 'ALF'
05/09/2021 19:17:402021-09-05 22:17:40,706 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Stopping 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
05/09/2021 19:17:402021-09-05 22:17:40,709 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Stopped 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
05/09/2021 19:17:402021-09-05 22:17:40,721 ERROR [web.context.ContextLoader] [localhost-startStop-1] Context initialization failed
05/09/2021 19:17:40org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schedulerAccessor' defined in class path resource [alfresco/scheduled-jobs-context.xml]: Cannot resolve reference to bean 'contentStoreCleanerTrigger' while setting bean property 'triggers' with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentStoreCleanerTrigger' defined in class path resource [alfresco/scheduled-jobs-context.xml]: Invocation of init method failed; nested exception is java.text.ParseException: Illegal characters for this position: 'ALF'
05/09/2021 19:17:40 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:342)
05/09/2021 19:17:40 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:113)
05/09/2021 19:17:40 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:428)
05/09/2021 19:17:40 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:173)
05/09/2021 19:17:40 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1699)
05/09/2021 19:17:40 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1444)
05/09/2021 19:17:40 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:594)
05/09/2021 19:17:40 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)
05/09/2021 19:17:40 at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)
05/09/2021 19:17:40 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
05/09/2021 19:17:40 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)
05/09/2021 19:17:40 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
05/09/2021 19:17:40 at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:882)
05/09/2021 19:17:40 at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878)
05/09/2021 19:17:40 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
05/09/2021 19:17:40 at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:401)
05/09/2021 19:17:40 at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:292)
05/09/2021 19:17:40 at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)
05/09/2021 19:17:40 at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:70)
05/09/2021 19:17:40 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4699)
05/09/2021 19:17:40 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5165)
05/09/2021 19:17:40 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
05/09/2021 19:17:40 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
05/09/2021 19:17:40 at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:129)
05/09/2021 19:17:40 at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:150)
05/09/2021 19:17:40 at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:140)
05/09/2021 19:17:40 at java.base/java.security.AccessController.doPrivileged(Native Method)
05/09/2021 19:17:40 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:717)
05/09/2021 19:17:40 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
05/09/2021 19:17:40 at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1125)
05/09/2021 19:17:40 at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1859)
05/09/2021 19:17:40 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
05/09/2021 19:17:40 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
05/09/2021 19:17:40 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
05/09/2021 19:17:40 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
05/09/2021 19:17:40 at java.base/java.lang.Thread.run(Thread.java:834)
05/09/2021 19:17:40Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentStoreCleanerTrigger' defined in class path resource [alfresco/scheduled-jobs-context.xml]: Invocation of init method failed; nested exception is java.text.ParseException: Illegal characters for this position: 'ALF'
05/09/2021 19:17:40 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796)
05/09/2021 19:17:40 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595)
05/09/2021 19:17:40 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)
05/09/2021 19:17:40 at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)
05/09/2021 19:17:40 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
05/09/2021 19:17:40 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)
05/09/2021 19:17:40 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
05/09/2021 19:17:40 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:330)
05/09/2021 19:17:40 ... 35 more
05/09/2021 19:17:40Caused by: java.text.ParseException: Illegal characters for this position: 'ALF'
05/09/2021 19:17:40 at org.quartz.CronExpression.storeExpressionVals(CronExpression.java:588)
05/09/2021 19:17:40 at org.quartz.CronExpression.buildExpression(CronExpression.java:487)
05/09/2021 19:17:40 at org.quartz.CronExpression.<init>(CronExpression.java:276)
05/09/2021 19:17:40 at org.quartz.impl.triggers.CronTriggerImpl.setCronExpression(CronTriggerImpl.java:351)
05/09/2021 19:17:40 at org.springframework.scheduling.quartz.CronTriggerFactoryBean.afterPropertiesSet(CronTriggerFactoryBean.java:258)
05/09/2021 19:17:40 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.lambda$invokeInitMethods$5(AbstractAutowireCapableBeanFactory.java:1846)
05/09/2021 19:17:40 at java.base/java.security.AccessController.doPrivileged(Native Method)
05/09/2021 19:17:40 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1845)
05/09/2021 19:17:40 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1792)
05/09/2021 19:17:40 ... 42 more
Ajudemmmm!!!
Estou usando estes passos...:
https://docs.alfresco.com/content-services/6.0/admin/content-stores/#content-stores-overview
Ola!
O problema é este:
[alfresco/scheduled-jobs-context.xml]: Invocation of init method failed; nested exception is java.text.ParseException: Illegal characters for this position: 'ALF'
Você pode colar aqui o que você tem scheduled-jobs-context.xml?
Cris.
Discussions about Alfresco Content Services and Alfresco Process Services in Portuguese
Related:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.