tags:

views:

65

answers:

2

Hello i have a java backend running on tomcat. java creates a .txt File that is saved locally in the Webcontent Folder. But the file is not found on the client side, altought it exists on the Webserver. After a refresh of my java workspace the file is found. Is there a way to tell tomcat to refresh / redeploy using java?

greetings!

+1  A: 

Tomcat does not see your WebContents folder, but a copy create by the Tomcat server connector. Refreshing updates the copy.

What generates the .txt file? A separate program or code embedded in your web application?

Thorbjørn Ravn Andersen
A: 

thank you very much for your answer. The .txt. file is generated in Java with the FileWriter. this genereted File is stored in a folder in webcontent folder of tomcat. but tomcat doesnt update this webconent folder automatically. so need a way to refresh it during runtime. do you have any ideas?

kize
Please don't post comments or updates on questions as answers. They will get lost in noise. To post comments, press `add comment` link. To update an question, press `edit` link of your question. To post an answer (on other's questions), press the `post answer` button.
BalusC