File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes file uploading in war file deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "file uploading in war file deployment" Watch "file uploading in war file deployment" New topic

file uploading in war file deployment

Amirtharaj Chinnaraj
Ranch Hand

Joined: Sep 28, 2006
Posts: 241
hi guys

iam are using war file to deploy a web application using jboss 4.0.1 .the problem iam facing is iam not able to
upload the images and files in the server file system inside the web-application.iam not able to get the context path in delpoy directory .what iam
able to get is the contex path under temp directory of jboss

i tried to find a solution for this problem .still iam not able to get the right answere
some peoples telling this as a drawback of war file deployment

Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

Ideally, the files should not be uploaded within the war. Imagine when you have to upgrade your war, you might end up losing the "uploaded" contents in the older war file.

But if you still want to follow that approach, look at the exploded deployment support that JBoss has JBoss will not extract the war to the tmp folder when you do an exploded deployment.

[My Blog] [JavaRanch Journal]
I agree. Here's the link:
subject: file uploading in war file deployment
It's not a secret anymore!