Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WLST: Remote deployment of an application on weblogic

I am trying to deploy an application remotely on WebLogic. I am using WLST in a python script.

I am using deploy command to do that. When I give the path of my war of any location which is accessible to my remote machine all goes well, but when I give any location which is not accessible to remote machine it fails.

Now I know the solution that by default upload is false hence the remote WebLogic needs an access to the war location, but I have tried it with setting upload true but still deployment fails with an error like:

Deployment Message : weblogic.management.ManagementException: [Deployer:149003]Unable to access application source information in '/app/jamagentAdminServer.war' for application 'jamagent_AdminServer'. The specific error is: No application files exist. No stack trace available.

Am I missing something? I am using the command:

deploy('jamagent_'+ServerName,jamagentwarpath+'/jamagent'+ServerName+'.war', targets=ServerName, timeout=600000, upload='true')

so if I remove upload='true' clause and make sure that jamagentwarpath is a location accessible to remote machine, then everything goes fine. I hope I am clear with my question.

like image 956
shallu Avatar asked Jan 17 '11 12:01

shallu


People also ask

What is WebLogic Wlst?

What is the WebLogic Scripting Tool? The WebLogic Scripting Tool (WLST) is a command-line scripting interface that system administrators and operators use to monitor and manage WebLogic Server instances and domains. The WLST scripting environment is based on the Java scripting interpreter, Jython.

What is Wlst command?

The WebLogic Scripting Tool (WLST) is a command-line scripting environment that you can use to create, manage, and monitor WebLogic Server domains. It is based on the Java scripting interpreter, Jython.


2 Answers

I haven't used the python version, but according to the weblogic.Deployer Command-Line Reference, which should be the identical functionality, you need the -remote option in addition to the -upload option:

Indicates that weblogic.Deployer is not running on the same machine as the Administration Server, and that source paths specified in the command are valid for the Administration Server machine itself.

like image 95
Tim Sylvester Avatar answered Dec 18 '22 15:12

Tim Sylvester


You should remove the upload='true' option and specify remote='true' instead.

The "upload" option must be used when you have the application files on the machine where you execute the wlst script and you want to transfer them on the WL administrative machine.

The "remote" option tells the "deploy" command to not search the path in the local machine (where you execute the wlst script), but to search the path on the WL administrative machine.

The "remote" option is available only on WLS 10.0 or higher. See WLS 10.0 WLST deploy command reference.

like image 42
Mariano Paniga Avatar answered Dec 18 '22 14:12

Mariano Paniga