aspose file tools*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "file uploading in war file deployment" Watch "file uploading in war file deployment" New topic
Author

file uploading in war file deployment

Amirtharaj Chinnaraj
Ranch Hand

Joined: Sep 28, 2006
Posts: 236
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

http://coding.derkeiler.com/Archive/Java/comp.lang.java.programmer/2007-08/msg00615.html



thanks
amir
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10288
    
169

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 http://www.jboss.org/community/wiki/ExplodedDeployment. 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: http://aspose.com/file-tools
 
subject: file uploading in war file deployment