João
On 10/25/2011 1:44 AM, Jmscavaleiro wrote:
Hello everyone,
I had deployed my GWT application in the application server Apache
Tomcat. My GWT application needs to access files in folder "C:
\Storage". In development mode the application runs like a charm but
in an external web server (Apache Tomcat) it does not run, crashes
when it tries to copy files from "C:\Storage" to "\docs". I think this
might be because i'm trying to access files outside the webroot. How
can i solve this situation? Using apache commons libs to deal with
files? Could be permissions? I need some enlightment, some help will
be very apreciated.
This is something that I do all the time so its your setup that's at fault.
Are you seeing any exceptions in the log files - logs/catalina.out would
be a good place
to look. You can use the standard java.io.*classes such as File ,
FileReader, FileWriter to make
the transfers. I suspect that you have an error in the way the paths
are created in your production
server.
Another possibility is that you have a security manager in place - once
again, check your logs.
Alan
Thanks in advance,
João Cavaleiro.
--
You received this message because you are subscribed to the Google Groups "Google
Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.