Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

deployment of .war files

Status
Not open for further replies.

rincewindis

Programmer
Mar 15, 2007
3
0
0
SE
Hello all,

I've got this project coded in JSP..
I've made a .war file and want deploys it in my webapps directory.

The problem is that I got this upload dir where people can upload files, and sometimes the .war file unpacks again and empties my upload dir..
Does someone know how to fix that?

(A explenation of how the site is orientated)
/usr/local/tomcat/webapps/mysite.war
deploys to
/usr/local/tomcat/webapps/mysite/
and in that site i've got this dir
/usr/local/tomcat/webapps/mysite/upload
and the war file overwrites that dir all the time?
Got any hints for me?


Regardz
-- Rincewind
 
You should never have content uploaded into a subdirectory of webapps - its really bad practice.

You should load the data into another directory on the server.

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Okay, and does anyone have any practice on how to do that? =)
 
Well I guess the same way that you currenlty save files that are uploaded to your site - just alter the path where the files are saved.

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top