132_捷克的gravatar头像
132_捷克2018-10-20 10:09:45

java web在启动项目是报错 Error creating bean with name 'shiroFilter' defined in file

事情是这样的 这个项目是从别的电脑上考过来的,windows完全可以正常启动,一到我的mac就报

十月 20, 2018 10:04:47 上午 org.apache.tomcat.util.digester.SetPropertiesRule begin

警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:pa' did not find a matching property.

十月 20, 2018 10:04:47 上午 org.apache.catalina.startup.VersionLoggerListener log

信息: Server version:        Apache Tomcat/8.5.34

十月 20, 2018 10:04:47 上午 org.apache.catalina.startup.VersionLoggerListener log

信息: Server built:          Sep 4 2018 22:28:22 UTC

十月 20, 2018 10:04:47 上午 org.apache.catalina.startup.VersionLoggerListener log

信息: Server number:         8.5.34.0

十月 20, 2018 10:04:47 上午 org.apache.catalina.startup.VersionLoggerListener log

信息: OS Name:               Mac OS X

十月 20, 2018 10:04:47 上午 org.apache.catalina.startup.VersionLoggerListener log

信息: OS Version:            10.13.6

十月 20, 2018 10:04:47 上午 org.apache.catalina.startup.VersionLoggerListener log

信息: Architecture:          x86_64

十月 20, 2018 10:04:47 上午 org.apache.catalina.startup.VersionLoggerListener log

信息: Java Home:             /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre

十月 20, 2018 10:04:47 上午 org.apache.catalina.startup.VersionLoggerListener log

信息: JVM Version:           1.8.0_181-b13

十月 20, 2018 10:04:47 上午 org.apache.catalina.startup.VersionLoggerListener log

信息: JVM Vendor:            Oracle Corporation

十月 20, 2018 10:04:47 上午 org.apache.catalina.startup.VersionLoggerListener log

信息: CATALINA_BASE:         /Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0

十月 20, 2018 10:04:47 上午 org.apache.catalina.startup.VersionLoggerListener log

信息: CATALINA_HOME:         /Library/apache-tomcat-8.5.34

十月 20, 2018 10:04:47 上午 org.apache.catalina.startup.VersionLoggerListener log

信息: Command line argument: -Dcatalina.base=/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0

十月 20, 2018 10:04:47 上午 org.apache.catalina.startup.VersionLoggerListener log

信息: Command line argument: -Dcatalina.home=/Library/apache-tomcat-8.5.34

十月 20, 2018 10:04:47 上午 org.apache.catalina.startup.VersionLoggerListener log

信息: Command line argument: -Dwtp.deploy=/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps

十月 20, 2018 10:04:47 上午 org.apache.catalina.startup.VersionLoggerListener log

信息: Command line argument: -Djava.endorsed.dirs=/Library/apache-tomcat-8.5.34/endorsed

十月 20, 2018 10:04:47 上午 org.apache.catalina.startup.VersionLoggerListener log

信息: Command line argument: -Dfile.encoding=UTF-8

十月 20, 2018 10:04:47 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent

信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/Users/chenasiyatu/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.]

十月 20, 2018 10:04:48 上午 org.apache.coyote.AbstractProtocol init

信息: Initializing ProtocolHandler ["http-nio-8080"]

十月 20, 2018 10:04:48 上午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector

信息: Using a shared selector for servlet write/read

十月 20, 2018 10:04:48 上午 org.apache.coyote.AbstractProtocol init

信息: Initializing ProtocolHandler ["ajp-nio-8009"]

十月 20, 2018 10:04:48 上午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector

信息: Using a shared selector for servlet write/read

十月 20, 2018 10:04:48 上午 org.apache.catalina.startup.Catalina load

信息: Initialization processed in 1528 ms

十月 20, 2018 10:04:48 上午 org.apache.catalina.core.StandardService startInternal

信息: Starting service [Catalina]

十月 20, 2018 10:04:48 上午 org.apache.catalina.core.StandardEngine startInternal

信息: Starting Servlet Engine: Apache Tomcat/8.5.34

十月 20, 2018 10:04:52 上午 org.apache.jasper.servlet.TldScanner scanJars

信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

十月 20, 2018 10:05:06 上午 org.apache.jasper.servlet.TldScanner scanJars

信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

十月 20, 2018 10:05:06 上午 org.apache.catalina.core.ApplicationContext log

信息: No Spring WebApplicationInitializer types detected on classpath

log4j:ERROR setFile(null,true) call failed.

