The WebLogic 9 Plug-In provides several specific component types to enable you to capture and provision your enterprise applications. This chapter describes the following topics.
The WebLogic Common Tasks page enables you to capture, configure, and deploy WebLogic Enterprise, EJB technology, and Web Applications.
You can perform several specific tasks, as described in the following sections:
Do not deploy or manage your WebLogic applications outside of the Sun N1 Service Provisioning System. If you use the provisioning software, you must manage your WebLogic applications exclusively with the provisioning software.
This procedure describes how to capture enterprise application (EAR), web application (WAR), and Java archive (JAR) files.
In the Common Tasks section in the browser interface, click WebLogic 9.
Click the Application Archives: Create link.
Type a name for this component.
(Optional) Type a label for this component.
(Optional) Type a description for this component.
In the Import From Host field, specify the system from which you want to capture the application.
You can specify the system in two different ways.
Navigate through the hierarchy to find the enterprise application to capture.
Select the appropriate options for your application.
You can set the following options for your application.
Check in an application archive that has not changed since a previous check in.
Assign user and group ownership permissions to the application.
In the Path of the Resource Descriptor File field, type the path to the resource descriptor file for this component.
A resource descriptor file specifies the owner, group, and permission settings to use for the files and directories that comprise the resource of a component. For more information about resource descriptor files, see Using a Resource Descriptor File in Sun N1 Service Provisioning System 5.2 XML Schema Reference Guide.
Click Check-in Selected Item.
Confirm the information on the check-in page, then click Continue to Check-in.
If you want to use a plan to deploy your application, you must first capture your deployment plan , and then group your application archive component with the deployment plan in an Application Archive Container component. For more information about how to capture deployment plans, see How to Capture a Deployment Plan.
You can author your own XML deployment plans to coordinate the deployment of complex enterprise and web applications involving multiple components. You can then include these plans in containers that hold the deployment plan and all the necessary application archive components for your deployment.
This procedure describes how to capture your deployment plans. For information about how to author a deployment plan in XML, see Sun N1 Service Provisioning System 5.2 Plan and Component Developer’s Guide.
In the Common Tasks section in the browser interface, click WebLogic 9.
Click Create in the Deployment Plans section of the WebLogic 9 Common Tasks page.
Type a name for this component.
(Optional) Type a label for this component.
(Optional) Type a description for this component.
In the Import From Host field, specify the system from which you want to capture the plan.
You can specify the system in two different ways.
Navigate through the hierarchy to find the plan to capture.
Select the appropriate options for your plan.
You can set the following options for your plan.
Check in a plan that has not changed since a previous check in.
Assign user and group ownership permissions to the plan.
Designate the plan as a configuration template. If you check the Configuration Template check box, all the component variables for you plan will be added to the container that holds your plan and all associated components. You can then edit these variables when you deploy your application with this container.
In the Path of the Resource Descriptor File field, type the path to the resource descriptor file for this component.
A resource descriptor file specifies the owner, group, and permission settings to use for the files and directories that comprise the resource of a component. For more information about resource descriptor files, see Using a Resource Descriptor File in Sun N1 Service Provisioning System 5.2 XML Schema Reference Guide.
Click Check-in Selected Item.
Confirm the information on the check-in page, then click Continue to Check-in.
To use your plan to deploy your application, you must group your plan and the associated application archive components in a Application Archive container. For more information, see How to Group Application Archives and Deployment Plans in a Container.
In the Common Tasks section in the browser interface, click WebLogic 9.
Click Create in the Shared J2EE Libraries section of the WebLogic 9 Common Tasks page.
Type a name for this component.
(Optional) Type a label for this component.
(Optional) Type a description for this component.
In the Import From Host field, specify the system from which you want to capture the J2EE library.
You can specify the system in two different ways.
Navigate through the hierarchy to find the library to capture.
Select the appropriate options for your library.
You can set the following options for the J2EE library.
Check in a library that has not changed since a previous check in.
Assign user and group ownership permissions to the library.
In the Path of the Resource Descriptor File field, type the path to the resource descriptor file for this component.
A resource descriptor file specifies the owner, group, and permission settings to use for the files and directories that comprise the resource of a component. For more information about resource descriptor files, see Using a Resource Descriptor File in Sun N1 Service Provisioning System 5.2 XML Schema Reference Guide.
Click Check-in Selected Item.
Confirm the information on the check-in page, then click Continue to Check-in.
In the Common Tasks section in the browser interface, click WebLogic 9.
Click Create in the Application Archive With Deployment Plan Container: section of the WebLogic Common Tasks page.
The Component Details Edit page is displayed.
Type a name for the container component.
Select the appropriate platform for you container from the Platform drop down menu.
Type a label for this container component
Type a description for this component component.
Select the Application Archive components and deployment plan that you want to group together.
In the Referenced Components table, select the component type that you want to include in your Application Archive container from the Type drop down menu.
To specify an Application Archive, select the com.sun.weblogic9#ApplicationArchive component type.
To specify a Deployment Plan, select the com.sun.weblogic9#DeploymentPlan component type.
Select the component that you want to include in the Application Archive container.
To use an existing component, follow these steps.
Click the Reference Existing link in the Actions column.
The Reference Existing Components in Current Component window is displayed.
Select the component in the Reference Existing Components in Current Component window.
Click the Change Folder link to navigate through the file system to find the component that you want to use.
To use a new component, follow these steps.
Click the Check In New link in the Actions column.
The Components Details Edit page is displayed.
Type a name for this component.
(Optional) Type a label for this component.
(Optional) Type a description for this component.
In the Import From Host field, specify the system from which you want to capture the application.
You can specify the system in two different ways.
Navigate through the hierarchy to find the application to capture.
Select the appropriate options for your application.
You can set the following options for your application.
Check in an application archive that has not changed since a previous check in.
Assign user and group ownership permissions to the application.
If you are checking in a plan, you can designate the plan as a configuration template. If you check the Configuration Template check box, all the component variables for you plan will be added to the container that holds your plan and all associated components. You can then edit these variables when you deploy your application with this container.
In the Path of the Resource Descriptor File field, type the path to the resource descriptor file for this component.
A resource descriptor file specifies the owner, group, and permission settings to use for the files and directories that comprise the resource of a component. For more information about resource descriptor files, see Using a Resource Descriptor File in Sun N1 Service Provisioning System 5.2 XML Schema Reference Guide.
Click Check-in Selected Item.
Confirm the information on the check-in page, then click Continue to Check-in.
Repeat the previous step for each Application Archive or Deployment Plan that you want to include in your Application Archive container.
In the Component Variables table, set the variable settings for the Application Archive container.
To create new variables, follow these steps.
In the text field in the Variable column of the first row, type the name of the variable you want to create.
In the text field in the Prompt column, type a description of the variable.
In the text field in the Value for This Component column, type the variable value that you want to use.
Click the Create link.
To edit existing variable values, follow these steps.
Select the checkbox for the variable that you want to edit.
Type the variable value in the text field in the Value for This Component column.
The following list provides commonly updated variables for the AppArchiveWithPlan component.
Required. Specifies the deployment name to be used for the application.
Optional. Specifies the version of the application to deploy. Specify a value for this variable to enable the redeployment of your application.
Required. Specifies the staging mode for the deployment of the application. The valid values are stage(default), nostage, and external_stage.
stage deploys the container resources to the Administration Server, and the WebLogic software copies the application archive files to the target hosts.
nostage makes the application archive files accessible to the target hosts, but does not copy the application archive files to the target hosts.
external_stage deploys the container resources to the Administration Server, and the N1 SPS software deploys the application archive files to the staging area of the target hosts.
Required. Specifies the target host for the deployment.
Optional. Specifies submodule targets for the deployment.
Required. Specifies the logical host name for the Administration Server for the domain.
Required. Specifies the installation location for the application archive.
If you specify stage or external_stage for the stagingMode variable, specify the location on the Administration Server to install the application archive.
If you specify nostage for the stagingMode variable, specify the network path to the application archive. This location must be accessible to the target host through NFS.
Click Check In.
Confirm the information on the check-in page, then click Continue to Check-in.
The WebLogic 9 Plug-In includes several WebLogic-specific component types. These component types enable you to quickly model many of the most common WebLogic application components and to automatically associate install, uninstall, export, and snapshot behavior with a particular resource. Many of the component types are used by the software when you create and manage servers and clusters. As a result, you will only work with a few component types on a regular basis.
The WebLogic 9 Plug-In provides the following component types for modeling and defining your applications.
Application Archive Component Type – Use this component type to model enterprise applications, web applications, and Java archive (JAR) files. The component can contain either an application archive, such as an enterprise application archive (EAR), a web application (WAR), or JAR file, or the expanded version of an archive as a package. You can deploy this component directly from the component procedures, or you can group this component with a Deployment Plan to deploy the application with an Application Archive With Plan container component.
Deployment Plan Component Type – Use this component type to create your own XML plans to deploy your application. If you want to use Deployment Plan components, you must include the Deployment Plan and an associated Application Archive component in an Application Archive With Plan container component.
Application Archive With Plan Container Component Type – Use this component type to group Application Archive components with Deployment Plans. You can use this component type to pair existing application components with deployment plans that define the tasks for your deployment. If you use an Application Archive With Plan container for your deployment, any changes you make to the container variable set override the variable values for the Application Archive that you want to deploy.
Shared J2EE Library Component Type – Use this component type to enable your applications to access a shared J2EE library.
For instructions about how to create these components, see Capturing and Editing WebLogic Applications.
Based on the needs of your application, you might need to configure the WebLogic services before you can deploy the application components. To configure the services, you might need to rely on the component types that are described in Configuring Services for WebLogic Applications.
This section describes how to perform the following deployment tasks.
To install an Application Archive component, either directly from the component procedures or with an Application Archive With Plan component, you must use a WebLogic Managed Server or cluster as the target host. The installation process performs two main tasks:
Installs the application archive on the target.
Registers the application archive with the WebLogic Administration Server.
In the Common Tasks section in the browser interface, click WebLogic 9.
Click the Components link.
The Components page is displayed.
Navigate to the location of the Application Archive or Application Archive With Plan component that you want to deploy.
Click the Change Folder link to browse through the file system to select the location of the application archive.
In the Component column, click the Application Archive or Application Archive With Plan component that you want to deploy.
The Components Details page is displayed.
In the Component Procedures table, select the type of deployment that you want to perform.
To deploy the application and start the application on the target host, click the Run link in the Install: Default row.
Use this procedure to directly install an Application Archive component.
To deploy the application with a Deployment Plan, click the Run link in the Install: deployAppPlan row.
Use this procedure to install an Application Archive component that is grouped with a Deployment Plan in an Application Archive With Plan container component.
To deploy the application to the target host, but not start and activate the application, click the Run link in the Install: Distribute or Install: DistributeAppPlan row.
Use this procedure if you want to start the application in Administration Mode, rather than in general mode. Click the Run link for the Install: DistributeAppPlan procedure if you are using an Application Archive With Plan component.
The Plans Details Run page is displayed.
In the Plan Parameters area, select the variable settings for the ApplicationArchive component that you plan to deploy.
If the variable settings have been established for this component, select the appropriate settings from the menu.
If the settings are not available from the menu, click Select From List.
The Select Variable Settings From List window displays.
To create a new set of variable settings, select Create Set.
The following list provides commonly updated variables for the ApplicationArchive component.
Required. A name for the new variable set you create
Required. Specifies the deployment name for the application.
Required. Specifies the name of the Application Archive to deploy.
Optional. Specifies the version of the application to deploy. Specify a value for this variable to enable the redeployment of your application.
Required. Specifies the staging mode for the deployment of the application. The valid values are stage(default), nostage, and external_stage.
stage deploys the container resources to the Administration Server, and the WebLogic software copies the application archive files to the target hosts.
nostage makes the application archive files accessible to the target hosts, but does not copy the application archive files to the target hosts.
external_stage deploys the container resources to the Administration Server, and the N1 SPS software deploys the application archive files to the staging area of the target hosts.
Required. Specifies the target host for the deployment.
Optional. Specifies the application submodule targets for the deployment.
Required. Specifies the logical host name for the Administration Server for the domain.
Required. Specifies the root directory for the Administration Server for the domain.
Required. Specifies the installation location for the application archive.
If you specify stage or external_stage for the stagingMode variable, specify the location on the Administration Server to install the application archive.
If you specify nostage for the stagingMode variable, specify the network path to the application archive. This location must be accessible to the target host through NFS.
If you want to use another component's variable settings, click Import Set From Component.
The Import Variable Settings window displays.
If necessary, navigate to the Folder that contains the component with the variable settings you want to import.
Select the component version.
Variable settings can vary between component versions. Ensure that the current components and the component from which you want to import variable settings share common variables. If the component from which you want to import variable settings does not share common variables with the component you want to use in your plan, the variable settings are not imported.
Click Import Variable Settings.
The variables settings are imported, and are displayed in the table.
On the Plan Details Run page, select the variable settings that you imported from the Variable Settings drop-down list, then click Select.
If you want to use component variable settings that are stored in a file, follow these steps.
In the Import Sets from File text field, enter the path to the variable settings file that you want to use.
To browse through the file system to find the appropriate file, click the Browse button.
Click Import.
The variables settings are imported, and are displayed in the table.
If the file from which you want to import variable settings does not share common variables with the component you want to use in your plan, the variable set is not imported.
On the Plan Details Run page, select the variable settings that you imported from the Variable Settings drop-down list, then click Select.
Select the target host or target host set.
Target either a Managed Server or WebLogic Cluster.
The target host must be a member of the com.sun.weblogic#DeploymentTargetHS host set.
In the Plan Parameters section, specify any options that you want to use with the install plan.
(Optional) If you want to pass any Java arguments to the weblogic.Deployer command during the installation, type the arguments in the Java Arguments Used for weblogic.Deployer field.
For information on how to perform deployment tasks using the weblogic.Deployer command, see BEA's WebLogic Server weblogic.Deployer Command-Line Reference document.
If you want to wait for a specified period to enable the previous version of the application to retire before installing the application, type a numerical value in seconds in the Optional: Second to Wait Before Previous Application Retires text field.
If you want to install and start the application in Administration Mode, type true in the Start Application in Admin Mode text field.
You might want to start the application in Admin Mode for development systems.
If you want to start the application in General Mode for production systems, set this value to false.
Click Run Plan (includes preflight).
The application is deployed to the target host or host set.
In the Common Tasks section in the browser interface, click WebLogic 9.
Click the Components link.
The Components page is displayed.
Navigate to the location of the shared J2EE library component that you want to deploy.
Click the Change Folder link to browse through the file system to select the location of the library.
In the Component column, click the J2EE Library component that you want to deploy.
The Components Details page is displayed.
In the Component Procedures table, click the Run link in the Install: Default row.
The Plans Details Run page is displayed.
In the Plan Parameters area, select the variable settings for the J2EE Library component that you plan to deploy.
If the variable settings have been established for this component, select the appropriate settings from the menu.
If the settings are not available from the menu, click Select From List.
The Select Variable Settings From List window displays.
To create a new set of variable settings, select Create Set.
The following list provides commonly updated variables for the J2EELibrary component.
Required. A name for the new variable set you create
Required. Specifies the name of the library that you want to install. This name must match the name of the library in the manifest.
Optional. Specifies the version of the library. This value must match the version number in the archive, or be left blank.
Required. Specifies the path to the library.
Required. Specifies the user who will own the deployed library.
If you want to use another component's variable settings, click Import Set From Component.
The Import Variable Settings window displays.
If necessary, navigate to the Folder that contains the component with the variable settings you want to import.
Select the component version.
Variable settings can vary between component versions. Ensure that the current components and the component from which you want to import variable settings share common variables. If the component from which you want to import variable settings does not share common variables with the component you want to use in your plan, the variable settings are not imported.
Click Import Variable Settings.
The variables settings are imported, and are displayed in the table.
On the Plan Details Run page, select the variable settings that you imported from the Variable Settings drop-down list, then click Select.
If you want to use component variable settings that are stored in a file, follow these steps.
In the Import Sets from File text field, enter the path to the variable settings file that you want to use.
To browse through the file system to find the appropriate file, click the Browse button.
Click Import.
The variables settings are imported, and are displayed in the table.
If the file from which you want to import variable settings does not share common variables with the component you want to use in your plan, the variable set is not imported.
On the Plan Details Run page, select the variable settings that you imported from the Variable Settings drop-down list, then click Select.
Select the target host or target host set.
Target either a Managed Server or WebLogic Cluster.
The target host must be a member of the com.sun.weblogic#DeploymentTargetHS host set.
If you want to pass any Java arguments to the weblogic.WLST tool during the installation, type the arguments in the Java Arguments field.
For information on how to perform deployment tasks using the weblogic.Deployer command, see BEA's WebLogic Server Using the WebLogic Server Scripting Tool document.
Click Run Plan (includes preflight).
You can start an application in Administration Mode or General Mode.
In the Common Tasks section in the browser interface, click WebLogic 9.
Click the Components link.
The Components page is displayed.
Navigate to the location of the Application Archive component that you want to start.
Click the Change Folder link to browse through the file system to select the location of the application archive.
In the Component column, click the Application Archive component that you want to start.
The Components Details page is displayed.
In the Component Procedures table, click the Run link in the startApp row.
The Plans Details Run page is displayed.
Select the target host or target host set.
Target either a Managed Server or WebLogic Cluster.
The target host must be a member of the com.sun.weblogic#DeploymentTargetHS host set.
In the Plan Parameters section, specify any options that you want to use with the uninstall plan.
(Optional) If you want to pass any Java arguments to the weblogic.Deployer command, type the arguments in the Java Arguments Used for weblogic.Deployer field.
For information on how to perform deployment tasks using the weblogic.Deployer command, see BEA's WebLogic Server weblogic.Deployer Command-Line Reference document.
If you want to wait for a specified period to enable the previous version of the application to retire before starting the application, type a numerical value in seconds in the Optional: Second to Wait Before Previous Application Retires text field.
If you want to start the application in Administration Mode, type true in the Start Application in Admin Mode text field.
You might want to start the application in Admin Mode for development systems.
If you want to start the application in General Mode for production systems, set this value to false.
Click Run Plan (includes preflight).
You can stop an application, or transfer the application from General Mode to Admin Mode.
In the Common Tasks section in the browser interface, click WebLogic 9.
Click the Components link.
The Components page is displayed.
Navigate to the location of the Application Archive component that you want to stop.
Click the Change Folder link to browse through the file system to select the location of the Application Archive.
In the Component column, click the Application Archive component that you want to stop.
The Components Details page is displayed.
In the Component Procedures table, click the Run link in the stopApp row.
The Plans Details Run page is displayed.
Select the target host or target host set.
Target either a Managed Server or WebLogic Cluster.
The target host must be a member of the com.sun.weblogic#DeploymentTargetHS host set.
In the Plan Parameters section, specify any options that you want to use with the stop plan.
(Optional) If you want to pass any Java arguments to the weblogic.Deployer command, type the arguments in the Java Arguments Used for weblogic.Deployer field.
For information on how to perform deployment tasks using the weblogic.Deployer command, see BEA's WebLogic Server weblogic.Deployer Command-Line Reference document.
If you want to wait for all existing HTTP sessions to complete before stopping the application, type true in the Wait for Existing HTTP Clients to Complete text field.
If you want to stop the application and transfer the application to Administration Mode, type true in the Start Application in Admin Mode text field.
You might want to transfer the application to Admin Mode for development systems.
Click Run Plan (includes preflight).
The application is uninstalled from the target host or host set.
In the Common Tasks section in the browser interface, click WebLogic 9.
Click the Components link.
The Components page is displayed.
Navigate to the location of the Application Archive component that you want to uninstall.
Click the Change Folder link to browse through the file system to select the location of the Application Archive.
In the Component column, click the Application Archive component that you want to uninstall.
The Components Details page is displayed.
In the Component Procedures table, select the correct procedure to uinstall the application.
Click the Run link in the Uninstall: Default row to directly redeploy an application from an Application Archive component.
Click the Run link in the Uninstall: UninstallFromContainer row to redeploy an application from an Application Archive With Plan container.
The Plans Details Run page is displayed.
Select the target host or target host set.
Target either a Managed Server or WebLogic Cluster.
The target host must be a member of the com.sun.weblogic#DeploymentTargetHS host set.
In the Plan Parameters section, specify any options that you want to use with the uninstall plan.
(Optional) If you want to pass any Java arguments to the weblogic.Deployer command during the uninstallation, type the arguments in the Java Arguments Used for weblogic.Deployer field.
For information on how to perform deployment tasks using the weblogic.Deployer command, see BEA's WebLogic Server weblogic.Deployer Command-Line Reference document.
If you want to wait for all existing HTTP sessions to complete before uninstalling the application, type true in the Wait for Existing HTTP Clients to Complete text field.
If you want to uninstall the application without waiting for current HTTP client sessions to complete, type true in the Ignore Current HTTP Client Sessions text field.
If you want to remove the Application Archive files from the Administration Server, type true in the Remove Deployment Files text field.
Click Run Plan (includes preflight).
The application is uninstalled from the target host or host set.
If you installed an application without N1 SPS software, and want to install an updated version of the application with N1 SPS, you can uninstall the previous version of the application. The application must be versioned to enable the WebLogic 9 Plug-In to uninstall the previous version of the application.
In the Common Tasks section in the browser interface, click WebLogic 9.
Click the Components link.
The Components page is displayed.
Navigate to the location of the Application Archive component that you want to uninstall.
Click the Change Folder link to browse through the file system to select the location of the Application Archive.
In the Component column, click the Application Archive component that you want to uninstall.
The Components Details page is displayed.
In the Component Procedures table, click the Run link in the undeployPreviousVersion row.
The Plans Details Run page is displayed.
Select the target host or target host set.
Target either a Managed Server or WebLogic Cluster.
The target host must be a member of the com.sun.weblogic#DeploymentTargetHS host set.
In the Plan Parameters section, specify any options that you want to use with the uninstall plan.
In the Version of This App Needed to Review text field, specify the version of the application that you want to uninstall.
(Optional) If you want to pass any Java arguments to the weblogic.Deployer command, type the arguments in the Java Arguments Used for weblogic.Deployer field.
For information on how to perform deployment tasks using the weblogic.Deployer command, see BEA's WebLogic Server weblogic.Deployer Command-Line Reference document.
Click Run Plan (includes preflight).
The application is uninstalled from the target host or host set.
If you want to update an application with changes that you have made to the Application Archive, you can redeploy the application to your Managed Servers or cluster.
In the Common Tasks section in the browser interface, click WebLogic 9.
Click the Components link.
The Components page is displayed.
Navigate to the location of the Application Archive component that you want to update.
Click the Change Folder link to browse through the file system to select the location of the Application Archive.
In the Component column, click the Application Archive component that you want to update.
The Components Details page is displayed.
In the Component Procedures table, select the correct procedure to update the application.
Click the Run link in the Install: Redeploy row to directly redeploy an application from an Application Archive component.
Click the Run link in the Install: RedeployAppPlan row to redeploy an application from an Application Archive With Plan container.
The Plans Details Run page is displayed.
Select the target host or target host set.
Target either a Managed Server or WebLogic Cluster.
The target host must be a member of the com.sun.weblogic#DeploymentTargetHS host set.
In the Plan Parameters section, specify any options that you want to use with the redeployment plan.
If you want to pass any Java arguments to the weblogic.Deployer command, type the arguments in the Java Arguments Used for weblogic.Deployer field.
For information on how to perform deployment tasks using the weblogic.Deployer command, see BEA's WebLogic Server weblogic.Deployer Command-Line Reference document.
If you are using an Application Archive With Plan component to deploy your application, specify the location of the Deployment Plan in the Path for Deployment Plan text field.
In the Required WebLogic Target for Deployment text field, specify the systems that you want to update.
In the Optional WebLogic Submodule Targets for Deployment text field, specify the application submodules to target with your redeployment.
In the Deployment Name Used for This Application text field, specify the name of the Application Archive or Application Archive With Plan component that you want to redeploy.
In the App Version text field, specify the version number of the application that you want to redeploy.
Click Run Plan (includes preflight).
The application is uninstalled from the target host or host set.
If you change a Deployment Plan component that you are using with an Application Archive With Plan container component, you can update your Managed Servers or clusters with the new Deployment Plan.
In the Common Tasks section in the browser interface, click WebLogic 9.
Click the Components link.
The Components page is displayed.
Navigate to the location of the Application Archive With Plan component that you want to update with a new Deployment Plan.
Click the Change Folder link to browse through the file system to select the location of the Application Archive With Plan component.
In the Component column, click the Application Archive With Plan component that you want to update.
The Components Details page is displayed.
In the Component Procedures table, click the Run link in the Install: updatePlan row.
The Plans Details Run page is displayed.
Select the target host or target host set.
Target either a Managed Server or WebLogic Cluster.
The target host must be a member of the com.sun.weblogic#DeploymentTargetHS host set.
In the Plan Parameters section, specify any options that you want to use with the uninstall plan.
(Optional) If you want to pass any Java arguments to the weblogic.Deployer command, type the arguments in the Java Arguments Used for weblogic.Deployer field.
For information on how to perform deployment tasks using the weblogic.Deployer command, see BEA's WebLogic Server weblogic.Deployer Command-Line Reference document.
If you want to specify the version of the plan to use, type the version number in the Optional Plan Version text field.
Click Run Plan (includes preflight).
The application is uninstalled from the target host or host set.
Action |
Condition |
Result |
---|---|---|
Install |
The topology is incorrectly configured (target host does not point at correct domain host) |
Targeting fails |
Install |
The target host is not a valid WebLogic target |
Installation prohibited |
Browsing/Install/Uninstall |
Credentials are not properly configured |
Operation fails |
Browsing |
Path not correctly configured in domain host |
Browsing fails |
Based on the needs of your application, you might need to configure the WebLogic services before you can deploy the application components as described in Deploying WebLogic Applications. To configure the services, you might need to rely on the following component types.
Data Source component type – Use this component type to capture database data sources.
Multi Data Source component type – Use this component type to capture database data sources and associated connection pools.
Java Messaging Service (JMS) Server component type – Use this component type to capture a server to store and serve JMS information.
JMS Module component type – Use this component type to create a configuration module for JMS Queues, Topics, Connection Factories, and Destination Keys.
JMS Queue component type – Use this component type to install a messaging queue for point-to-point messaging.
JMS Topic component type – Use this component type to capture a messaging topic for publish-and-subscribe messaging.
JMS File Store component type – Use this component type to capture a JMS backing store.
JMS JDBC Store component type – Use this component type to capture a JMS JDBC backing store.
JMS Connection Factory component type – Use this component type to capture a connection factory to create JMS connections to the data source.
JMS Destination Key component type – Use this component type to capture destination keys to specify the order in which messages are delivered.
Mail Session component type – Use this component type to capture a mail service to use for communication between the Administration Server and Managed Servers.
These configuration component types are only necessary if your application requires them. For example, if your web application uses a database to retrieve and store information, you will need to configure a data source or multi data source.
To use these configuration component types, select the task that you want to perform and run the associated component procedure. If you need to create and check-in a new component based on an existing component elsewhere on your file system, click Create. After checking in the new component, you can run the appropriate component procedure to configure the WebLogic environment according to your application's needs.
You usually configure and deploy these configuration component types before deploying your application. However, you can configure the WebLogic environment after the application components have been deployed by restarting the application after configuration is complete. Redeploy the application to restart it.
This section describes how to create, install, and uninstall these configuration objects. For instructions, see the following procedures.
For more information about configuring these configuration objects, see BEA's Administration Console Online Help.
To use the configuration objects in your WebLogic environment, you must first capture the service as a configuration component. This section provides the following procedures that describe how to capture these objects.
How to Create a Configuration Service describes how to capture configuration objects as components.
How to Configure a JMS Module describes how to create a JMS Module to configure JMS Queues and Topics during deployment.
This procedure describes how to create configuration components. If you plan to use JMS Queues, Topics, Connection Factories, or Destination Keys, you must also create a JMS Module. For more information, see How to Configure a JMS Module.
In the Common Tasks section of the browser interface, click WebLogic 9.
In the Configuration Tasks section of the WebLogic 9 page, click the Create link for the configuration object that you want to capture.
Click the Create link for one of the following configuration components.
Data Source
Multi Data Source
JMS Server
JMS Queues
JMS Topics
JMS File Store
JMS JDBC Store
JMS Connection Factory
JMS Destination Key
Mail Session
The Components Details Edit page is displayed.
Specify the name of the component.
(Optional) Specify a label for the component.
(Optional) Specify a description for the component.
In the WebLogic Admin Server field, select the Managed Server or cluster from which you want to capture the configuration service.
Navigate through the server file system to find the configuration service to capture.
Click Check-in Selected Item.
Confirm the information on the check-in page, then click Continue to Check-in.
To deploy the configuration service in your WebLogic environment, see Installing Configuration Services.
If you plan to deploy JMS Queues, Topics, Connection Factories, or Destination Keys, you must configure a JMS Module. See How to Configure a JMS Module for more information.
If you plan to use JMS Queues, Topics, Connection Factories, or Destination Keys, in your WebLogic environment, you must create a JMS Module container to configure these objects during deployment.
In the Common Tasks section of the browser interface, click WebLogic 9.
In the Configuration Tasks section of the WebLogic 9 page, click the JMS Module: Configure link.
The Plans Details Run page is displayed.
In the Plan Parameters area, select the variable settings for the JMS Module component that you plan to configure.
If the variable settings have been established for this component, select the appropriate settings from the menu.
If the settings are not available from the menu, click Select From List.
The Select Variable Settings From List window displays.
To create a new set of variable settings, select Create Set.
The following list provides commonly updated variables for the JMS Module component.
Required. A name for the new variable set you create
Required. Specifies the name of the JMS Module that you want to deploy.
Required. Specifies the name of the JMS Module descriptor file.
Optional. Specifies any additional information or notes about the JMS Module.
Required. Specifies the name to use to deploy the JMS Module
Required. Specifies the location to install the JMS Module.
Optional. Specifies the path to the WebLogic 9 Plug-In execJava classes.
If you want to use another component's variable settings, click Import Set From Component.
The Import Variable Settings window displays.
If necessary, navigate to the Folder that contains the component with the variable settings you want to import.
Select the component version.
Variable settings can vary between component versions. Ensure that the current components and the component from which you want to import variable settings share common variables. If the component from which you want to import variable settings does not share common variables with the component you want to use in your plan, the variable settings are not imported.
Click Import Variable Settings.
The variables settings are imported, and are displayed in the table.
On the Plan Details Run page, select the variable settings that you imported from the Variable Settings drop-down list, then click Select.
If you want to use component variable settings that are stored in a file, follow these steps.
In the Import Sets from File text field, enter the path to the variable settings file that you want to use.
To browse through the file system to find the appropriate file, click the Browse button.
Click Import.
The variables settings are imported, and are displayed in the table.
If the file from which you want to import variable settings does not share common variables with the component you want to use in your plan, the variable set is not imported.
On the Plan Details Run page, select the variable settings that you imported from the Variable Settings drop-down list, then click Select.
Select the target host or target host set.
Target either a Managed Server or WebLogic Cluster.
The target host must be a member of the com.sun.weblogic#DeploymentTargetHS host set.
Click Run Plan (includes preflight).
After you create your configuration components, you can deploy these services to your Administration Server.
When you install a configuration component, the file or directory is copied to the file system based on the install path. Once that copy finishes, the file or directory is registered with the WebLogic Administration Server.
You can install the component by navigating to the component Details page and running the Install component procedure. Many components require that you edit certain component variables. See WebLogic Configuration Component Types and Variablesfor variables that require custom values.
This procedure describes how to install the following components.
Data Source
Multi Data Source
JMS Server
JMS Queues
JMS Topics
JMS File Store
JMS JDBC Store
JMS Connection Factory
JMS Destination Key
Mail Session
If you want to install JMS Queues, Topics, Connection Factories, or Destination Keys, you must first configure a JMS Module to hold the configuration information for these components. See How to Configure a JMS Module for more information.
In the Common Tasks section of the browser interface, click WebLogic 9.
Click the Components link.
The Components page is displayed.
Navigate to the location of the configuration component that you want to deploy.
Click the Change Folder link to browse through the file system to select the location of the configuration component.
In the Component column, click the configuration component that you want to deploy.
The Components Details page is displayed.
In the Component Procedures table, click the Run link in the Install: Default row.
The Plans Details Run page is displayed.
In the Plan Parameters area, select the variable settings for the configuration component that you plan to deploy.
For information about the required variables for each configuration component, see WebLogic Configuration Component Types and Variables.
If the variable settings have been established for this component, select the appropriate settings from the menu.
If the settings are not available from the menu, click Select From List.
For
The Select Variable Settings From List window displays.
To create a new set of variable settings, select Create Set.
Specify the variable values that are appropriate for your installation.
If you want to use another component's variable settings, click Import Set From Component.
The Import Variable Settings window displays.
If necessary, navigate to the Folder that contains the component with the variable settings you want to import.
Select the component version.
Variable settings can vary between component versions. Ensure that the current components and the component from which you want to import variable settings share common variables. If the component from which you want to import variable settings does not share common variables with the component you want to use in your plan, the variable settings are not imported.
Click Import Variable Settings.
The variables settings are imported, and are displayed in the table.
On the Plan Details Run page, select the variable settings that you imported from the Variable Settings drop-down list, then click Select.
If you want to use component variable settings that are stored in a file, follow these steps.
In the Import Sets from File text field, enter the path to the variable settings file that you want to use.
To browse through the file system to find the appropriate file, click the Browse button.
Click Import.
The variables settings are imported, and are displayed in the table.
If the file from which you want to import variable settings does not share common variables with the component you want to use in your plan, the variable set is not imported.
On the Plan Details Run page, select the variable settings that you imported from the Variable Settings drop-down list, then click Select.
Select the target host or target host set.
In the Plan Parameters section, specify any options that you want to use with the install plan.
Click Run Plan (includes preflight).
If necessary, you can uninstall configuration services from your Administration Server.
When you uninstall a configuration component, the file or directory is removed from the Master Server.
You can uninstall the configuration component by navigating to the component Details page and running the Uninstall component procedure.
This procedure describes how to uninstall the following configuration services.
Data Source
Multi Data Source
JMS Server
JMS Queue
JMS Topic
JMS File Store
JMS JDBC Store
JMS Connection Factory
JMS Destination Key
Mail Session
In the Common Tasks section of the browser interface, click WebLogic 9.
Click the Components link.
The Components page is displayed.
Navigate to the location of the configuration component that you want to uninstall.
Click the Change Folder link to browse through the file system to select the location of the configuration component.
In the Component column, click the configuration component that you want to uninstall.
The Components Details page is displayed.
In the Component Procedures table, click the Run link in the Uninstall: Default row.
The Plans Details Run page is displayed.
Select the target host or target host set.
In the Plan Parameters section, specify any options that you want to use with the uninstall plan.
Click Run Plan (includes preflight).
The following sections contain the WebLogic configuration objects that have been modeled as a component type. These sections also provide the default component names and the component variables that require custom values.
The WebLogic 9 Plug-In provides the Data Source and Multi Data Source component types for capturing database data sources and connection pools. The following table lists the required component variables for these component types.
Table 5–2 Data Source and Multi Data Source Component Information and Variables
For information about how to create and deploy these component types, see Configuring Services for WebLogic Applications.
The WebLogic 9 Plug-In provides several Java Messaging Service (JMS) component types for capturing JMS configuration components. The following table lists the required component variables for these components or component types.
Table 5–3 JMS Component Information and Variables
For information about how to create and deploy these component types, see Configuring Services for WebLogic Applications.
With the WebLogic 9 Plug-In you can capture mail sessions as N1 SPS components, and then deploy these components. The following table lists the required component variables for these components.
Table 5–4 Mail Service Component Information and Variables
For information about how to create and deploy this component type, see Configuring Services for WebLogic Applications.
When you work with WebLogic through the provisioning system, you can use two command lines: the Sun N1 Service Provisioning System command line and the WebLogic command line.
By default, the provisioning system's command-line interface is located in the following directory: /opt/SUNWn1sps/N1_Service_Provisioning_system_5.2/cli/bin/cr_cli.
BEA WebLogic 9 plug-in objects are located in the /com/sun/weblogic9 folder.
You can interact with plug-in components and plans much like any other custom component or plan. However, if you want to make changes to the components or plans, you need to save the component or plan to a new folder and make your changes there. For more information about using the provisioning system's command-line interface, see Chapter 1, Using the Command-Line Interface, in Sun N1 Service Provisioning System 5.2 Command-Line Interface Reference Manual
The WebLogic command line is accessible through the WebLogic 9 Common Task page. For more information about the WebLogic 9 command-line interface, see the WebLogic Server Command Reference on BEA's web site.
You can run WebLogic commands on any Administration Server or Managed Server.
In the Common Tasks section in the browser interface, click WebLogic 9.
Select whether you plan to run the command on an Administration Server or a Managed Server.
If you plan to run commands on an Administration Server, click Domain Management: Start.
If you plan to run commands on a Managed Server, click Application Server Management: Start.
The component Details page displays
Select the Run-cli component procedure and click Run.
The plan's Run page displays.
Select the AdminServer virtual host or Managed Server virtual host on which to run the CLI and click Run Selected Installations.
Type the needed information in the plan variable fields.
Many of the plan variables do not require information and can be left blank. The following list describes the optional variables.
This variable can be safely ignored if you do not connect to the server using SSL.
This is the user name variable. The user name and password variables are mutually exclusive with the user-configuration file and key file variables. Supply either the user name and password or the user-configuration file and key file locations.
This is the password variable. The user name and password variables are mutually exclusive with the user-configuration file and key file variables. Supply either the user name and password or the user-configuration file and key file locations.
This is the user-configuration file variable. The user name and password variables are mutually exclusive with the user-configuration file and key file variables. Supply either the user name and password or the user-configuration file and key file locations.
This is the key file variable. The user name and password variables are mutually exclusive with the user-configuration file and key file variables. Supply either the user name and password or the user-configuration file and key file locations.
Click Run Plan (Includes Preflight).
This example uses the WebLogic FORCESHUTDOWN command to illustrate input for each Run-cli plan variable.
Weblogic CLI to run (weblogic.Admin or weblogic.Deployer): |
weblogic.Admin |
The SSL arguments for the command: | |
The listen address of the server instance that runs the command: |
sun03 This is the name of the AdminServer. |
The listen port of the server instance that runs the command: |
7001 |
The name of the user who must have appropriate permission to view or modify the target of the command: |
admin |
The password that is associated with the username: |
xxxxx |
The name and location of a user-configuration file, which contains an encrypted username and password: | |
the name and location of the key file: | |
The name of the command to run: |
FORCESHUTDOWN |
Arguments of the command: |
Server-one |
You can use the WebLogic Server Scripting Tool (WLST) from the provisioning system's browser interface. For information on how to perform administrative tasks and configuration changes using the WLST, see BEA's WebLogic Server Using the WebLogic Server Scripting Tool document.
You must first create the WebLogic script , then check in the script as an N1 SPS component, then install it. This procedure assumes that you have an existing WLST script available on a file system.
In the Common Tasks section in the browser interface, click the Create New Component link.
The Components table is displayed.
In the Action column, click the Create link.
The Component Details Edit page is displayed.
In the Component field, type the name of your component.
Select com.sun.weblogic9#WLSTScript from the Type drop down menu.
(Optional) Type a label and description for the component.
Select a host that has a copy of the WebLogic script file in the file system.
Navigate to the location of the script on the host.
Select the appropriate options for your component.
You can set the following options for your application.
Check in a script component that has not changed since a previous check in.
Assign user and group ownership permissions to the script component.
You can designate the script component as a configuration template. If you check the Configuration Template check box, all the component variables for your script component will be added to the container that holds your script component and all associated components. You can then edit these variables when you deploy your application with this container.
In the Path of the Resource Descriptor File field, type the path to the resource descriptor file for this component.
A resource descriptor file specifies the owner, group, and permission settings to use for the files and directories that comprise the resource of a component. For more information about resource descriptor files, see Using a Resource Descriptor File in Sun N1 Service Provisioning System 5.2 XML Schema Reference Guide.
Click Check In Selected Item.
The component's Check In page displays.
Select a folder on which you have edit permissions.
Click Continue to Check In.
Before you can install a WebLogic script component, one must exist within the provisioning system. See How to Create a WebLogic Script Component.
In the Common Tasks section in the browser interface, click WebLogic 9.
In the Common Tasks section in the browser interface, click the Components link.
The Components table is displayed.
If necessary, navigate to the directory that contains the script component.
In the row of the WLSTScript component that you plan to install, click Details.
The component's Details page displays.
In the Component Procedures table, select the Default: Install procedure and click Run.
The plan's Run page displays.
Select the target host.
You target the AdminServer virtual host.
(Optional) Type the name of the WebLogic user who installed the software in the RunAs field.
This user represented by the webLogicUser variable used in the software installation plan.
Click Run Plan (Includes Preflight).
The WebLogic 9 Plug-In relies on plans to perform many of the tasks associated with installing and removing Administration Servers, Managed Servers, and clusters.
BEA WebLogic 9 plug-in plans are located in the /com/sun/weblogic9 folder and linked to from the Common Tasks page.
If you are experiencing problems managing WebLogic through the provisioning software, messages will likely appear on the screen to tell you that a problem exists.
Problems encountered during plan run or preflight The plan (or preflight) "/com/sun/weblogic9/InstallAdminServerPlan" finished with 1 failed host(s). (017034) Unable to find session variable "WL_DEFAULT_PASSWORD" (Unresolved session variable WL_DEFAULT_PASSWORD. This session variable was automatically created when the system was unable to find it.). Add this session variable and try the operation again. (040111) |
Although the message in this example is easily understood, not all messages are this straightforward.
The following message means that the JMX interface on the Administration Server was not available or the login information is wrong.
Admin Server adminHost JMX interface running on port portNumber is not available; Admin Server must be running for this operation. |
To find out more information about the specific problem, follow the Run History Details links until you reach the final error block. View the output of stderr and stdout for details on the error condition.
This section includes examples of error messages that you might encounter during the installation of WebLogic.
The user specified is not a valid system users: weblogic (017056) |
You must create the system user “weblogic” or change the Install variable weblogicUser to an existing user.
Specified target(s) "sol01" were not in the required host set "com.sun.weblogic9#SupportedHS". (017087) |
This error message could result for two reasons:
The host does not support an operating system that is compatible with the plug-in.
If true, select a host that uses an operating system that is supported by the plug-in.
The host has not been prepared.
If true, go to the Hosts page and prepare the host.
Error: Installation could not be preformed check the deployment details for more information. |
You must check the deployment details of the final execNative control to find information from the WebLogic installer.
The following messages are examples of what could be contained in the stdout output.
SilentBEAHomeTask – Access to the directory is denied: [/usr/local/bea]
If this message is displayed, the WebLogic user specified in the installation plan does not have permission to create or write to the beaHome directory. You can change the permissions on the directory or create the beaHome directory using the provisioning system's directory component.
SilentBEAHomeTask – At least one item must be selected.
If this message is displayed, an installation of WebLogic already exists in this path. You must change the path or uninstall the existing WebLogic installation.