I would like to do projects backup from one location to another location in network.this sample application has been written in struts.
This was achieved by usingorg.apache.commons.io.FileUtils
.
My problem here is, when I ran this application in netbeans 6.9 IDE tomcat server its working fine, but when I tried to run this application in apache tomcat 7.0 server by deploying this application WAR file, I get exception like
java.io.IOException : Destination "xxx" directory cannot be created"
this destination path is another machine in our local network.
I assume some kind of netbeans IDE options which are enabling tomcat server to copy folder to a destination directory开发者_JAVA百科 when I ran it in netbeans tomcat.
where as, if I run this application in tomcat server some kind of tomcat file permissions are blocking.
Both source and destination are shared folders.
You will have to setup a permission (in your case File Permission) for your webapplication as Tomcat runs a Security Manager, for security precautions. See here for configuration.
精彩评论