java.io.FileNotFoundException: /home/orhon/opa/logs/pa.log (No such file or directory)

    at java.io.FileOutputStream.open0(Native Method)

    at java.io.FileOutputStream.open(FileOutputStream.java:270)

    at java.io.FileOutputStream.<init>(FileOutputStream.java:213)

    at java.io.FileOutputStream.<init>(FileOutputStream.java:133)

    at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)

    at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)

    at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:223)

    at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)

    at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)

    at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)

    at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)

    at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)

    at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648)

    at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514)

    at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:580)

    at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)

    at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)

    at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:66)

    at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:277)

    at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:288)

    at com.orhon.pa.common.utils.PropertiesLoader.<clinit>(PropertiesLoader.java:27)

    at com.orhon.pa.common.config.Global.<clinit>(Global.java:37)

    at com.orhon.pa.modules.sys.service.SystemService.printKeyLoadMessage(SystemService.java:405)

    at com.orhon.pa.modules.sys.listener.WebContextListener.initWebApplicationContext(WebContextListener.java:13)

    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)

    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4792)

    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:1420)

    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1410)

    at java.util.concurrent.FutureTask.run(FutureTask.java:266)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

    at java.lang.Thread.run(Thread.java:748)

log4j:ERROR Either File or DatePattern options are not set for appender [RollingFile].

 

======================================================================

 

    欢迎使用 学习系统  - Powered By http://jeesite.com

 

======================================================================

 

十月 20, 2018 10:05:07 上午 org.apache.catalina.core.ApplicationContext log

信息: Initializing Spring root WebApplicationContext

2018-10-20 10:05:07,072 INFO  [org.springframework.web.context.ContextLoader] - Root WebApplicationContext: initialization started

2018-10-20 10:05:07,370 INFO  [springframework.web.context.support.XmlWebApplicationContext] - Refreshing Root WebApplicationContext: startup date [Sat Oct 20 10:05:07 CST 2018]; root of context hierarchy

2018-10-20 10:05:08,143 INFO  [springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-jedis.xml]

2018-10-20 10:05:08,963 INFO  [springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-activiti.xml]

2018-10-20 10:05:09,084 INFO  [springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]

2018-10-20 10:05:09,121 INFO  [springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context.xml]

2018-10-20 10:05:10,500 INFO  [org.springframework.context.support.PropertySourcesPlaceholderConfigurer] - Loading properties file from class path resource [main.properties]

2018-10-20 10:05:10,532 INFO  [org.springframework.context.support.PropertySourcesPlaceholderConfigurer] - Loading properties file from class path resource [main.properties]

2018-10-20 10:05:10,539 INFO  [org.springframework.context.support.PropertySourcesPlaceholderConfigurer] - Loading properties file from class path resource [main.properties]

2018-10-20 10:05:10,542 INFO  [org.springframework.context.support.PropertySourcesPlaceholderConfigurer] - Loading properties file from class path resource [main.properties]

2018-10-20 10:05:10,849 INFO  [org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor] - Initializing ExecutorService

