FastChar官网
FastChar官网 FastChar
捐助公告
  • 欧克克 863***453@qq.com ¥59.0
  • *💋 180*****471 ¥39.0
  • 懒者 433***782@qq.com ¥39.0
  • 默默猴 874***370@qq.com ¥199.0
  • 认真的猿 116****803@qq.com ¥39.0
  • 爱心 126****357@qq.com ¥39.0
  • 能量 257***146@163.com ¥19.0
  • 水染的天色 113****338@qq.com ¥39.0
  • 微笑的死神 156****158@qq.com ¥39.0
  • 笑话 bai***121@163.com ¥39.0
 项目启动失败,提示文件找不到!
  爱心    提问于:2020-01-07 17:32    阅读次数:1064
  

发布项目到linux服务器时,提示文件不存在,是什么问题啊?

java.io.FileNotFoundException: /data/wwwroot/default/web/app/company/FcCompanyEntity.js (Permission denied)
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:101)
at com.fastchar.extjs.compress.YuiCompress.compress(YuiCompress.java:52)
at com.fastchar.extjs.compress.YuiCompress.compress(YuiCompress.java:40)
at com.fastchar.extjs.accepter.FastExtAppJsAccepter.onScannerFile(FastExtAppJsAccepter.java:26)
at com.fastchar.core.FastScanner.notifyAccepter(FastScanner.java:391)
at com.fastchar.core.FastScanner.notifyAccepter(FastScanner.java:90)
at com.fastchar.core.FastEngine.run(FastEngine.java:100)
at com.fastchar.core.FastFilter.init(FastFilter.java:37)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:283)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:264)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4546)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5191)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1125)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1859)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
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)
FastChar官网
FastChar 2020-01-07 17:36
   

这个错误是linux文件没有权限,因为FastChar-ExtJs如果配置了压缩文件,则在项目启动时会自动压缩appjs文件,如果没有权限会提示这个错误!

这个问题很好解决,只要在linux系统中运行如下命令就可以了:

chmod -R 777 /data/wwwroot/ 

上述命令,就是开启/data/wwwroot/目录下的所有文件的读写权限!

FastChar官网
爱心  [提问者] 2020-01-07 17:38
   

回复:FastChar

可以了,谢谢!