| 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: 6588
|
|
|
The war will be cached inside WL as Joseph suggested.
|
SCJP 6 articles - SCJP 5/6 mock exams - SCJP Mocks - SCJP 5 Mock exam (Word document ) - SCJP 5 Mock exam in Java.Inquisition format
|
 |
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
|
 |
 |
|
|
subject: Unable to deploy a war file from the correct location
|
|
|