Linux下tomcat运行时报can't create cache file的解决方案.
来源:互联网 发布:淘宝企业店铺交多少钱 编辑:程序博客网 时间:2024/06/03 17:57
tomcat会在CATALINA_TMPDIR里创建临时文件,
而CATALINA_TMPDIR的默认位置是tomcat安装目录下的temp目录,
如果这个目录不存在,或者说这个目录的权限不够,就会报 can't create cache file。
解决方法很简单,
在tomcat的安装目录下创建这个目录就好了。
Linux命令:
进到tomcat目录
md temp(创建temp)
chmod 777 temp(我不知道具体应该是什么权限,所以直接777)
然后重启tomcat,就好了。
tomcat错误信息:
Caused by: javax.imageio.IIOException: Can't create output stream!
at javax.imageio.ImageIO.write(ImageIO.java:1560)
at net.sf.jasperreports.engine.util.JRJdk14ImageEncoder.encode(JRJdk14ImageEncoder.java:86)
... 47 more
Caused by: javax.imageio.IIOException: Can't create cache file!
at javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:397)
at javax.imageio.ImageIO.write(ImageIO.java:1558)
... 48 more
Caused by: java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1704)
at java.io.File.createTempFile(File.java:1792)
at javax.imageio.stream.FileCacheImageOutputStream.<init>(FileCacheImageOutputStream.java:67)
at com.sun.imageio.spi.OutputStreamImageOutputStreamSpi.createOutputStreamInstance(OutputStreamImageOutputStreamSpi.java:50)
at javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:393)
... 49 more
- Linux下tomcat运行时报can't create cache file的解决方案.
- Can't create cache file
- tomcat web项目中的Can't create cache file!的解决方法
- 读取验证码时报错 Caused by: javax.imageio.IIOException: Can't create cache file!
- 解决:Tomcat不能加载图片问题.javax.imageio.IIOException: Can't create cache file!
- MySQL下“Can’t create/write to file xxx (Errcode: 13)”错误的解决方法
- MySQL下“Can’t create/write to file xxx (Errcode: 13)”错误的解决方法
- MySQL下“Can’t create/write to file xxx (Errcode: 13)”错误的解决方法
- CentOS 下 MySQL运行 select* from xxx into outfile : Can't create/write to file xxx (Errcode: 13)
- 读取验证码时 Caused by: javax.imageio.IIOException: Can't create cache file!
- MySQL Can't create/write to file 问题的解决
- mysql 出现 Can't create/write to file 的错误
- MySQL Can't create/write to file 问题的解决
- 解决ofbiz调试运行时报错:Can't find bundle for base name cache
- ultraedit can't create temporary file 解决
- linux磁盘空间不足:Can't start server: can't create PID file: No space left on device
- AssetsManagerEx 解压包含文件夹的文件时报can not create decompress destination file 错误的问题
- 解决ofbiz在myeclipse中调试运行时报错:Can't find bundle for base name cache
- IE中输入框无法输入问题
- Linux串口编程(中断方式和select方式)
- 二叉查找树综述
- struts静态动态ActionForm使用(二)—验证
- 浅析检查email的正则表达式
- Linux下tomcat运行时报can't create cache file的解决方案.
- database link的使用
- Android获取图片资源的4种方式
- XCODE 4.5 IOS多语言设置 及NSLocalizedString和NSLocalizedStringFromTable的用法。
- java的设计模式初选
- 用css-hack的方式实现 ie6+的最小高度的方法
- 哨兵
- Hdu 1394 Minimum Inversion Number
- 业余时间写的一个项目的大致流程,欢迎拍砖