aspose file tools
The moose likes JBoss and the fly likes file uploading in war file deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss
Reply 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: 215
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: 8141
    
  52

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
 
Similar Threads
Can we deploy multiple application on JBoss at the same time?
WAR file appears in JMX but I can't reach it in a web browser
open directory structure deployment on jboss
Tomcat weirdness -- incomplete WAR explosion, display of out-of-date (cached?) JSP
Configuring Tomcat