Deployed Tomcat inside IDEA throws access denied exception

Hi all,

My web application reads files under its own context. With a normal manual deploy this works fine since the files are all stored under the tomcat webapps folder. However in IDEA the deployer keeps the files in my project folder so when I reference a file I get access is denied.

java.io.FileNotFoundException: D:\Java\Projects\shawn1\out\artifacts\shawn1_war_exploded (Access is denied)
     java.io.FileInputStream.open(Native Method)
     java.io.FileInputStream.<init>(FileInputStream.java:120)
     java.io.FileInputStream.<init>(FileInputStream.java:79)
     java.io.FileReader.<init>(FileReader.java:41)


Is there anyway to tell the tomcat deployer to copy the files in the the tomcat webapps folder or to tell tomcat that this folder is OK for reading?

TIA
1 comment
Comment actions Permalink

Forget it. I figured it out. It was a problem with the WEB.XML. ;)

0

Please sign in to leave a comment.