Ranger4 DevOps Blog

The NEW WebLogic Plugin for UrbanCode

Posted by Helen Beal on Tue, May 27, 2014 @ 10:05 AM

IBM just released a new native plugin for UrbanCode for WebLogic as an update to the WLDeploy Ant task previously available in UDeploy - lots of our customers and prospects are WebLogic users so this is great news for them and us. You can download the plugin here. It provides steps to support the automation of deployment and management operations as follows:

  • Deploy, redeploy, and undeploy applications
  • Start and stop applications

You can use the provided steps in your processes - they are self-contained.

A component template is also provided as an aid to setting up deployment automation. When you use it to create a component, you provide the following information:

  • Location of artifacts to be deployed
  • WebLogic server to use

Deployment steps in the WebLogic Application Deployment plug-in

Deploy

Deploy action to be performed on the WebLogic Server.

Input properties for the Deploy step
NameTypeDescriptionRequired
Deployment Name String Name of the deployment No
Admin URL String Admin URL for the WebLogic Server. Most likely ‘t3://hostname:port’. Yes
User Name String The name of the user to connect to WebLogic Server. Yes
Password Password The password of the WebLogic Server user. Yes
Targets String Comma separated list of target(s) on which the command will be executed. The target(s) list must not contain any spaces. No
Source String Source application to be deployed to WebLogic Server. Yes
Deployment Classpath String Path to the Java jar in WebLogic that executes deployments. May be [WebLogicServer]/server/lib.weblogic.jar. Yes
Additional Arguments String Any additional arguments to be added to the command. Newline separated with each line of the form ‘-parameter value’. The value cannot have a space. No

Redeploy

Redeploy action to be performed on the WebLogic Server.

Input properties for the Redeploy step
NameTypeDescriptionRequired
Deployment Name String Name of the deployment to be redeployed. Yes
Admin URL String Admin URL for the WebLogic Server. Most likely ‘t3://hostname:port’. Yes
User Name String The name of the user to connect to WebLogic Server. Yes
Password Password The password of the WebLogic Server user. Yes
Targets String Target(s) on which the command will be executed. If no target is specified, the application will be redeployed on all of its current target servers. No
Source String Source application to be deployed to WebLogic Server. Yes
Deployment Classpath String Path to the Java jar in WebLogic that executes deployments. May be [WebLogicServer]/server/lib.weblogic.jar. Yes
Additional Arguments String Any additional arguments to be added to the command. Newline separated with each line of the form ‘-parameter value’. The value cannot have a space. No

Start

Start action to be performed on the WebLogic Server.

Input properties for the Start step
NameTypeDescriptionRequired
Deployment Name String Name of the deployment to be started. Yes
Admin URL String Admin URL for the WebLogic Server. Most likely ‘t3://hostname:port’. Yes
User Name String The name of the user to connect to WebLogic Server. Yes
Password Password The password of the WebLogic Server user. Yes
Targets String Target(s) on which the command will be executed. If you do not specify a target, the application will be started on all of its current targets. No
Classpath String Path to the Java jar in WebLogic that executes deployments. May be [WebLogicServer]/server/lib/weblogic.jar Yes
Additional Arguments String Any additional arguments to be added to the command. Newline separated with each line of the form ‘-parameter value’. The value cannot have a space. No

Stop

Stop action to be performed on the WebLogic Server

Input properties for the Stop step
NameTypeDescriptionRequired
Deployment Name String Name of the deployment to be stopped. Yes
Admin URL String Admin URL for the WebLogic Server. Most likely ‘t3://hostname:port’. Yes
User Name String The name of the user to connect to WebLogic Server. Yes
Password Password The password of the WebLogic Server user. Yes
Targets String Target(s) on which the command will be executed. If no target is specified the application will be stopped on all its current targets. No
Classpath String Path to the Java jar in WebLogic that executes deployments. May be [WebLogicServer]/server/lib/weblogic.jar Yes
Additional Arguments String Any additional arguments to be added to the command. Newline separated with each line of the form ‘-parameter value’. The value cannot have a space. No

Undeploy

Undeploy action to be performed on the WebLogic Server.

Input properties for the Undeploy step
NameTypeDescriptionRequired
Deployment Name String Name of the deployment to be underplayed. Yes
Admin URL String Admin URL for the WebLogic Server. Most likely ‘t3://hostname:port’. Yes
User Name String The name of the user to connect to WebLogic Server. Yes
Password Password The password of the WebLogic Server user. Yes
Targets String Comma separated list of target(s) on which the command will be executed. The target(s) list must not contain any spaces. No
Classpath String Path to the Java jar in WebLogic that executes deployments. May be [WebLogicServer]/server/lib.weblogic.jar. Yes
Additional Arguments String Any additional arguments to be added to the command. Newline separated with each line of the form ‘-parameter value’. The value cannot have a space. No

Troubleshooting the WebLogic Application Deployment plug-in

The following areas can be helpful in troubleshooting the plug-in:

Check the properties you specify in a plug-in action.

Admin URL property – The administrative URL for access to the server may require a protocol of tc3 or tc3s, rather than http or https.

Classpath property – Verify that this path points to a file rather than a link. Normally it points to the jar that runs deployments, typically /server/lib/ weblogic.jar. Larger deployments of WebLogic may have the local server lib directory linked to a central lib directory that is located in another place on the system.

Requirements
The plug-in is supported for use with WebLogic Server versions 10g and later.

Topics: UrbanCode, application release automation