错误 org.activiti.app.conf.SecurityConfiguration - 无法配置身份验证机制:

问题描述

我只是从 Activiti 网站本身下载了 activiti-app.war。并将其部署在 tomcat 9 上,但我在启动应用程序时出现此错误

10:55:11,982 [main] INFO  com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource  - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 5,acquireRetryAttempts -> 30,acquireRetryDelay -> 1000,autoCommitOnClose -> false,automaticTestTable -> null,breakAfteracquireFailure -> false,checkoutTimeout -> 0,connectionCustomizerClassName -> null,connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester,dataSourceName -> z8kfltaf1in1xmreaflx|66ec4409,debugUnreturnedConnectionStackTraces -> false,description -> null,driverClass -> org.h2.Driver,factoryClassLocation -> null,forceIgnoreUnresolvedTransactions -> false,identityToken -> z8kfltaf1in1xmreaflx|66ec4409,idleConnectionTestPeriod -> 0,initialPoolSize -> 3,jdbcUrl -> jdbc:h2:mem:activiti;DB_CLOSE_DELAY=-1,maxAdministrativeTasktime -> 0,maxConnectionAge -> 0,maxIdleTime -> 1800,maxIdleTimeExcessConnections -> 1800,maxPoolSize -> 100,maxStatements -> 0,maxStatementsPerConnection -> 0,minPoolSize -> 10,numHelperThreads -> 3,preferredTestQuery -> null,properties -> {password=******,user=******},propertyCycle -> 0,statementCacheNumDeferredCloseThreads -> 0,testConnectionOnCheckin -> true,testConnectionOnCheckout -> true,unreturnedConnectionTimeout -> 0,userOverrides -> {},usesTraditionalReflectiveProxies -> false ]
10:55:12,515 [main] ERROR org.activiti.app.conf.SecurityConfiguration  - Could not configure authentication mechanism:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbAuthenticationProvider' defined in class path resource [org/activiti/app/conf/SecurityConfiguration.class]: Bean instantiation via factory method Failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.authentication.AuthenticationProvider]: Circular reference involving containing bean 'securityConfiguration' - consider declaring the factory method as static for independence from its containing instance. Factory method 'dbAuthenticationProvider' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDetailsService': Injection of autowired dependencies Failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.activiti.app.service.api.UserCache org.activiti.app.security.UserDetailsService.userCache; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userCacheImpl': Injection of autowired dependencies Failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected org.activiti.engine.IdentityService org.activiti.app.service.idm.UserCacheImpl.identityService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activitiEngineConfiguration': Injection of autowired dependencies Failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.transaction.PlatformTransactionManager org.activiti.app.conf.ActivitiEngineConfiguration.transactionManager; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [org/activiti/app/conf/DatabaseConfiguration.class]: Bean instantiation via factory method Failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.transaction.PlatformTransactionManager]: Factory method 'annotationDrivenTransactionManager' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/activiti/app/conf/DatabaseConfiguration.class]: Bean instantiation via factory method fail

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)