aspose file tools*
The moose likes BEA/Weblogic and the fly likes Unable to deploy a war file from the correct location Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Unable to deploy a war file from the correct location" Watch "Unable to deploy a war file from the correct location" New topic
Author

Unable to deploy a war file from the correct location

ragi singh
Ranch Hand

Joined: Mar 10, 2010
Posts: 198

I have deployed a war file on my application server . however when i test my application war file from some other location is getting loaded . I cannot understand the queer behaviour of weblogic wherein it uploads the file from the correct location and at other time from some other location
Joseph Antoine Raja
Ranch Hand

Joined: Feb 01, 2010
Posts: 32
Rick,

I assume you are using WLS9 or above
In WLS there are many staging modes out of which is UPLOAD. When you are uploading a file [lets take UNIX o/s ] from ‘/opt/file/myFile.war’ Weblogic will create a exact copy of this file and place a file under ‘<domain-dir>/servers/<server-name>/upload/myFile.war’.and in console you only see this path.

Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

The war will be cached inside WL as Joseph suggested.


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
ragi singh
Ranch Hand

Joined: Mar 10, 2010
Posts: 198

but then how can i clean the cache , i am able to see the file location on gui as server/upload... I am absolutely clueless as to how to proceed
Joseph Antoine Raja
Ranch Hand

Joined: Feb 01, 2010
Posts: 32
Rick,

If you want to clean the cache you can clear ldap/diagnostics etc.. But if you removed the ‘upload/x.war’ file server will not come up.

Actually there is no impact on the function of your code irrespective of the staging mode you use instead of directly accessing your code WL is taking a copy into cache and accessing from there
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to deploy a war file from the correct location