2018-10-20 10:05:10,851 INFO  [org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] - Bean 'executor' of type [class org.springframework.scheduling.config.TaskExecutorFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2018-10-20 10:05:10,852 INFO  [org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] - Bean 'executor' of type [class org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2018-10-20 10:05:10,923 INFO  [org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler] - Initializing ExecutorService  'scheduler'

2018-10-20 10:05:10,924 INFO  [org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] - Bean 'scheduler' of type [class org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2018-10-20 10:05:11,115 INFO  [org.apache.shiro.realm.AuthorizingRealm] - No cache or cacheManager properties have been set.  Authorization cache cannot be obtained.

2018-10-20 10:05:11,115 INFO  [org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] - Bean 'systemAuthorizingRealm' of type [class com.orhon.pa.modules.sys.security.SystemAuthorizingRealm] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2018-10-20 10:05:11,152 INFO  [org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] - Bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' of type [class org.springframework.transaction.annotation.AnnotationTransactionAttributeSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2018-10-20 10:05:11,206 INFO  [org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] - Bean 'org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor#0' of type [class org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2018-10-20 10:05:11,216 INFO  [org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] - Bean 'org.springframework.transaction.config.internalTransactionAdvisor' of type [class org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2018-10-20 10:05:11,340 INFO  [org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] - Bean 'idGen' of type [class com.orhon.pa.common.utils.IdGen] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2018-10-20 10:05:11,374 INFO  [org.springframework.cache.ehcache.EhCacheManagerFactoryBean] - Initializing EhCache CacheManager

2018-10-20 10:05:12,333 WARN  [springframework.web.context.support.XmlWebApplicationContext] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'sessionManager' while setting bean property 'sessionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'sessionDAO' while setting bean property 'sessionDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionDAO' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'shiroCacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroCacheManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Disk store path can't be created: /home/orhon/opa/local/ehcache

2018-10-20 10:05:12,334 INFO  [org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler] - Shutting down ExecutorService 'scheduler'

2018-10-20 10:05:12,335 INFO  [org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor] - Shutting down ExecutorService

2018-10-20 10:05:12,339 ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'sessionManager' while setting bean property 'sessionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'sessionDAO' while setting bean property 'sessionDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionDAO' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'shiroCacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroCacheManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Disk store path can't be created: /home/orhon/opa/local/ehcache

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1475)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1220)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)

    at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:232)

    at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:619)

    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:465)

    at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:434)

    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)

    at com.orhon.pa.modules.sys.listener.WebContextListener.initWebApplicationContext(WebContextListener.java:16)

    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)

    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4792)

    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:1420)

    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1410)

    at java.util.concurrent.FutureTask.run(FutureTask.java:266)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

    at java.lang.Thread.run(Thread.java:748)

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'sessionManager' while setting bean property 'sessionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'sessionDAO' while setting bean property 'sessionDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionDAO' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'shiroCacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroCacheManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Disk store path can't be created: /home/orhon/opa/local/ehcache

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1475)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1220)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)

    ... 25 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'sessionDAO' while setting bean property 'sessionDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionDAO' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'shiroCacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroCacheManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Disk store path can't be created: /home/orhon/opa/local/ehcache

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1475)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1220)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)

    ... 35 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionDAO' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'shiroCacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroCacheManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Disk store path can't be created: /home/orhon/opa/local/ehcache

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1475)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1220)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)

    ... 45 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroCacheManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Disk store path can't be created: /home/orhon/opa/local/ehcache

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1475)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1220)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)

    ... 55 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Disk store path can't be created: /home/orhon/opa/local/ehcache

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1572)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)

    ... 65 more

Caused by: net.sf.ehcache.CacheException: Disk store path can't be created: /home/orhon/opa/local/ehcache

    at net.sf.ehcache.DiskStorePathManager.resolveAndLockIfNeeded(DiskStorePathManager.java:141)

    at net.sf.ehcache.DiskStorePathManager.getFile(DiskStorePathManager.java:262)

    at net.sf.ehcache.DiskStorePathManager.getFile(DiskStorePathManager.java:251)

    at net.sf.ehcache.store.disk.DiskStorageFactory.<init>(DiskStorageFactory.java:125)

    at net.sf.ehcache.store.disk.DiskStore.create(DiskStore.java:134)

    at net.sf.ehcache.store.DiskBackedMemoryStore.createDiskStore(DiskBackedMemoryStore.java:61)

    at net.sf.ehcache.store.DiskBackedMemoryStore.create(DiskBackedMemoryStore.java:49)

    at net.sf.ehcache.Cache.initialise(Cache.java:1097)

    at net.sf.ehcache.CacheManager.initializeEhcache(CacheManager.java:1306)

    at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:1337)

    at net.sf.ehcache.CacheManager.addConfiguredCaches(CacheManager.java:758)

    at net.sf.ehcache.CacheManager.doInit(CacheManager.java:459)

    at net.sf.ehcache.CacheManager.init(CacheManager.java:377)

    at net.sf.ehcache.CacheManager.<init>(CacheManager.java:259)

    at org.springframework.cache.ehcache.EhCacheManagerFactoryBean.afterPropertiesSet(EhCacheManagerFactoryBean.java:157)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1631)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1568)

    ... 72 more

十月 20, 2018 10:05:12 上午 org.apache.catalina.core.StandardContext listenerStart

