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
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply 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: 6588
    
    1

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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Unable to deploy a war file from the correct location
 
Similar Threads
How to call external WAR file in J2EE Project using WSAD 5.1.1
Deploying in JBoss 3.2.1
War with WAR, EAR and JAR
Tomcat startup problem
JRUN4 WAR Deployment