Disk store path can‘t be created: /tempdir 解决方式
项目部署在window上正常运行,部署在Mac上出现报错:报错信息如下。
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name ‘webService’ defined in file [/Users/xx/Desktop/xx/out/artifacts/yhzl/WEB-INF/classes/com/xx/gis/apps/yhzl/service/impl/WebServiceImpl.class]: Initialization of bean failed;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘transactionManagerAdivice’: Cannot resolve reference to bean ‘transactionManager’ while setting bean property ‘transactionManager’;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘transactionManager’ defined in URL [jar:file:/Users/xx/Desktop/xx/out/artifacts/xx/WEB-INF/lib/cp-xx.jar!/com/xx/gis/apps/workflow/applicationContext_workflow.xml]: Cannot resolve reference to bean ‘ossessionFactory’ while setting bean property ‘sessionFactory’;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘ossessionFactory’ defined in URL [jar:file:/Users/xx/Desktop/yhzl/out/artifacts/yhzl/WEB-INF/lib/cp-xx.jar!/com/xx/gis/apps/workflow/applicationContext_workflow.xml]: Invocation of init method failed; nested exception is org.hibernate.cache.CacheException: net.sf.ehcache.CacheException: Disk store path can’t be created: /tempdir
at
。。。
Caused by: org.hibernate.cache.CacheException: net.sf.ehcache.CacheException: Disk store path can’t be created: /tempdir
at org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:111)
at org.hibernate.cache.UpdateTimestampsCache.(UpdateTimestampsCache.java:44)
at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:314)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:863)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:782)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:188)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1573)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1511)
… 94 more
Caused by: net.sf.ehcache.CacheException: Disk store path can’t be created: /tempdir
at
Idea bug的查看方式,从下往上看。查看最下面的一个Caused by:。。。就是这个bug的主要原因了。再往上就是这个导致的问题。
下面说明下这个问题的解决方式很简单,提示无法创建文件夹,那就再相应的目录下创建文件夹即可。
WINDOW系统下,没有存在权限的问题,项目启动回自动创建。
MAC或者是linux系统下,如果是在/目录下,是无法创建文件夹。
MAC的解决的方法就是,在/目录下创建一个软链接(软链接就像是一个假文件夹,映射到其他地方。)
具体创建方式看下其他博主的教程吧,这里就不写了。
https://www.cnblogs.com/xuzhujack/p/14930504.html
Disk store path can‘t be created: /tempdir 解决方式相关推荐
- Error was tenMinuteCache Cache: The Disk store is not active.
2019独角兽企业重金招聘Python工程师标准>>> Error was tenMinuteCache Cache: The Disk store is not active. 博 ...
- nutzwk运行后wk-web中生成ehcache.disk.store.dir有什么用,怎么去掉
nutzwk运行后wk-web中生成ehcache.disk.store.dir有什么用,怎么去掉 发布于 29天前 作者 qq_96c46988 64 次浏览 复制 上一个帖子 下一个帖子 ...
- golang go get 命令行安装库 报错 go: cannot use path@version syntax in GOPATH mode 解决方法
go mod作为官方的依赖管理工具,类似于maven这种本地缓存库的管理方式,其主要是通过GOPATH/pkg/mod下的缓存包来对工程进行构建. 问题: 执行go get github.com/go ...
- 误删环境变量Path解决方式汇总
注:不要重启电脑,电脑系统:Windows10 一.问题重述 起因是我在添加环境变量时报错: 于是使用了 rapidee 工具来添加环境变量[3]. 但是打开后并没有找到Path(截图时我已解决该问题 ...
- itunes能不能php文件,您的账户已在apple store和itunes中被禁用怎么解决
"您的账户已在apple store和itunes中被禁用"的解决办法:1.通过点击"重设"来重新设置您的账户:2.拨打苹果电话,人工服务,提供临时pin码:3 ...
- 在MapPath的Path参数中不允许字符'..',解决方法。
Server.MapPath()错误 'ASP 0175 : 80004005' 不允许的 Path 字符< /shipin/Admin/Creta_default.asp,行 ...
- 关于Mac升级系统后,出现 xcrun: error: invalid active developer path 问题的解决方案【已解决】
目录 问题描述 原因分析 解决方案 前几天升级了Mac的系统版本,遂出现了今天介绍的这个问题,如果你也碰到了(之前好好的,升级完系统之后异常了)那么请往下看啦- 问题描述 前段时间更新升级 Mac 版 ...
- TypeError: Descriptors cannot not be created directly解决
文章目录 问题 解决 问题 跑代码的时候遇到了这个问题: TypeError: Descriptors cannot not be created directly. If this call cam ...
- 问题:TypeError: Descriptors cannot not be created directly.解决方法
运行代码时提示如下报错: 解决上面问题,直接在控制台中输入下面命令重新安装protobuf即可,如下: pip install 'protobuf~=3.19.0' 以上就是解决TypeError: ...
最新文章
- 顺序表-顺序表表示集合-交集( for + whlie ,不断遍历)
- hive sql 学习笔记
- python获取设备硬件信息_Python实现读取机器硬件信息的方法示例
- K8S从懵圈到熟练 - 节点下线姊妹篇
- file数组 删除文件_java编程IO基础之一:File类
- 地表水预测模型软件_前沿科技 | 中科院等科学家合作研究开发出高速列车关键构件疲劳寿命预测软件系统...
- H3C vrrp *** ipsec 基本配置
- Unix/Linux 中的 shell 机制
- U盘autorun病毒清理
- volte的sip信令流程_VOLTE-SIP完整信令解析
- LeetCode中等题之整数转罗马数字
- phpexcel 导入数据 Invalid cell coordinate
- 额滴亲娘嘞!偶终于考完试了!”
- 方框加对勾怎么输入_Word与Excel中,如何在方框中打对勾?
- wyAPP苹果APP 营销
- CocosCreator开源框架(不断更新)
- VMware要求更新,系统更新后VMware打不开,要求更新
- 上市公司内控信息披露指数(2000-2018年)
- VHDL设计一个同步清零的JK触发器
- MySQL免安装版下载及安装