严重: Exception sending context initialized event to listener instance of class [com.orhon.pa.modules.sys.listener.WebContextListener]

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'sessionManager' while setting bean property 'sessionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'sessionDAO' while setting bean property 'sessionDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionDAO' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'shiroCacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroCacheManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Disk store path can't be created: /home/orhon/opa/local/ehcache

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1475)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1220)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)

    at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:232)

    at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:619)

    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:465)

    at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:434)

    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)

    at com.orhon.pa.modules.sys.listener.WebContextListener.initWebApplicationContext(WebContextListener.java:16)

    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)

    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4792)

    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:1420)

    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1410)

    at java.util.concurrent.FutureTask.run(FutureTask.java:266)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

    at java.lang.Thread.run(Thread.java:748)

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'sessionManager' while setting bean property 'sessionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'sessionDAO' while setting bean property 'sessionDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionDAO' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'shiroCacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroCacheManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Disk store path can't be created: /home/orhon/opa/local/ehcache

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1475)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1220)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)

    ... 25 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'sessionDAO' while setting bean property 'sessionDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionDAO' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'shiroCacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroCacheManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Disk store path can't be created: /home/orhon/opa/local/ehcache

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1475)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1220)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)

    ... 35 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionDAO' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'shiroCacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroCacheManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Disk store path can't be created: /home/orhon/opa/local/ehcache

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1475)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1220)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)

    ... 45 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroCacheManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context-shiro.xml]: Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Disk store path can't be created: /home/orhon/opa/local/ehcache

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1475)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1220)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)

    ... 55 more

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in file [/Users/zhoukai/eclipse-oyxgen-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pa/WEB-INF/classes/spring-context.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Disk store path can't be created: /home/orhon/opa/local/ehcache

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1572)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)

    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)

    ... 65 more

Caused by: net.sf.ehcache.CacheException: Disk store path can't be created: /home/orhon/opa/local/ehcache

    at net.sf.ehcache.DiskStorePathManager.resolveAndLockIfNeeded(DiskStorePathManager.java:141)

    at net.sf.ehcache.DiskStorePathManager.getFile(DiskStorePathManager.java:262)

    at net.sf.ehcache.DiskStorePathManager.getFile(DiskStorePathManager.java:251)

    at net.sf.ehcache.store.disk.DiskStorageFactory.<init>(DiskStorageFactory.java:125)

    at net.sf.ehcache.store.disk.DiskStore.create(DiskStore.java:134)

    at net.sf.ehcache.store.DiskBackedMemoryStore.createDiskStore(DiskBackedMemoryStore.java:61)

    at net.sf.ehcache.store.DiskBackedMemoryStore.create(DiskBackedMemoryStore.java:49)

    at net.sf.ehcache.Cache.initialise(Cache.java:1097)

    at net.sf.ehcache.CacheManager.initializeEhcache(CacheManager.java:1306)

    at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:1337)

    at net.sf.ehcache.CacheManager.addConfiguredCaches(CacheManager.java:758)

    at net.sf.ehcache.CacheManager.doInit(CacheManager.java:459)

    at net.sf.ehcache.CacheManager.init(CacheManager.java:377)

    at net.sf.ehcache.CacheManager.<init>(CacheManager.java:259)

    at org.springframework.cache.ehcache.EhCacheManagerFactoryBean.afterPropertiesSet(EhCacheManagerFactoryBean.java:157)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1631)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1568)

    ... 72 more

 

十月 20, 2018 10:05:12 上午 org.apache.catalina.core.StandardContext startInternal

严重: One or more listeners failed to start. Full details will be found in the appropriate container log file

十月 20, 2018 10:05:12 上午 org.apache.catalina.core.StandardContext startInternal

严重: Context [/opa] startup failed due to previous errors

十月 20, 2018 10:05:12 上午 org.apache.catalina.core.ApplicationContext log

信息: Closing Spring root WebApplicationContext

十月 20, 2018 10:05:12 上午 org.apache.coyote.AbstractProtocol start

信息: Starting ProtocolHandler ["http-nio-8080"]

十月 20, 2018 10:05:12 上午 org.apache.coyote.AbstractProtocol start

信息: Starting ProtocolHandler ["ajp-nio-8009"]

十月 20, 2018 10:05:12 上午 org.apache.catalina.startup.Catalina start

信息: Server startup in 24117 ms

 

 

我连把他的maven仓库都给考过来了放在本地 结果还是报同样的问题。哪个大神帮忙看下呢

所有回答列表(4)
xfxwanzd的gravatar头像
xfxwanzd LV310月26日

老哥,你这个说的是没找到

 /home/orhon/opa/local/ehcache

这个目录啊。这是服务器 的配置,你本地肯定没有要,要换成本地目录。

遇见,的gravatar头像
遇见, LV3610月30日

Disk store path can't be created: /home/orhon/opa/local/ehcache   

是没有权限创建这个路径吧

丶右转的gravatar头像
丶右转 LV611月2日

配置文件为“SHIOFILTER”的Bean创建错误了

q460244011的gravatar头像
q460244011 LV111月5日

怎么啦,大佬

顶部客服微信二维码底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友