Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to deploy a war file from the correct location

 
ragi singh
Ranch Hand
Posts: 198
Oracle Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The war will be cached inside WL as Joseph suggested.
 
ragi singh
Ranch Hand
Posts: 198
Oracle Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic