0
我有一臺運行Railo 3.3的Windows Server 2008 VPS。Railo Java錯誤:java.io.FileNotFoundException
我有一個Java問題,使用<cfimage
標記。
基本上我上傳使用<cffile to Folder/Images/Original
然後另一頁我用<cfimage
讀取文件上,然後再次使用<cfimage
來調整,並保存在文件的頂部的圖像。這是問題所在。
我不會嘗試保存到其他位置,因此它不會覆蓋導致問題。
我不能發佈錯誤的圖像,所以我會在這裏發佈文字:
Cause: java.io.FileNotFoundException
C:\inetpub\wwwroot\mnz.salesearch.co\NZ1\CheapSkates\Images\Original (Access is denied)
at java.io.FileOutputStream.open(Native Method):-2
at java.io.FileOutputStream.<init>(Unknown Source):-1
at railo.commons.io.res.type.file.FileResource.getOutputStream(FileResource.java:226):226
at railo.commons.io.res.type.file.FileResource.getOutputStream(FileResource.java:212):212
at railo.runtime.img.Image.writeOut(Image.java:855):855
at railo.runtime.img.Image.writeOut(Image.java:835):835
at railo.runtime.tag.Image.doActionWrite(Image.java:484):484
at railo.runtime.tag.Image.doStartTag(Image.java:332):332
at app.toolbox.crop_cfm$cf.call(C:\inetpub\wwwroot\mnz.salesearch.co\APP\TOOLBOX\crop.cfm:10):10
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:799):799
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:751):751
at railo.runtime.listener.ClassicAppListener._onRequest(ClassicAppListener.java:35):35
at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:24):24
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2035):2035
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2002):2002
at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:297):297
at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:32):32
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722):722
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305):305
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210):210
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225):225
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169):169
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472):472
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168):168
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98):98
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118):118
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407):407
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200):200
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565):565
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307):307
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source):-1
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source):-1
at java.lang.Thread.run(Unknown Source):-1
您的Railo實例是否有權限讀/寫和執行文件的用戶? Windows權限總是很棘手。您可以在Railo服務控制監視器中設置用戶。 – Dpolehonski 2012-09-20 14:28:01